diff options
| author | Gabriel Schneider <[email protected]> | 2026-11-17 18:43:09 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-11-17 18:43:24 -0300 |
| commit | 73b2fd0d3f49cbee52146f6f473962687691dd87 (patch) | |
| tree | 3ab7ff84c177f432221935bf709193d6b2450536 /docs/typ/README | |
| parent | b7b6a682cd8abe63f763eb671a068b53be9600d8 (diff) | |
| download | pardes-73b2fd0d3f49cbee52146f6f473962687691dd87.tar.gz pardes-73b2fd0d3f49cbee52146f6f473962687691dd87.zip | |
docs: How pardes runs, a chapter after the guide: the four kinds of process (session, client, daemon, stub) and what each holds, a figure for each way of starting pardes (pardes in a terminal, pardes-gui, --detach, attach to a detached session, attach to one with a frontend, a far session, no daemon), the table of who holds the truth, what draws and what a closed terminal or window does, what survives what, and the words ruled on 2026-11-17 with the older ones the code still says; what is built only, each fact's file:line in a comment beside it; the cheatsheet's pointer for sessions goes there (cheatsheet-a4.pdf rendered again, still one page)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
Diffstat (limited to 'docs/typ/README')
| -rw-r--r-- | docs/typ/README | 25 |
1 files changed, 21 insertions, 4 deletions
diff --git a/docs/typ/README b/docs/typ/README index d246c3ed..641343f1 100644 --- a/docs/typ/README +++ b/docs/typ/README @@ -7,6 +7,11 @@ docs/typ: the Typst documentation corpus cheatsheet.typ content: facts as markup and the calls below, no layout. Later topics (guide, scripting, reference, building) go beside it as their own content files. + figures.typ the figures, drawn with cetz (@preview/cetz:0.4.2, + the corpus's one package: typst fetches it once into + its package cache, and an offline build needs it + there). The only file that imports cetz; a content + file imports the figure it shows from here. cheatsheet-a4.typ output wrapper: the one-page A4 cheatsheet. book.typ output wrapper: an A4 book, title page, contents, every chapter, then the tutor (src/tutor.txt). @@ -15,8 +20,9 @@ docs/typ: the Typst documentation corpus run (see docs/site/README). Wrappers hold layout only, never facts. -Chapters: `chapters` in style.typ lists them in reading order (guide, setup, -cheatsheet, scripting, reference, themes, building), each with its content file, +Chapters: `chapters` in style.typ lists them in reading order (guide, +running, setup, cheatsheet, scripting, reference, builtins, themes, +building), each with its content file, or none while it is not written (the outputs show a placeholder). To add a topic, write docs/typ/<id>.typ and set its `file`. Wrappers include it with heading offset 1, so its = headings sit under the chapter title, @@ -38,6 +44,7 @@ Start a content file with #import "style.typ": key, keys, btn, chord, word, tag, addr, file, cmd, doc, pairs, fstree, annotated, mode-box (a content file does not import page setup; the same file goes into the book, the HTML and, for the cheatsheet, the A4 page) +and, for a figure, the function that draws it from figures.typ and use plain markup (= headings, - lists, `raw`, *strong*) plus these. Never set page, fonts, colours or spacing in a content file; ask for a new function instead. @@ -65,8 +72,8 @@ new function instead. cmd(c) a shell line, as a block. #cmd("echo Save > $m/pane/$n/ctl") doc(id, section:) a pointer to a chapter, or a section of it by the label - on its heading. Ids: guide setup cheatsheet scripting - reference themes building (and the older tags fs + on its heading. Ids: guide running setup cheatsheet + scripting reference themes building (and the older tags fs config keys detached, mapped in `topics`). A link in the book and the HTML; on the A4 sheet, its name. #doc("building", section: "listeners") @@ -121,6 +128,16 @@ key(), keys() or tag() names a builtin, key binding or default tag that pardes no longer has. Pass these functions string literals, so the test can read them. +Figures +------- +figures.typ draws with cetz in style.typ's palette, one function a figure +(running.typ's `run-terminal()`, ...). On paper a figure is its canvas; in +HTML the same canvas becomes an inline SVG (html.frame) on the paper +colour, in a <figure class="diagram"> that site.css frames, so it reads +the same on the site's dark page. A figure's labels are text in the SVG +as glyph outlines: they scale, but a text browser reads only the +figure's aria-label. + 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. |
