From 20bcd66dbf147eecff5540ee1da9792e3748db79 Mon Sep 17 00:00:00 2001 From: lintianle Date: Thu, 16 Jul 2026 18:43:12 +0800 Subject: [PATCH] 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. --- website/.vitepress/config/zh-CN.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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: '下一篇' }, }, }