34 lines
1.7 KiB
JavaScript
34 lines
1.7 KiB
JavaScript
// @ts-check
|
|
import { defineConfig } from 'astro/config';
|
|
import starlight from '@astrojs/starlight';
|
|
|
|
export default defineConfig({
|
|
redirects: { '/': '/zh-cn/' },
|
|
integrations: [starlight({
|
|
title: 'ΣDOCS',
|
|
description: 'Simba Robotics / 黑龙江大学 602 创新实验室的工程知识库与校内赛手册。',
|
|
defaultLocale: 'zh-cn',
|
|
locales: {
|
|
'zh-cn': { label: '简体中文', lang: 'zh-CN' },
|
|
en: { label: 'English', lang: 'en' },
|
|
},
|
|
favicon: '/simba/logo.svg',
|
|
customCss: ['./src/styles/custom.css'],
|
|
components: {
|
|
Header: './src/components/Header.astro',
|
|
Hero: './src/components/Hero.astro',
|
|
SiteTitle: './src/components/SiteTitle.astro',
|
|
Footer: './src/components/Footer.astro',
|
|
},
|
|
social: [{ icon: 'github', label: 'Simba Git · 文档仓库', href: 'https://git.simba-robotics.com/PRAM/simba_docs' }],
|
|
sidebar: [
|
|
{ label: '开始阅读', translations: { en: 'Start here' }, items: [{ autogenerate: { directory: 'guides' } }] },
|
|
{ label: '2026 校内赛 · RMIC', translations: { en: '2026 Campus Competition' }, items: [{ autogenerate: { directory: 'competition' } }] },
|
|
{ label: '机械架构 · MEST', translations: { en: 'Mechanical Engineering' }, items: [{ autogenerate: { directory: 'mest' } }] },
|
|
{ label: '电传测控 · ELCT', translations: { en: 'Electronics & Control' }, items: [{ autogenerate: { directory: 'elct' } }] },
|
|
{ label: '视觉算法 · VSAG', translations: { en: 'Vision & Algorithms' }, items: [{ autogenerate: { directory: 'vsag' } }] },
|
|
{ label: '宣传筹划 · PRAM', translations: { en: 'Operations & Media' }, items: [{ autogenerate: { directory: 'pram' } }] },
|
|
],
|
|
})],
|
|
});
|