docs(website): make module rows direct links

This commit is contained in:
_Kerman
2026-08-13 12:07:30 +08:00
parent f0afc4536d
commit 00933877f0
+3 -13
View File
@@ -36,7 +36,7 @@ function sidebar(locale: DocsLocale, collection: NonNullable<DocsPage['sidebar']
*
* @param locale - Route tree whose guide sidebar is being built.
* @param collection - Guide collection for the locale.
* @returns Guide groups followed by collapsed top-level links to the other documentation modules.
* @returns Guide groups followed by top-level links to the other documentation modules.
*/
function guideSidebar(
locale: DocsLocale,
@@ -49,18 +49,8 @@ function guideSidebar(
const referenceCollection = locale === 'root' ? 'zh-reference' : 'en-reference'
return [
...sidebar(locale, collection),
{
text: labels.develop,
link: landingLink(locale, developCollection),
collapsed: true,
items: sidebar(locale, developCollection),
},
{
text: labels.reference,
link: landingLink(locale, referenceCollection),
collapsed: true,
items: sidebar(locale, referenceCollection),
},
{ text: labels.develop, link: landingLink(locale, developCollection) },
{ text: labels.reference, link: landingLink(locale, referenceCollection) },
]
}