plan/pdf-tools-fitness-recommendation.md
0 → 100644
+253
−0
Loading
Primary recommendation: plug the hackathon knowledge-base into the
existing quicknxsv2/docs/ Sphinx tree via myst-parser and
sphinxcontrib-mermaid, and build the stakeholder PDF with Sphinx's
LaTeX (or rinohtype) backend. Reuses the project's own toolchain;
renders Mermaid and math natively; produces both HTML and PDF from
one source.
Fallback: adopt pdf-tools/md2pdf.py from instrument-motion-investigations
with three targeted patches (neutralize the motion-control header,
pre-render Mermaid to SVG via mmdc or one-shot, optional Pygments).
Markdown sources remain valid MyST, so the fallback is a strict
subset with a zero-edit upgrade path to the primary.
Prototyped md2pdf.py against a representative sample-arch.md with
Mermaid + math + tables + code blocks: confirmed Mermaid passes
through as raw text (dealbreaker for architecture docs) and LaTeX
math is not typeset. Other md2pdf features (tables, TOC with page
numbers, code wrap, callouts) render correctly.
Closes plan/pdf-tools-fitness-review.md (status -> completed).
Co-Authored-By:
Claude Opus 4.7 (1M context) <noreply@anthropic.com>