rename and reorganize guide pages

This commit is contained in:
outfoxxed 2025-05-13 20:56:31 -07:00
parent b066a48976
commit 02f28202d1
Signed by: outfoxxed
GPG key ID: 4C88A185FB89301E
9 changed files with 14 additions and 19 deletions

View file

@ -21,7 +21,8 @@ const guidePages = await getCollection("guide");
function genGuideNav(base: string): TreeEntry[] | undefined {
const pages = guidePages
.filter(page => page.id.match(`^${base}[^/]*$`) !== null)
.filter(page => page.id.match(`^${base}[^/]*$`) !== null && page.id != "index")
.sort((a, b) => a.data.index - b.data.index)
.map(page => ({
title: page.data.title,
link: `/docs/guide/${page.id}`,
@ -33,7 +34,7 @@ function genGuideNav(base: string): TreeEntry[] | undefined {
}
const guide = {
title: "Guide",
title: "Usage Guide",
link: "/docs/guide",
current: currentRoute.startsWith("guide"),
entries: genGuideNav(""),