📝 Docs: Changelog 按页码挂载 route (#3100)

This commit is contained in:
StarHeart
2024-11-01 13:54:27 +08:00
committed by GitHub
parent c5aa5d3deb
commit 2b8aae4eee
5 changed files with 33 additions and 34 deletions

View File

@ -146,9 +146,7 @@ const sidebars: SidebarsConfig = {
(chunk, index) => ({
type: "link",
label: chunk[0]!.title,
href: `/changelog/${
index > 0 ? encodeURIComponent(chunk[0]!.title) : ""
}`,
href: `/changelog/${index > 0 ? index.toString() : ""}`,
})
),
},