Skip to content

docs(build): render English and .dot SVGs into build/, keep docs/src clean#4110

Open
grandixximo wants to merge 2 commits into
LinuxCNC:masterfrom
grandixximo:docs/render-en-from-build
Open

docs(build): render English and .dot SVGs into build/, keep docs/src clean#4110
grandixximo wants to merge 2 commits into
LinuxCNC:masterfrom
grandixximo:docs/render-en-from-build

Conversation

@grandixximo
Copy link
Copy Markdown
Contributor

Follow-up to #4081, applying the principle that nothing generated should live in the source tree (Bertho's gitignore review).

  • components_gen.adoc (the auto-generated HAL component list) now renders into build/adoc/en/ and the English build reads it from there, instead of writing into docs/src/hal/.
  • the SVGs rendered from the .dot sources now land in build/ instead of docs/src/code/.

No output changes; only the generated files move out of the source tree.

Per review (BsAtHome): generated files should not live in the source tree.
The English docs now render from build/adoc/en, the same model the
translations already use, instead of from docs/src.

- Stage the English .adoc + images + code fixtures (e.g. panelui_handler.py)
  into build/adoc/en via a find|tar copy (no rsync dependency).
- Generate components_gen.adoc straight into build/adoc/en/hal and point its
  po4a master there (po4a.cfg only; msgids unchanged, so no pot/po churn).
- Repoint the English HTML and PDF rules, the html-copy step, and the
  dependency extractor at build/adoc/en.

docs/src no longer accumulates components_gen.adoc or per-topic .html;
docs/.gitignore drops those entries.  The .dot-rendered SVGs are still
generated in src/code and staged across (a follow-on moves their generation
into build too).

Validated with a full English htmldocs build (585 pages, no include errors).
PDF and translated builds still to be verified.
The .dot diagrams under docs/src/code/ rendered their SVGs beside the
sources; route them into build/adoc/en/<topic> instead, so docs/src holds
no generated artifacts. The translated image-copy steps source images from
src, so fall back to the English build tree for the generated SVGs. Drops
the six src/code/*.svg entries from docs/.gitignore.
@grandixximo grandixximo force-pushed the docs/render-en-from-build branch from dd6d9c9 to c99d73c Compare June 3, 2026 01:24
@BsAtHome
Copy link
Copy Markdown
Contributor

BsAtHome commented Jun 3, 2026

This might accumulate some conflicts when #4109 gets merged. Just thinking out loud...

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