Docs Translator

Converts Markdown documentation in `docs-md/` into styled HTML pages in `web/docs/`.

Converts Markdown documentation in docs-md/ into styled HTML pages in web/docs/.

Common Workflows

Regenerate the Entire Docs Site

python routines/docs/docs-translator.py --regenerate

Translate a Single File

python routines/docs/docs-translator.py --input-file docs-md/architecture-overview.md

Translate a Folder

python routines/docs/docs-translator.py --input-folder docs-md/simulations --recursive

Output Paths

When --output is not provided, the translator mirrors the docs-md/ directory structure into web/docs/ and converts .md.html.

Examples:

  • docs-md/playground/playground-guide.mdweb/docs/playground/playground-guide.html
  • docs-md/simulations/validation.mdweb/docs/simulations/validation.html

Templates

  • Default template: templates/documentation-page-template.html
  • Override with: --template <template-file> and/or --template-dir <dir>

Notes

  • Internal links: The site serves docs under /docs/, so docs should link to other docs using /docs/.../page (no .html).
  • Images: Local images referenced from markdown are copied into /assets/images/docs/ and paths are rewritten automatically.