Skip to content

docs(build): fix English HTML stylesheet path one level too shallow#4174

Merged
grandixximo merged 1 commit into
LinuxCNC:masterfrom
grandixximo:fix/en-cssrel
Jun 18, 2026
Merged

docs(build): fix English HTML stylesheet path one level too shallow#4174
grandixximo merged 1 commit into
LinuxCNC:masterfrom
grandixximo:fix/en-cssrel

Conversation

@grandixximo

Copy link
Copy Markdown
Contributor

English doc pages were rendering unstyled: they linked en/asciidoctor.css (which does not exist) instead of the stylesheet at the html root.

Cause: since c774b79 English renders from build/adoc/en with a build-rule stem that omits the en/ prefix, so the $(DOC_OUT_ADOC)/%.html cssrel rule counts one directory too few and emits ../ instead of ../../. Translated languages were unaffected (their stem includes the lang dir), and man pages use their own rule.

Fix: add an $(DOC_OUT_ADOC)/en/%.html cssrel rule with the +1, matching the $(DOC_SRCDIR) path that carried it before.

Verified on a clean full build (all 8 languages): every English page's stylesheet depth now matches its directory depth (1174 en+de pages checked, 0 mismatches), man pages and index pages unchanged, checkref clean, and a second build is a no-op with a clean repo.

English renders from build/adoc/en with a stem that omits the en/ prefix,
so the cssrel rule emits ../ instead of ../../ and the pages load a
nonexistent en/asciidoctor.css and render unstyled. Add an en-specific
rule with the +1. Translated languages and man pages were already correct.
@grandixximo grandixximo merged commit ac00efd into LinuxCNC:master Jun 18, 2026
16 checks passed
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.

1 participant