主页修改,部分内容填充测试

This commit is contained in:
2026-06-25 23:52:43 +08:00
parent 67238bb576
commit c897e23397
8 changed files with 6874 additions and 18 deletions
+24 -6
View File
@@ -6,19 +6,37 @@ import starlight from '@astrojs/starlight';
export default defineConfig({
integrations: [
starlight({
title: 'My Docs',
social: [{ icon: 'github', label: 'GitHub', href: 'https://github.com/withastro/starlight' }],
title: 'ΣDOCS',
defaultLocale: 'zh-cn',
locales: {
// English docs in `src/content/docs/en/`
en: {
label: 'English',
},
// Simplified Chinese docs in `src/content/docs/zh-cn/`
'zh-cn': {
label: '简体中文',
lang: 'zh-CN',
},
},
social: [{ icon: 'github', label: 'SGit', href: 'https://git.simba-robotics.com/PRAM/simba_docs' }],
sidebar: [
{
label: 'Guides',
label: '视觉算法',
translations: {
'en': 'Vision & Algorithm',
},
items: [
// Each item here is one entry in the navigation menu.
{ label: 'Example Guide', slug: 'guides/example' },
{ autogenerate: { directory: 'vsag' } },
],
},
{
label: 'Reference',
items: [{ autogenerate: { directory: 'reference' } }],
label: '电传测控',
translations: {
'en': 'Electronics & Control',
},
items: [{ autogenerate: { directory: 'elct' } }],
},
],
}),