From 9155fb6632c1337ed077b76e06e9d176b5b4889f Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Wed, 30 Sep 2026 23:12:54 -0300 Subject: 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 --- docs/typ/html.typ | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'docs/typ/html.typ') 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()[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 -- cgit v1.3