// @ts-check import { defineConfig } from 'astro/config'; import starlight from '@astrojs/starlight'; // https://astro.build/config export default defineConfig({ integrations: [ 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: '视觉算法', translations: { 'en': 'Vision & Algorithm', }, items: [ // Each item here is one entry in the navigation menu. { autogenerate: { directory: 'vsag' } }, ], }, { label: '电传测控', translations: { 'en': 'Electronics & Control', }, items: [{ autogenerate: { directory: 'elct' } }], }, ], }), ], });