Skip to content

Commit f027eba

Browse files
committed
feat(website): 添加支持中心页面和多语言主题功能
1 parent c3d00d2 commit f027eba

19 files changed

Lines changed: 2738 additions & 178 deletions

website/astro.config.mjs

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,19 @@ export default defineConfig({
2828
social: [
2929
{ icon: 'github', label: 'GitHub', href: 'https://github.com/codedogQBY/ReadAny' },
3030
],
31+
components: {
32+
Header: './src/components/starlight/Header.astro',
33+
ThemeProvider: './src/components/starlight/ThemeProvider.astro',
34+
ThemeSelect: './src/components/starlight/ThemeSelect.astro',
35+
LanguageSelect: './src/components/starlight/LanguageSelect.astro',
36+
MobileTableOfContents: './src/components/starlight/MobileTableOfContents.astro',
37+
MobileMenuFooter: './src/components/starlight/MobileMenuFooter.astro',
38+
},
39+
tableOfContents: {
40+
minHeadingLevel: 2,
41+
maxHeadingLevel: 4,
42+
},
3143
sidebar: [
32-
{
33-
label: 'Support Center',
34-
translations: { 'zh-CN': '帮助中心' },
35-
autogenerate: { directory: 'support' },
36-
},
3744
{
3845
label: 'Getting Started',
3946
translations: { 'zh-CN': '快速开始' },

0 commit comments

Comments
 (0)