forked from Redot-Experimental/redot-experimental-docs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathastro.config.mjs
52 lines (51 loc) · 1.25 KB
/
astro.config.mjs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
// @ts-check
import { defineConfig } from 'astro/config';
import starlight from '@astrojs/starlight';
import starlightOpenAPI, { openAPISidebarGroups } from 'starlight-openapi'
// https://astro.build/config
export default defineConfig({
site: 'https://docs-experimental.redotengine.org',
integrations: [
starlight({
title: 'Redot Experimental Documentation',
favicon: '/favicon.ico',
editLink: {
baseUrl: 'https://github.com/Redot-Experimental/redot-experimental-docs/edit/master/src/content/docs/',
},
social: {
github: 'https://github.com/Redot-Engine/redot-engine',
discord: "https://discord.gg/redot",
'x.com': 'https://x.com/Redot_Engine',
},
logo: {
light: './src/assets/dark-logo.svg',
dark: './src/assets/light-logo.svg',
replacesTitle: true,
},
customCss: [
'./src/styles/inter.css',
'./src/styles/redot.css',
],
plugins: [
starlightOpenAPI([
{
base: 'api',
label: 'Redot API',
schema: './public/openapi.yaml',
},
]),
],
sidebar: [
{
label: 'Contributing',
autogenerate: { directory: 'contributing' },
},
{
label: 'Roadmap',
autogenerate: { directory: 'roadmap' },
},
...openAPISidebarGroups,
],
}),
],
});