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:
@@ -85,7 +85,9 @@ export const zhCN: LocaleSpecificConfig<DefaultTheme.Config> = {
|
||||
'/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: '下一篇' },
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user