Commit b6cbe00
committed
docs: generate translated .so manpage stubs from the English original
A .so alias stub is a redirect page with no prose; its body is just a
path to the page it aliases, identical in every language. asciidoctor
emits these stubs as a byproduct when it renders a translated primary
page whose NAME line lists several functions, deriving the path from the
translated NAME line. A stray space in the translation ("name , other"
instead of "name, other") then lands in the path, producing a broken
alias that aborts the htmldocs build via lang_switcher_postprocess.py.
Stop deriving the alias from translated text: once the translated
primaries are built, overwrite every translated .so stub with the
canonical English one. This fixes the roff page too (not just the HTML
symlink), and removes the only path by which a translation can break the
build. The stub list is discovered at recipe time because the
wildcard-based MAN_SRCS is empty on a clean build.1 parent 853878b commit b6cbe00
1 file changed
Lines changed: 22 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1325 | 1325 | | |
1326 | 1326 | | |
1327 | 1327 | | |
| 1328 | + | |
1328 | 1329 | | |
1329 | 1330 | | |
1330 | 1331 | | |
| |||
1425 | 1426 | | |
1426 | 1427 | | |
1427 | 1428 | | |
| 1429 | + | |
| 1430 | + | |
| 1431 | + | |
| 1432 | + | |
| 1433 | + | |
| 1434 | + | |
| 1435 | + | |
| 1436 | + | |
| 1437 | + | |
| 1438 | + | |
| 1439 | + | |
| 1440 | + | |
| 1441 | + | |
| 1442 | + | |
| 1443 | + | |
| 1444 | + | |
| 1445 | + | |
| 1446 | + | |
| 1447 | + | |
| 1448 | + | |
| 1449 | + | |
1428 | 1450 | | |
1429 | 1451 | | |
1430 | 1452 | | |
0 commit comments