|
| 1 | +// @ts-check |
| 2 | +import { defineConfig } from 'astro/config'; |
| 3 | +import starlight from '@astrojs/starlight'; |
| 4 | +import { typst } from 'astro-typst'; |
| 5 | + |
| 6 | +// https://astro.build/config |
| 7 | +export default defineConfig({ |
| 8 | + site: 'https://project-lemonlime.github.io', |
| 9 | + base: 'Project_LemonLime', |
| 10 | + integrations: [ |
| 11 | + starlight({ |
| 12 | + title: 'LemonLime Manual', |
| 13 | + tableOfContents: false, |
| 14 | + favicon: '/favicon.png', |
| 15 | + social: [{ icon: 'github', label: 'GitHub', href: 'https://github.com/Project-LemonLime/Project_LemonLime' }], |
| 16 | + sidebar: [ |
| 17 | + { |
| 18 | + label: 'Manual', |
| 19 | + items: [ |
| 20 | + { label: '快速开始', slug: 'quickstart' }, |
| 21 | + { label: '简介', slug: 'intro' }, |
| 22 | + { label: '安装', slug: 'install' }, |
| 23 | + { label: '设置', slug: 'settings' }, |
| 24 | + { label: '比赛', slug: 'contest' }, |
| 25 | + { label: '测试', slug: 'judge' }, |
| 26 | + { label: '比赛统计', slug: 'statistics' }, |
| 27 | + { label: '常见问题及回答', slug: 'issue' }, |
| 28 | + ], |
| 29 | + }, |
| 30 | + ], |
| 31 | + }), |
| 32 | + typst({ |
| 33 | + options: { |
| 34 | + remPx: 14, |
| 35 | + }, |
| 36 | + target: "html", |
| 37 | + }), |
| 38 | + ], |
| 39 | +}); |
0 commit comments