-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathastro.config.mjs
56 lines (54 loc) · 1.46 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
import { defineConfig } from 'astro/config';
import starlight from '@astrojs/starlight';
import playformCompress from '@playform/compress';
import starlightImageZoom from 'starlight-image-zoom';
import tailwind from '@astrojs/tailwind';
import { sidebar } from './list_sidebar';
import starlightLinksValidator from 'starlight-links-validator';
import { getConfig } from './config';
const config = getConfig();
// https://astro.build/config
export default defineConfig({
site: config.site,
integrations: [
starlight({
title: config.title,
customCss: ['./src/tailwind.css'],
favicon: '/favicon.png',
logo: {
src: './src/assets/logo.png',
replacesTitle: false
},
editLink: {
baseUrl: config.github_edit_base
},
social: {
github: config.link_github,
discord: config.link_github
},
tableOfContents: {
minHeadingLevel: 2,
maxHeadingLevel: 3
},
credits: false,
plugins: [starlightImageZoom(), starlightLinksValidator()],
sidebar: sidebar,
customCss: ['./src/styles/tailwind.css'],
components: {
Head: './src/components/Head.astro',
Sidebar: './src/components/Sidebar.astro'
},
head: [
{
tag: 'meta',
attributes: {
name: 'theme-color',
content: '#8467b6'
}
}
]
}),
tailwind({ applyBaseStyles: false }),
playformCompress()
]
});