-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathastro.config.mjs
110 lines (109 loc) · 2.49 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
// @ts-check
import { defineConfig } from 'astro/config';
import starlight from '@astrojs/starlight';
import { pluginCollapsibleSections } from '@expressive-code/plugin-collapsible-sections'
import { pluginLineNumbers } from '@expressive-code/plugin-line-numbers'
import starlightSidebarTopics from 'starlight-sidebar-topics'
import catppuccin from 'starlight-theme-catppuccin';
// https://astro.build/config
export default defineConfig({
integrations: [
starlight({
title: "DustWSL",
social: {
github: 'https://github.com/DustVoice/DustWSL',
},
plugins: [
catppuccin({ dark: 'macchiato-mauve', light: "latte-mauve" }),
starlightSidebarTopics([
{
label: 'Introduction',
link: 'intro/syntax',
icon: 'rocket',
items: ['intro/syntax', 'intro/tooling'],
},
{
label: 'Guides',
link: 'pre',
icon: 'open-book',
items: [
{
label: 'Prerequisites',
items: ['pre', 'pre/wsl', 'pre/archwsl'],
},
{
label: '/home/',
items: [
'home',
'home/basic',
'home/dotpre',
'home/dotter',
'home/editor',
'home/shell',
'home/scripting',
{
label: 'Smartcard',
badge: {
text: "Optional",
variant: "note",
},
collapsed: true,
items: [
'home/smartcard',
'home/smartcard/usbip',
{
label: 'GnuPG',
items: [
'home/smartcard/gnupg',
'home/smartcard/gnupg/missing',
'home/smartcard/gnupg/register',
'home/smartcard/gnupg/ssh',
],
},
],
},
],
},
]
},
{
label: 'References',
link: 'ref',
icon: 'information',
items: [
'ref',
{
label: 'GUI',
items: [
'ref/gui',
],
},
{
label: 'Development',
items: [
{
label: 'Languages',
autogenerate: {
directory: 'ref/lang',
},
},
'ref/doom',
],
}
],
},
]),
],
expressiveCode: {
themes: ['catppuccin-macchiato', 'catppuccin-latte'],
plugins: [pluginCollapsibleSections(), pluginLineNumbers()],
defaultProps: {
// Disable line numbers by default
showLineNumbers: false,
},
},
}),
],
site: 'https://dustvoice.github.io',
base: 'DustWSL',
});