-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathastro.config.mjs
55 lines (54 loc) · 1.33 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
import { defineConfig } from 'astro/config';
import starlight from '@astrojs/starlight';
import sitemap from '@astrojs/sitemap';
import { codeInspectorPlugin } from 'code-inspector-plugin';
// https://astro.build/config 'https://sln-spellbook.com',
export default defineConfig({
site: 'https://OskarHulter.github.io',
base: '/sln-spellbook',
vite: {
plugins: [codeInspectorPlugin({ bundler: 'vite' })],
},
integrations: [
starlight({
title: 'SLN spellbook',
social: {
github: 'https://github.com/OskarHulter/sln-spellbook',
},
sidebar: [
{
label: 'Guides',
autogenerate: { directory: '/guides' },
/*
items: [
// Each item here is one entry in the navigation menu.
{ label: 'Bun Guide', link: '/guides/bun/' },
{ label: 'Httpie Guide', link: '/guides/httpie/' },
],
*/
},
{
label: 'Introductions',
autogenerate: { directory: '/introductions' },
},
{
label: 'Reference',
autogenerate: { directory: '/reference' },
},
{
label: 'Partials',
autogenerate: { directory: '/partials' },
},
{
label: 'Snippets',
autogenerate: { directory: '/snippets' },
},
{
label: 'Scripts',
autogenerate: { directory: '/scripts' },
},
],
}),
sitemap()
],
});