Skip to content

Commit

Permalink
docs: build path
Browse files Browse the repository at this point in the history
  • Loading branch information
nonzzz committed Feb 5, 2025
1 parent 831959f commit 8e83b7f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/render.ts
Original file line number Diff line number Diff line change
Expand Up @@ -227,11 +227,11 @@ function renderMenu(): string {
for (const { key, title, h2s } of structure) {
navs.push(`<li><strong>${title}</strong></li>`)
for (const h2 of h2s) {
navs.push(`<li><a href="/${key}#${h2.id}">${h2.value}</a></li>`)
navs.push(`<li><a href="${key}#${h2.id}">${h2.value}</a></li>`)
if (h2.h3s.length > 0) {
navs.push('<ul>')
for (const h3 of h2.h3s) {
navs.push(`<li><a href="/${key}#${h3.id}">${h3.value}</a></li>`)
navs.push(`<li><a href="${key}#${h3.id}">${h3.value}</a></li>`)
}
navs.push('</ul>')
}
Expand Down Expand Up @@ -346,7 +346,7 @@ async function main() {

// example

html.push('<li><strong><a href="/example">Example</a></strong></li>')
html.push('<li><strong><a href="example">Example</a></strong></li>')

html.push('</ul>')
html.push('</div>')
Expand Down

0 comments on commit 8e83b7f

Please sign in to comment.