-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathastro.config.mjs
More file actions
147 lines (145 loc) · 3.98 KB
/
astro.config.mjs
File metadata and controls
147 lines (145 loc) · 3.98 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
// @ts-check
import { defineConfig } from 'astro/config';
import starlight from '@astrojs/starlight';
import starlightMermaid from '@pasqal-io/starlight-client-mermaid';
import { fileURLToPath } from 'node:url';
import tailwindcss from '@tailwindcss/vite';
// https://astro.build/config
export default defineConfig({
site: 'https://mapconductor.com',
outDir: 'dist',
vite: {
plugins: [tailwindcss()],
resolve: {
// Match Starlight docs behavior so `~/` points to `src/`
alias: {
'~': fileURLToPath(new URL('./src', import.meta.url)),
},
},
},
integrations: [
starlight({
title: 'MapConductor',
description: 'A unified map SDK for mobile developers',
defaultLocale: 'root',
locales: {
root: {
label: 'English',
lang: 'en',
},
ja: {
label: '日本語',
lang: 'ja',
},
'es-419': {
label: 'Español (Latinoamérica)',
lang: 'es-419',
},
},
customCss: ['./src/styles/global.css', './src/styles/custom.css'],
components: {
Head: './src/components/overrides/Head.astro',
},
sidebar: [
{
label: 'What is MapConductor',
translations: {
ja: 'MapConductorについて',
'es-419': 'Qué es MapConductor',
},
items: [
{
slug: 'overview',
label: 'Overview',
translations: {
ja: '概要',
'es-419': 'Resumen',
},
},
{
label: 'Architecture',
slug: 'architecture',
translations: {
ja: 'アーキテクチャ',
'es-419': 'Arquitectura',
},
},
{
label: 'Roadmap',
slug: 'roadmap',
translations: {
ja: 'ロードマップ',
'es-419': 'Hoja de ruta',
},
},
{
label: 'Team',
slug: 'team',
translations: {
ja: 'チーム',
'es-419': 'Equipo',
},
},
{
label: 'For Developers',
slug: 'developers',
translations: {
ja: '開発者向け',
'es-419': 'Para desarrolladores',
},
},
{
label: 'Why MapConductor Matters',
slug: 'why-mapconductor',
translations: {
ja: 'MapConductorの必要性',
'es-419': 'Por qué importa MapConductor',
},
},
],
},
// {
// label: 'Docs',
// items: [
// { label: '', slug: 'overview' },
// { label: 'Architecture', slug: 'architecture' },
// { label: 'Roadmap', slug: 'roadmap' },
// { label: 'Team', slug: 'team' },
// { label: 'For Developers', slug: 'developers' },
// ],
// },
],
plugins: [
starlightMermaid({
mermaidConfig: {
theme: 'neutral',
themeVariables: {
fontSize: '16px',
fontFamily:
'-apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif',
},
flowchart: {
htmlLabels: true,
curve: 'basis',
padding: 10,
},
sequence: {
htmlLabels: true,
diagramMarginX: 10,
diagramMarginY: 10,
boxMargin: 10,
messageMargin: 50,
actorFontSize: 16,
noteFontSize: 16,
messageFontSize: 16,
},
gantt: {
htmlLabels: true,
fontSize: 16,
},
},
}),
],
}),
],
});