-
Notifications
You must be signed in to change notification settings - Fork 0
/
astro.config.mjs
38 lines (37 loc) · 1.05 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
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';
// https://astro.build/config
export default defineConfig({
site: import.meta.env.VITE_SITE_URL,
integrations: [
starlight({
title: import.meta.env.VITE_TITLE,
customCss: ['./src/tailwind.css'],
favicon: '/favicon.png',
logo: {
src: './src/assets/logo.png',
replacesTitle: false
},
editLink: {
baseUrl: import.meta.env.VITE_GITHUB_EDIT_LINK
},
social: {
github: import.meta.env.VITE_GITHUB_URL,
discord: import.meta.env.VITE_DISCORD_INVITE
},
tableOfContents: {
minHeadingLevel: 2,
maxHeadingLevel: 3
},
credits: false,
plugins: [starlightImageZoom()],
sidebar: sidebar
}),
tailwind({ applyBaseStyles: false }),
playformCompress()
]
});