This commit is contained in:
+14
-2
@@ -72,6 +72,8 @@ export default defineConfig({
|
||||
{ text: '界面预览', link: '/#preview' },
|
||||
// activeMatch:进入任一项目详情页时「项目」保持高亮
|
||||
{ text: '项目', link: '/projects/', activeMatch: '^/projects/' },
|
||||
// 教程视频:站内页,含各项目的录制清单与分镜
|
||||
{ text: '教程', link: '/guide/videos', activeMatch: '^/guide/videos' },
|
||||
// 官方文档直接跳文档站(外站),不在本站内做锚点停留
|
||||
{
|
||||
text: '官方文档',
|
||||
@@ -86,14 +88,24 @@ export default defineConfig({
|
||||
{
|
||||
text: '项目',
|
||||
collapsed: false,
|
||||
items: projects.map((p) => ({ text: p.name, link: p.page })),
|
||||
// 每个项目带自己的子页面(快速开始 / 部署 / 教程等),
|
||||
// 子页面清单来自注册表的 sections,不在此处重复维护。
|
||||
items: projects.map((p) => ({
|
||||
text: p.name,
|
||||
link: p.page,
|
||||
collapsed: false,
|
||||
items: p.sections.map((s) => ({ text: s.text, link: s.link })),
|
||||
})),
|
||||
},
|
||||
],
|
||||
'/guide/': [
|
||||
{
|
||||
text: '门户',
|
||||
collapsed: false,
|
||||
items: [{ text: '门户部署', link: '/guide/portal-deploy' }],
|
||||
items: [
|
||||
{ text: '教程中心', link: '/guide/videos' },
|
||||
{ text: '门户部署', link: '/guide/portal-deploy' },
|
||||
],
|
||||
},
|
||||
],
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user