diff --git a/website/.vitepress/config/zh-CN.ts b/website/.vitepress/config/zh-CN.ts index ba83cf52c5..0cea119777 100644 --- a/website/.vitepress/config/zh-CN.ts +++ b/website/.vitepress/config/zh-CN.ts @@ -85,7 +85,9 @@ export const zhCN: LocaleSpecificConfig = { '/zh-CN/api/': apiSidebar, '/zh-CN/design/': designSidebar, }, - outline: { label: '本页目录' }, + // level [2,3]: the generated API pages put each member at h3 (### ctx.foo) + // under an h2 scope/statics group — both belong in the page outline. + outline: { label: '本页目录', level: [2, 3] }, docFooter: { prev: '上一篇', next: '下一篇' }, }, }