-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathastro.config.mjs
92 lines (90 loc) · 2.98 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
// @ts-check
import { defineConfig } from "astro/config";
import starlight from "@astrojs/starlight";
import config from "./config";
import tailwind from "@astrojs/tailwind";
// https://astro.build/config
export default defineConfig({
site: config.docsWebsite,
devToolbar: {
enabled: false,
},
integrations: [
starlight({
title: "Karr Docs",
logo: {
src: "./src/assets/logo_tmp.jpg",
},
social: {
github: config.github,
},
editLink: {
baseUrl: `${config.docsGithub}/edit/main/`,
},
pagination: false,
sidebar: [
{
label: "Glossary",
link: "/glossary",
},
{
label: "Getting Started",
items: [
{
label: "Setup a new instance",
link: "/getting-started/setup",
},
],
},
{
label: "Development",
collapsed: true,
items: [
{
label: "Getting Started",
link: "/development/getting-started",
},
{
label: "Project Structure",
link: "/development/project-structure",
},
{
label: "Configuration",
link: "/development/configuration",
},
{
label: "Web",
collapsed: true,
autogenerate: { directory: "development/web" },
},
{
label: "API",
collapsed: true,
autogenerate: { directory: "development/api" },
},
{
label: "Packages",
collapsed: false,
autogenerate: { directory: "development/packages" },
},
{
label: "API reference",
collapsed: true,
autogenerate: {
directory: "development/api-reference",
},
},
],
},
],
customCss: [
// Path to your Tailwind base styles:
"./src/tailwind.css",
],
}),
tailwind({
// Disable the default base styles:
applyBaseStyles: false,
}),
],
});