-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathastro.config.mjs
52 lines (51 loc) · 1.31 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
import { defineConfig } from 'astro/config';
import starlight from '@astrojs/starlight';
import tailwind from '@astrojs/tailwind';
import rehypeMermaid from 'rehype-mermaid';
import { rehypeMermaidOptions } from './src/plugins/rehype-mermaid';
// https://astro.build/config
export default defineConfig({
base: process.env.BASE_URL || '/dsm-freshman-guide/',
markdown: {
rehypePlugins: [[rehypeMermaid, rehypeMermaidOptions]],
},
integrations: [
starlight({
title: 'DSM 신입생 가이드',
favicon: './src/assets/favicon.ico',
sidebar: [
{
label: '시작하기',
autogenerate: { directory: 'start' },
},
{
label: 'Backend',
collapsed: true,
autogenerate: { directory: 'backend', collapsed: false },
},
{
label: 'Frontend',
collapsed: true,
autogenerate: { directory: 'frontend', collapsed: true },
},
{
label: 'iOS',
collapsed: true,
autogenerate: { directory: 'ios', collapsed: true },
},
{
label: 'Android',
collapsed: true,
autogenerate: { directory: 'android', collapsed: true },
},
// {
// label: 'DevOps',
// collapsed: true,
// autogenerate: { directory: 'devops', collapsed: true },
// },
],
customCss: ['./src/tailwind.css'],
}),
tailwind({ applyBaseStyles: true }),
]
});