diff --git a/Makefile b/Makefile index a0326d1..02fbef3 100644 --- a/Makefile +++ b/Makefile @@ -13,6 +13,7 @@ NPX ?= npx PAGEDJS ?= $(NPX) pagedjs-cli SED ?= sed SILE ?= sile +SPEEDATA ?= sp TERA ?= tera TOMLQ ?= tomlq TYPST ?= typst @@ -27,6 +28,8 @@ PAGEDJS_ARGS = -i $< -o $@ SILE_ARGS = -o $@ $< +SPEEDATA_ARGS = --dummy --layout $< --jobname $*-speedata + TYPST_ARGS = compile $< $@ WEASYPRINT_ARGS = $< $@ @@ -70,6 +73,9 @@ node_modules: %-sile.pdf %-sile.toml: %/sile.xml $(call make_manifest,$(SILE) $(SILE_ARGS)) +%-speedata.pdf %-speedata.toml: %/speedata.xml + $(call make_manifest,$(SPEEDATA) $(SPEEDATA_ARGS)) + %-typst.pdf %-typst.toml: %/typst.typ $(call make_manifest,$(TYPST) $(TYPST_ARGS)) diff --git a/content/hello-world.md b/content/hello-world.md index 76fddde..bffbb7a 100644 --- a/content/hello-world.md +++ b/content/hello-world.md @@ -1,7 +1,7 @@ +++ title = "Hello World!" description = "Your most basic greeting." -extra.typesetters = [ "sile", "typst", "xelatex", "pagedjs", "weasyprint" ] +extra.typesetters = [ "sile", "typst", "xelatex", "pagedjs", "weasyprint", "speedata" ] +++ Just the simplest way to get a phrase onto a numbered page. diff --git a/data/hello-world/speedata.xml b/data/hello-world/speedata.xml new file mode 100644 index 0000000..700d1ef --- /dev/null +++ b/data/hello-world/speedata.xml @@ -0,0 +1,30 @@ + + + + + + + + + +
+ + + +
+
+
+
+ + + + + + Hello World + + + + +
diff --git a/templates/page.html b/templates/page.html index 54ef571..df172e8 100644 --- a/templates/page.html +++ b/templates/page.html @@ -27,7 +27,7 @@

{{ typesetter }}

Input document

- {% set source = load_data(path=manifest.src) %} + {% set source = load_data(path=manifest.src, format="plain") %}
{{ source }}

Render command