Skip to content

Commit cab8dfe

Browse files
docs: Specify section anchors in HTML
1 parent 8d41d05 commit cab8dfe

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

scripts/catalog.typ

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@
7575

7676
#outline()
7777

78-
= Introduction
78+
= Introduction <introduction>
7979
#{
8080
let full = read("/README.md")
8181
let start = "<!-- included by catalog.typ — start -->"
@@ -87,15 +87,15 @@
8787
render(readme)
8888
}
8989

90-
= Artifacts in #link("https://github.com/typst-community/dev-builds/releases")[GitHub Releases]
90+
= Artifacts in #link("https://github.com/typst-community/dev-builds/releases")[GitHub Releases] <artifacts>
9191
#{
9292
let catalog = json("/dist/catalog.json")
9393
assert.eq(catalog.version, "0.1.1")
9494

9595
for (name, releases) in catalog.artifacts {
9696
let repo = if name != "docs" { name } else { "typst" }
9797

98-
link("https://github.com/typst/" + repo)[== #raw(name)]
98+
link("https://github.com/typst/" + repo)[#[== #raw(name)] #label(name)]
9999

100100
html.p({
101101
html.img(

0 commit comments

Comments
 (0)