Skip to content

Commit

Permalink
fixup! fixup! chore(tooling): Add tooling to regenerate Tyst example …
Browse files Browse the repository at this point in the history
…outputs
  • Loading branch information
alerque committed Dec 3, 2024
1 parent 3f5858f commit d1b37f8
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,13 @@ typst/readme_%.svg: typst/readme_%.typ
$(TYPST) compile -f svg $< $@
$(SVGO) --multipass --precision 2 --pretty --indent 2 $@

typst/readme_%.typ: typst/README.md
env 'OUTPUT_PATTERN=typst/readme_%s.typ' $(PANDOC) $< -o $@
CODEBLOCK_FILTER = build-aux/extract_codeblocks.lua
EXTRA_DIST += $(CODEBLOCK_FILTER)

typst/readme_%.typ: typst/README.md $(CODEBLOCK_FILTER)
env 'OUTPUT_PATTERN=typst/readme_%s.typ' \
$(PANDOC) --lua-filter $(CODEBLOCK_FILTER) -t plain $< -o /dev/null
$(SED) -i -e '1s/".*"/"decasify.typ"/' $@

check: busted pytest

Expand Down

0 comments on commit d1b37f8

Please sign in to comment.