-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathastro.config.mjs
More file actions
172 lines (171 loc) · 4.6 KB
/
astro.config.mjs
File metadata and controls
172 lines (171 loc) · 4.6 KB
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
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
// @ts-check
import { defineConfig } from 'astro/config';
import starlight from '@astrojs/starlight';
import rehypeMermaid from 'rehype-mermaid';
// https://astro.build/config
export default defineConfig({
site: 'https://merge-queue.academy',
markdown: {
rehypePlugins: [
[
rehypeMermaid,
{
strategy: 'inline-svg',
mermaidConfig: {
theme: 'base',
fontFamily: 'IBM Plex Mono, SF Mono, monospace',
themeVariables: {
// Modern Editorial - warm dark theme
fontFamily: 'IBM Plex Mono, SF Mono, monospace',
// Backgrounds
background: '#13151a',
mainBkg: '#1a1d24',
// Text
primaryTextColor: '#f0f2f5',
secondaryTextColor: '#13151a',
tertiaryTextColor: '#13151a',
textColor: '#f0f2f5',
nodeTextColor: '#f0f2f5',
// Primary accent - Amber
primaryColor: '#f59e0b',
primaryBorderColor: '#f59e0b',
lineColor: '#5c6478',
// Secondary - Blue
secondaryColor: '#60a5fa',
secondaryBorderColor: '#60a5fa',
// Tertiary - Green
tertiaryColor: '#4ade80',
tertiaryBorderColor: '#4ade80',
// Nodes and clusters
nodeBorder: '#323846',
nodeBkg: '#1a1d24',
clusterBkg: '#21252e',
clusterBorder: '#323846',
titleColor: '#f0f2f5',
edgeLabelBackground: '#1a1d24',
// Sequence diagram
actorBkg: '#1a1d24',
actorBorder: '#323846',
actorTextColor: '#f0f2f5',
actorLineColor: '#323846',
signalColor: '#5c6478',
signalTextColor: '#f0f2f5',
labelBoxBkgColor: '#1a1d24',
labelBoxBorderColor: '#323846',
labelTextColor: '#f0f2f5',
loopTextColor: '#f0f2f5',
noteBkgColor: '#fbbf24',
noteTextColor: '#13151a',
noteBorderColor: '#f59e0b',
// State diagram
labelColor: '#f0f2f5',
// Gantt
gridColor: '#323846',
doneTaskBkgColor: '#4ade80',
doneTaskBorderColor: '#22c55e',
activeTaskBkgColor: '#f59e0b',
activeTaskBorderColor: '#d97706',
taskBkgColor: '#21252e',
taskBorderColor: '#323846',
taskTextColor: '#f0f2f5',
taskTextDarkColor: '#f0f2f5',
sectionBkgColor: '#1a1d24',
sectionBkgColor2: '#21252e',
todayLineColor: '#f87171',
// Git graph
git0: '#f59e0b',
git1: '#60a5fa',
git2: '#4ade80',
git3: '#c084fc',
git4: '#f87171',
gitBranchLabel0: '#f0f2f5',
gitBranchLabel1: '#f0f2f5',
gitBranchLabel2: '#13151a',
gitBranchLabel3: '#f0f2f5',
commitLabelColor: '#f0f2f5',
commitLabelBackground: '#1a1d24',
},
},
},
],
],
},
integrations: [
starlight({
title: 'Merge Queue Academy',
social: [],
components: {
Header: './src/components/Header.astro',
Footer: './src/components/Footer.astro',
},
customCss: ['./src/styles/custom-theme.css', './src/styles/mermaid.css'],
head: [
{
tag: 'script',
attrs: { src: '/scripts/mermaid-zoom.js', defer: true },
},
// Plausible analytics
{
tag: 'script',
attrs: { async: true, src: 'https://plausible.io/js/pa-gxRuP-9TwHyQiBZJszz3T.js' },
},
{
tag: 'script',
content: `window.plausible=window.plausible||function(){(plausible.q=plausible.q||[]).push(arguments)},plausible.init=plausible.init||function(i){plausible.o=i||{}};plausible.init()`,
},
// Open Graph defaults
{
tag: 'meta',
attrs: { property: 'og:site_name', content: 'Merge Queue Academy' },
},
{
tag: 'meta',
attrs: { property: 'og:type', content: 'website' },
},
{
tag: 'meta',
attrs: { property: 'og:image', content: 'https://merge-queue.academy/og-default.png' },
},
{
tag: 'meta',
attrs: { property: 'og:image:width', content: '1200' },
},
{
tag: 'meta',
attrs: { property: 'og:image:height', content: '630' },
},
// Twitter Card defaults
{
tag: 'meta',
attrs: { name: 'twitter:card', content: 'summary_large_image' },
},
{
tag: 'meta',
attrs: { name: 'twitter:image', content: 'https://merge-queue.academy/og-default.png' },
},
],
sidebar: [
{
label: 'Introduction',
autogenerate: { directory: 'introduction' },
},
{
label: 'Do You Need One?',
autogenerate: { directory: 'decision' },
},
{
label: 'Features',
autogenerate: { directory: 'features' },
},
{
label: 'Use Cases',
autogenerate: { directory: 'use-cases' },
},
{
label: 'Glossary',
link: '/glossary/',
},
],
}),
],
});