-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathastro.config.mjs
112 lines (110 loc) · 2.84 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
111
112
import react from "@astrojs/react";
import starlight from "@astrojs/starlight";
import tailwind from "@astrojs/tailwind";
import { defineConfig } from "astro/config";
// https://astro.build/config
const defaultDomain = process.env.ZANE_DOMAINS?.split(",")[0] ?? "zaneops.dev";
export default defineConfig({
site: `https://${defaultDomain}`,
devToolbar: {
enabled: false
},
integrations: [
starlight({
title: "ZaneOps documentation",
logo: {
light: "./src/assets/ZaneOps-SYMBOL-BLACK.svg",
dark: "./src/assets/ZaneOps-SYMBOL-WHITE.svg",
replacesTitle: true
},
editLink: {
baseUrl: "https://github.com/zane-ops/docs/edit/main/"
},
customCss: [
"./src/tailwind.css",
"./src/assets/theme.css",
"./src/assets/fonts/font-face.css"
],
social: {
github: "https://github.com/zane-ops/zane-ops",
discord: "https://discord.gg/DUdz2vrh9y"
},
components: {
Footer: "./src/components/Footer.astro",
Head: "./src/components/Head.astro"
},
sidebar: [
{
label: "Start here",
items: [
{
label: "Welcome to zaneops",
slug: "welcome"
},
{
label: "Installation and Setup",
slug: "installation"
},
{
label: "Upgrading ZaneOps",
slug: "upgrading-zaneops"
},
{
label: "Domain configuration for ZaneOps",
slug: "configuring-zaneops"
},
{
label: "Reset user password",
slug: "reset-password"
},
{
label: "Uninstalling ZaneOps",
slug: "uninstall"
},
{
label: "Stopping ZaneOps",
slug: "stopping-zaneops"
},
{
label: "Screenshots",
slug: "screenshots"
}
]
},
{
label: "Knowledge base",
autogenerate: { directory: "knowledge-base" }
},
{
label: "Changelog",
autogenerate: { directory: "changelog" }
},
{
label: "Tutorials",
autogenerate: { directory: "tutorials" }
},
{
label: "API Reference",
items: [
{
label: "Introduction",
slug: "api-reference/introduction"
},
{
label: "Authentication",
slug: "api-reference/authentication"
},
{
label: "OpenAPI reference ↗",
link: "/api-reference/openapi"
}
]
}
]
}),
tailwind({
applyBaseStyles: false
}),
react()
]
});