diff options
| author | Gabriel Schneider <[email protected]> | 2026-09-30 23:12:54 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-10-01 00:12:17 -0300 |
| commit | 9155fb6632c1337ed077b76e06e9d176b5b4889f (patch) | |
| tree | db1bd14398054d1ff57f0e160547e090eb6a9ac8 /docs/typ/book.typ | |
| parent | 450ce314c18603b045f0ce808f21c8577237ba83 (diff) | |
| download | pardes-9155fb6632c1337ed077b76e06e9d176b5b4889f.tar.gz pardes-9155fb6632c1337ed077b76e06e9d176b5b4889f.zip | |
The book and the HTML hold every topic, and #doc links to its chapter or section
chapters now names guide, cheatsheet, scripting, reference, themes and
building. #doc takes the chapter ids, keeps the old ones mapped onto
them (tags and fs to the guide and the reference, config, keys and
detached to their guide sections), and links in the book and the HTML,
where a doc-links state says every chapter is there; on the A4 sheet it
names the chapter and section. The reference points at the scripting
and building chapters by #doc instead of in words, and the guide heading
for pardes FILE and --wait keeps its two dashes.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Diffstat (limited to 'docs/typ/book.typ')
| -rw-r--r-- | docs/typ/book.typ | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/docs/typ/book.typ b/docs/typ/book.typ index 26191fa7..7af907c3 100644 --- a/docs/typ/book.typ +++ b/docs/typ/book.typ @@ -2,9 +2,10 @@ // content files named by `chapters` in style.typ; this is layout only. // typst compile --root . --ignore-system-fonts docs/typ/book.typ // (--root . because the tutor is read from src/tutor.txt.) -#import "style.typ": palette, mono, chapters, tutor-path +#import "style.typ": palette, mono, chapters, tutor-path, doc-links #set document(title: "pardes") +#doc-links.update(true) #set page(paper: "a4", fill: palette.paper, margin: (x: 22mm, y: 24mm)) #set text(font: "Libertinus Serif", size: 10.5pt, fill: palette.ink, lang: "en") #set par(justify: true, leading: 0.6em) @@ -32,7 +33,7 @@ #counter(page).update(1) #for ch in chapters { - heading(level: 1, ch.title) + [#heading(level: 1, ch.title) #label("ch-" + ch.id)] if ch.file == none { text(style: "italic", fill: palette.tag-fg)[This chapter is not written yet.] } else { |
