feat: enable PDF output for pages

Assisted-by: Delta:zai-glm-5.3
This commit is contained in:
Klagarge committed 2026-10-11 18:56:04 +02:00
1 parent 6b33be6956
commit 3b1ef34bce
3 files changed
+9 -3

No files matched your search

+7 -2
View File
@@ -50,6 +50,10 @@ target = "<category>/<page>.typ"
Sidebar labels come from the page's `#metadata(...)` line, not from the config.
Every page also renders a printable PDF twin (`pdf = true` in
`calepin.toml`, selectable in the page's view picker). Add `pdf: false` to a
page's `#metadata(...)` to skip its PDF, as `404.typ` does.
## Adding a category
1. Create `site/<category>/` with an `index.typ`, using
@@ -69,8 +73,9 @@ sidebar.
## Deployment
`just build` produces a fully static site in `public/`: HTML pages plus
`sitemap.xml`, `robots.txt`, and `llms.txt`. The Gitea Actions workflow in
`just build` produces a fully static site in `public/`: HTML pages with
printable PDF twins, plus `sitemap.xml`, `robots.txt`, and `llms.txt`. The
Gitea Actions workflow in
`.gitea/workflows/build.yml` builds the site on every push with the same
pinned toolchain and uploads `public/` as an artifact for deployment to any
static host.
+1
View File
@@ -1,4 +1,5 @@
#set document(title: [Not found])
#metadata((pdf: false)) <website-metadata>
#title()
+1 -1
View File
@@ -2,7 +2,7 @@ title = "Yggdrasil"
description = "Personal knowledge base."
base-url = "https://yggdrasil.kb28.ch"
theme = "themes/yggdrasil"
pdf = false
pdf = true
minify = true
search = "pagefind"
logo = "assets/yggdrasil.svg"