summaryrefslogtreecommitdiff
path: root/docs/typ/book.typ
diff options
context:
space:
mode:
Diffstat (limited to 'docs/typ/book.typ')
-rw-r--r--docs/typ/book.typ5
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 {