主页修改,部分内容填充测试
This commit is contained in:
+24
-6
@@ -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' } }],
|
||||
},
|
||||
],
|
||||
}),
|
||||
|
||||
Reference in New Issue
Block a user