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/html.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/html.typ')
| -rw-r--r-- | docs/typ/html.typ | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/docs/typ/html.typ b/docs/typ/html.typ index 2b7277e6..5f9082cd 100644 --- a/docs/typ/html.typ +++ b/docs/typ/html.typ @@ -2,17 +2,18 @@ // each under an anchor named by its id, then the tutor. // typst compile --root . --features html --format html docs/typ/html.typ pardes.html // One page because Typst 0.15's HTML export writes one document per run. -#import "style.typ": chapters, tutor-path +#import "style.typ": chapters, tutor-path, doc-links #set document(title: "pardes") +#doc-links.update(true) #html.elem("nav", { - for ch in chapters [- #link(label(ch.id), ch.title)] + for ch in chapters [- #link(label("ch-" + ch.id), ch.title)] [- #link(<tutor>)[The tutor]] }) #for ch in chapters [ - #heading(level: 1, ch.title) #label(ch.id) + #heading(level: 1, ch.title) #label("ch-" + ch.id) #if ch.file == none [_This chapter is not written yet._] else { set heading(offset: 1) include ch.file |
