|
| 1 | +// @ts-check |
| 2 | +import { defineConfig } from 'astro/config'; |
| 3 | +import starlight from '@astrojs/starlight'; |
| 4 | +import mermaid from 'astro-mermaid'; |
| 5 | +import starlightThemeRapide from 'starlight-theme-rapide' |
| 6 | + |
| 7 | +// https://astro.build/config |
| 8 | +export default defineConfig({ |
| 9 | + site: 'https://docs.sunrize.uk', |
| 10 | + integrations: [ |
| 11 | + starlight({ |
| 12 | + favicon: '/favicon.svg', |
| 13 | + title: 'Sunrise - osu! Server', |
| 14 | + logo: { |
| 15 | + src: '/public/favicon.svg', |
| 16 | + alt: 'Sunrise Compass', |
| 17 | + |
| 18 | + }, |
| 19 | + tableOfContents: { |
| 20 | + maxHeadingLevel: 4, |
| 21 | + }, |
| 22 | + social: [ |
| 23 | + { icon: 'github', label: 'GitHub', href: 'https://github.com/SunriseCommunity/Compass' }, |
| 24 | + { |
| 25 | + icon: 'discord', |
| 26 | + label: 'Discord', |
| 27 | + href: 'https://discord.sunrize.uk', |
| 28 | + }, |
| 29 | + { |
| 30 | + icon: 'rocket', |
| 31 | + label: 'Server Instance', |
| 32 | + href: 'https://sunrize.uk', |
| 33 | + } |
| 34 | + ], |
| 35 | + sidebar: [ |
| 36 | + { |
| 37 | + label: 'Getting started', |
| 38 | + autogenerate: { directory: 'getting-started' }, |
| 39 | + }, |
| 40 | + { |
| 41 | + label: 'Upgrading', |
| 42 | + autogenerate: { directory: 'upgrading' }, |
| 43 | + }, |
| 44 | + { |
| 45 | + label: 'Contributing', link: "/contributing/" |
| 46 | + }, |
| 47 | + { |
| 48 | + label: 'Deprecated', |
| 49 | + collapsed: true, |
| 50 | + autogenerate: { directory: 'deprecated' }, |
| 51 | + }, |
| 52 | + ], |
| 53 | + plugins: [starlightThemeRapide()], |
| 54 | + customCss: [ |
| 55 | + './src/styles/custom.css' |
| 56 | + ], |
| 57 | + }), |
| 58 | + mermaid() |
| 59 | + ], |
| 60 | +}); |
0 commit comments