summaryrefslogtreecommitdiff
path: root/docs/typ/README
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-09-30 21:44:04 -0300
committerGabriel Schneider <[email protected]>2026-10-01 00:12:17 -0300
commit163531dce202e71977f4524cab65702606caca62 (patch)
treed59a7f507c7ca81e6307e790e7f2584d9446ab67 /docs/typ/README
parent988b288b870dd0165f09b991839c2c37fcd3fd62 (diff)
parentdb2a259a18b9247edc23b1128dcfda703858f120 (diff)
downloadpardes-163531dce202e71977f4524cab65702606caca62.tar.gz
pardes-163531dce202e71977f4524cab65702606caca62.zip
Release Pardes 0.13
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Diffstat (limited to 'docs/typ/README')
-rw-r--r--docs/typ/README29
1 files changed, 29 insertions, 0 deletions
diff --git a/docs/typ/README b/docs/typ/README
new file mode 100644
index 00000000..175a7abb
--- /dev/null
+++ b/docs/typ/README
@@ -0,0 +1,29 @@
+docs/typ: the Typst documentation corpus
+
+ style.typ the semantic elements (key btn chord word tag addr file
+ cmd doc), the palette and the topic ids; the only place
+ they are defined. Each element looks at target() and
+ draws itself for paged output or emits HTML elements.
+ cheatsheet.typ content: facts as markup and element calls, no layout.
+ Later topics (tags, fs, config, ...) go beside it as
+ their own content files, importing from style.typ.
+ cheatsheet-a4.typ
+ an output wrapper: page, type, headings, then #include
+ of the content. Future wrappers (book.typ, html.typ)
+ sit beside it; wrappers hold no facts.
+
+Build (from the repo root):
+
+ typst compile --ignore-system-fonts docs/typ/cheatsheet-a4.typ
+ zig build cheatsheet -Dplatform=tty --prefix DIR # DIR/share/doc/pardes/cheatsheet.pdf
+ typst compile --features html --format html docs/typ/cheatsheet.typ out.html
+
+Write #word("Name") for a builtin, #key("SPC f c") or #key("Ctrl-w") for
+keys, #tag("words", path: ...) for a default tagline, #doc("fs", section:
+"edit") to point at a topic. The unit test "docs/typ names only words,
+keys and default tags that exist" (src/config.zig) reads every .typ here
+and fails when one names a builtin, key binding or default tag that pardes
+no longer has. Only embedded fonts (Libertinus Serif, DejaVu Sans Mono),
+so output is the same on every machine. docs/typ/cheatsheet-a4.pdf is
+committed, as the other docs PDFs are; re-render it when the content
+changes.