16 lines
322 B
Typst
16 lines
322 B
Typst
#import "/docs.typ": docs-page, note, tip, warn
|
|
|
|
#show: docs-page.with(
|
|
route: "/toc/",
|
|
title: [Contents],
|
|
)
|
|
|
|
#context for doc in query(document) {
|
|
let target = selector(heading).within(doc.location())
|
|
|
|
show outline.entry: it => {
|
|
}
|
|
|
|
outline(depth: 1, target: target, title: link(doc.location(), doc.title))
|
|
}
|