-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathastro.config.mjs
64 lines (63 loc) · 1.54 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
53
54
55
56
57
58
59
60
61
62
63
64
import { defineConfig } from 'astro/config';
import starlight from '@astrojs/starlight';
import starlightTypeDoc, { typeDocSidebarGroup } from 'starlight-typedoc';
import starlightVersions from 'starlight-versions';
// https://astro.build/config
export default defineConfig({
site: 'https://guide.shoukaku.shipgirl.moe',
integrations: [
starlight({
components: {
Head: './src/components/Head.astro',
},
plugins: [
// Generate the documentation.
starlightTypeDoc({
entryPoints: ['./shoukaku/index.ts'],
tsconfig: './shoukaku/tsconfig.json',
sidebar: {
collapsed: false,
label: "API Reference",
},
typeDoc: {
exclude: '**/node_modules/@types/node/**',
includeVersion: true,
useHTMLAnchors: true,
useCodeBlocks: true,
expandParameters: true,
expandObjects: true,
parametersFormat: 'table',
enumMembersFormat: 'table',
typeDeclarationFormat: 'table',
indexFormat: 'table',
}
}),
starlightVersions({
versions: [
{ slug: '4.1.0' },
{ slug: '4.0.1' },
{ slug: '3.4.2' },
],
current: {
label: 'master',
}
}),
],
title: 'Shoukaku Docs',
social: {
github: 'https://github.com/shipgirlproject/shoukaku',
discord: 'https://discord.gg/FVqbtGu',
},
sidebar: [
{
label: 'Guides',
autogenerate: { directory: 'guides' },
},
typeDocSidebarGroup,
],
editLink: {
baseUrl: "https://github.com/shipgirlproject/shoukaku-docs/edit/main/"
}
}),
],
});