website: include h3 member headings in the page outline

The generated API pages put each member at h3 under an h2 group; default
outline depth (h2 only) hid them, leaving e.g. the Context page outline with a
single 'Static members' entry.
This commit is contained in:
lintianle
2026-07-16 18:43:12 +08:00
parent efba9fab0a
commit 20bcd66dbf

View File

@@ -85,7 +85,9 @@ export const zhCN: LocaleSpecificConfig<DefaultTheme.Config> = {
'/zh-CN/api/': apiSidebar, '/zh-CN/api/': apiSidebar,
'/zh-CN/design/': designSidebar, '/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: '下一篇' }, docFooter: { prev: '上一篇', next: '下一篇' },
}, },
} }