Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ MAGICK ?= magick
NPM ?= npm
NPX ?= npx
PAGEDJS ?= $(NPX) pagedjs-cli
QUARKDOWN ?= quarkdown
SATYSFI ?= satysfi
SED ?= sed
SILE ?= sile
Expand All @@ -34,8 +35,12 @@ ZOLA ?= zola
BASE_URL = /

GROFF_ARGS = -T pdf $< > $@

QUARKDOWN_ARGS = c --pdf --out . $<

PAGEDJS_ARGS = -i $< -o $@

QUARKDOWN_ARGS = c --pdf --out $(@D) $<
SATYSFI_ARGS = $< -o $@

SILE_ARGS = -o $@ $<
Expand Down Expand Up @@ -66,7 +71,7 @@ define make_manifest ?=
demosrc = "$(notdir $(basename $@)$(suffix $<))"
demoout = "$(notdir $@)"
preview = "$(notdir $(basename $@)).avif"
cmd = "$(subst $(NPX) ,,$(subst $<,$(notdir $(basename $@)$(suffix $<)),$(subst $@,$(notdir $@),$1)))"
cmd = "$(subst --out $(@D),,$(subst $(NPX) ,,$(subst $<,$(notdir $(basename $@)$(suffix $<)),$(subst $@,$(notdir $@),$1))))"
EOF
exec $1
endef
Expand Down Expand Up @@ -121,6 +126,10 @@ fonts: .fonts/EgyptianOpenType.ttf
local args="$(call get_typesetter_args,content/$(notdir $(basename $*)).md,$(notdir $(basename $<)))"
$(call make_manifest,$(PAGEDJS) $(TYPESETTER_ARGS) $(PAGEDJS_ARGS))

%-quarkdown.pdf %-quarkdown.toml: %/quarkdown.qd
local args="$(call get_typesetter_args,content/$(notdir $(basename $@)).md,$(notdir $(basename $<)))"
$(call make_manifest,$(QUARKDOWN) $(TYPESETTER_ARGS) $(QUARKDOWN_ARGS))

%-satysfi.pdf %-saty.toml: %/satysfi.saty
$(call make_manifest,$(SATYSFI) $(SATYSFI_ARGS))

Expand Down
2 changes: 1 addition & 1 deletion content/hello-world.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
+++
title = "Hello World!"
description = "Your most basic greeting."
extra.typesetters = [ "sile", "typst", "xelatex", "groff", "satysfi", "pagedjs", "weasyprint" ]
extra.typesetters = [ "sile", "typst", "xelatex", "groff", "satysfi", "pagedjs", "weasyprint", "quarkdown" ]
+++

Just the simplest way to get a phrase onto a numbered page.
Expand Down
7 changes: 7 additions & 0 deletions data/hello-world/quarkdown.qd
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
.docname {hello-world-quarkdown}
.doctype {paged}

.pagemargin {bottomcenter}
.currentpage

Hello World
3 changes: 3 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
url = "github:edolstra/flake-compat";
flake = false;
};
quarkdown.url = "github:iamgio/quarkdown";
teracli.url = "github:chevdor/tera-cli";
};

Expand All @@ -22,6 +23,7 @@
flake-utils,
flake-compat,
gitignore,
quarkdown,
teracli,
}:
flake-utils.lib.eachDefaultSystem (
Expand Down Expand Up @@ -62,6 +64,7 @@
luajitPackages.luarocks
mold
nodejs
quarkdown.defaultPackage.${system}
rustc
satysfi
sile
Expand Down
3 changes: 3 additions & 0 deletions templates/menu.html
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@
<li>
<a href="https://patoline.github.io/">Patoline</a>
</li>
<li>
<a href="https://quarkdown.com/">Quarkdown</a>
</li>
<li>
<a href="https://github.com/gfngfn/SATySFi">SATySFi</a>
</li>
Expand Down
Loading