-
Notifications
You must be signed in to change notification settings - Fork 0
/
astro.config.mjs
143 lines (142 loc) · 3.68 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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
import mdx from "@astrojs/mdx";
import react from "@astrojs/react";
import starlight from "@astrojs/starlight";
import tailwind from "@astrojs/tailwind";
import { defineConfig } from "astro/config";
// https://astro.build/config
export default defineConfig({
site: "https://engineering.verygood.ventures",
integrations: [
starlight({
favicon: "./public/favicon.png",
title: "VGV Engineering",
head: [
{
// Fix theme flickering on page load.
// See https://scottwillsey.com/theme-flicker/
tag: "script",
attrs: {
type: "text/javascript",
},
content: `
theme = localStorage.getItem("theme") || "light";
document.documentElement.dataset.theme = theme;
`,
},
],
customCss: [
// Add tailwind base styles:
"./src/styles/tailwind.css",
"./src/styles/vgv_brand.css",
"./src/styles/theme.css",
"@fontsource/poppins/100.css",
"@fontsource/poppins/200.css",
"@fontsource/poppins/300.css",
"@fontsource/poppins/400.css",
"@fontsource/poppins/500.css",
"@fontsource/poppins/600.css",
"@fontsource/poppins/700.css",
"@fontsource/poppins/800.css",
"@fontsource/poppins/900.css",
],
editLink: {
baseUrl:
"https://github.com/vgventures/very_good_engineering/edit/main/",
},
logo: {
light: "./src/assets/logos/logo_light.svg",
dark: "./src/assets/logos/logo_dark.svg",
},
social: {
github: "https://github.com/vgventures/very_good_engineering",
},
sidebar: [
{
label: "🦄 Very Good Engineering",
autogenerate: {
directory: "engineering",
},
},
{
label: "🏛️ Architecture",
autogenerate: {
directory: "architecture",
},
},
{
label: "🦾 Automation",
autogenerate: {
directory: "automation",
},
},
{
label: "✨ Code Style",
autogenerate: {
directory: "code_style",
},
},
{
label: "❌ Error Handling",
autogenerate: {
directory: "error_handling",
},
},
{
label: "📺 Examples",
badge: "NEW",
autogenerate: {
directory: "examples",
},
},
{
label: "🌐 Internationalization",
autogenerate: {
directory: "internationalization",
},
},
{
label: "🗺️ Navigation",
autogenerate: {
directory: "navigation",
},
},
{
label: "🪄 State Management",
autogenerate: {
directory: "state_management",
},
},
{
label: "🧪 Testing",
autogenerate: {
directory: "testing",
},
},
{
label: "🎨 Theming",
autogenerate: {
directory: "theming",
},
},
{
label: "🧩 Widgets",
autogenerate: {
directory: "widgets",
},
},
],
components: {
TwoColumnContent:
"./src/components/vgv_two_column_content/vgv-two-column-content.astro",
Header: "./src/components/vgv_nav/vgv-nav.astro",
PageFrame: "./src/components/vgv_page/vgv-page-frame.astro",
},
}),
react(),
mdx(),
tailwind({
// Disable the default base styles:
applyBaseStyles: false,
}),
],
});