-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathastro.config.mjs
More file actions
83 lines (81 loc) · 2.25 KB
/
astro.config.mjs
File metadata and controls
83 lines (81 loc) · 2.25 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
import { defineConfig } from 'astro/config';
import starlight from '@astrojs/starlight';
import tailwindcss from '@tailwindcss/vite';
const sidebar = [
{
label: 'Prologue',
items: [
{ label: 'Overview', slug: 'index' },
{ label: 'Why miniCLI', slug: 'why-minicli' }
]
},
{
label: 'Getting Started',
items: [
{ label: 'Installation', slug: 'getting-started' },
{ label: 'Your First Command', slug: 'first-command' },
]
},
{
label: 'Architecture Concepts',
items: [
{ label: 'Concepts Overview', slug: 'architecture-concepts' },
{ label: 'Command Model', slug: 'command-model' },
{ label: 'Arguments and Flags', slug: 'arguments-and-flags' },
{ label: 'Middleware', slug: 'middleware' },
{ label: 'Services and Config', slug: 'services-and-config' }
]
},
{
label: 'Digging Deeper',
items: [
{ label: 'Deeper Topics', slug: 'digging-deeper' },
{ label: 'Components and Output', slug: 'components-and-output' },
{ label: 'Built-in Commands', slug: 'built-in-commands' }
]
},
{
label: 'Reference',
items: [
{ label: 'Reference Overview', slug: 'reference' },
{ label: 'Attributes', slug: 'reference/attributes' },
{ label: 'Exit Codes', slug: 'reference/exit-codes' },
{ label: 'Global Flags', slug: 'reference/global-flags' },
{ label: 'Input Syntax', slug: 'reference/input-syntax' }
]
},
{
label: 'Releases',
items: [
{ label: 'Versioning Strategy', slug: 'versioning' },
{ label: '5.x Snapshot', slug: 'v5' }
]
}
];
export default defineConfig({
site: 'https://docs.minicli.dev',
vite: {
plugins: [tailwindcss()]
},
integrations: [
starlight({
title: 'miniCLI',
description: 'Documentation for miniCLI 5.x and future releases.',
customCss: ['./src/styles/tailwind.css', './src/styles/theme.css'],
expressiveCode: {
themes: ['github-light'],
useStarlightUiThemeColors: false,
styleOverrides: {
borderWidth: '0px',
frames: {
frameBoxShadowCssValue: 'none'
}
}
},
components: {
Header: './src/components/StarlightHeader.astro'
},
sidebar
})
]
});