Commit Graph

5 Commits

Author SHA1 Message Date
Bob Gendler
eb4d7ca3de Merge pull request #800 from sebastian-zentral/fix-pytest-refactoring
test: fix test suite
[skip ci]
2026-09-15 10:44:36 -04:00
sebastian
093bd45903 Fix broken test suite from previous refactorings and deletions 2026-09-15 14:56:07 +02:00
Dan Brodjieski
29e148b3ca fix: add parsing for adoc tables to work with templates 2026-09-14 16:49:32 -04:00
Henry Stamerjohann
3b9a5c45d8 feat!: remove Ruby/AsciiDoctor -- typst PDF + Python HTML are the defaults
typst (PDF) and Python (HTML/Markdown) are now the only guidance engines
and the default with no flags. Delete the Gemfile, the output_format==adoc
branch (bundle exec asciidoctor[-pdf]), the adoc/ template tree, the
asciidoctor-pdf themes, and the --pdf-engine/--html-engine flags.

Canonical outputs unchanged for users: <baseline>_<lang>.pdf (typst) and
.html (Python); the intermediate is now .typ instead of .adoc. typst (the
'typst' Python package) is required for the PDF -- a missing package is a
hard error with a 'uv sync' hint (covered by a test). Keep asciidoctor.css
/ -dark.css, now inlined by the Python HTML backend. Also drop the unused
renovate config.
2026-08-13 15:37:50 +02:00
Henry Stamerjohann
538f7e4b72 feat(guidance): add Python HTML rendering backend
Render guidance HTML in pure Python (Jinja) instead of asciidoctor,
reusing the bundled asciidoctor.css inlined into a self-contained file.
The html/ template tree reuses AsciiDoctor class names so the existing CSS
styles it (cover page, numbered TOC, rules, references, admonitions).
Also harden asciidoc_to_typst to escape unbalanced */_/[/] (from regexes,
shell examples, and AsciiDoc artifacts) so every baseline compiles.
2026-08-13 15:36:08 +02:00