Skip to content

docs: fix the two remaining htmldocs CI warnings - #4410

Merged
grandixximo merged 2 commits into
LinuxCNC:masterfrom
grandixximo:docs-adoc-xref-fence
Aug 19, 2026
Merged

docs: fix the two remaining htmldocs CI warnings#4410
grandixximo merged 2 commits into
LinuxCNC:masterfrom
grandixximo:docs-adoc-xref-fence

Conversation

@grandixximo

@grandixximo grandixximo commented Aug 19, 2026

Copy link
Copy Markdown
Contributor

Clears the two remaining htmldocs CI warnings.

python-hal-interface.adoc used inter-document xref syntax, xref:python-lcnc_realtime.adoc[]. The docs build as one book, so it renders as href="#python-lcnc_realtime.adoc", a fragment that does not exist; htmlcheck.sh flagged it in all eight languages. Now <<cha:python-lcnc_realtime>>, the anchor the target chapter declares.

The rc.local example in hm2_rpspi.9.adoc used a markdown ``` fence. po4a does not recognise fences and reflows the block onto one line, so every translated build hit unterminated listing block and lost the rest of the page (the German manpage drops NOTE, AUTHOR and LICENSE). A plain `----` listing block fixes it; po4a then keeps the line breaks.

The three links to the LinuxCNC realtime check used inter-document xref
syntax (xref:python-lcnc_realtime.adoc[]). The documentation is built as a
single book, so asciidoctor emitted href="#python-lcnc_realtime.adoc",
a fragment that does not exist anywhere in the output. htmlcheck.sh
reported the resulting broken fragments for every language.

Use the anchor the target chapter actually declares,
<<cha:python-lcnc_realtime>>, matching the reference style already used in
hal/halmodule.adoc.
The rc.local example was written as a markdown-style ``` fenced block.
Asciidoctor renders that correctly for English, but po4a's asciidoc parser
does not recognise the fences: it extracts the block as an ordinary
paragraph and reflows it onto one line. In every translated build the
opening fence then read as an unterminated listing block, so asciidoctor
warned about it and swallowed the rest of the page. The German manpage,
for example, lost the NOTE, AUTHOR and LICENSE sections entirely and put
the shell commands in a data-lang attribute.

With a proper ---- listing block po4a classifies it as a verbatim block
and keeps the line breaks, and the translated pages render in full.
@grandixximo
grandixximo merged commit 0bb86dd into LinuxCNC:master Aug 19, 2026
17 checks passed
@grandixximo

Copy link
Copy Markdown
Contributor Author

no warnings 🌞

@BsAtHome

Copy link
Copy Markdown
Contributor

One new bummer from me and one old one, it seems ;-)

@grandixximo
grandixximo deleted the docs-adoc-xref-fence branch August 19, 2026 09:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants