Repository navigation
Expand file tree
/
Copy pathastro.config.mts
More file actions
71 lines (69 loc) · 1.66 KB
/
Copy pathastro.config.mts
File metadata and controls
71 lines (69 loc) · 1.66 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
import { defineConfig } from "astro/config";
import starlight from "@astrojs/starlight";
import starlightLinksValidator from "starlight-links-validator";
import { rehypeHeadingIds } from "@astrojs/markdown-remark";
import rehypeAutolinkHeadings from "rehype-autolink-headings";
// https://astro.build/config
export default defineConfig({
site: "https://ddbkit.pages.dev",
integrations: [
starlight({
plugins: [starlightLinksValidator()],
title: 'DDBKit',
favicon: "./src/assets/ddbkit-icon.png",
lastUpdated: true,
pagination: true,
logo: {
src: "./src/assets/ddbkit-icon.webp"
},
social: [
{
icon: 'github',
label: 'GitHub',
href: 'https://github.com/DDBKit/DDBKit'
},
{
icon: 'discord',
label: 'Discord',
href: 'https://discord.gg/CkB2QzVsCz'
},
],
editLink: {
baseUrl: "https://github.com/DDBKit/DDBKit-docs/tree/master/"
},
customCss: [
'./src/styles/custom.css',
'./src/styles/headingLinks.css',
'./src/styles/paginationLinks.css',
'./src/styles/terminals.css',
'./src/styles/landing.css',
'./src/styles/discord.css',
],
expressiveCode: {
styleOverrides: { borderRadius: '0.5rem' },
themes: ['vesper']
},
sidebar: [
{
label: 'Start Here',
autogenerate: { directory: 'start-here' },
},
{
label: 'Extras',
autogenerate: { directory: 'extras' },
}
],
}),
],
markdown: {
rehypePlugins: [
rehypeHeadingIds,
[
rehypeAutolinkHeadings,
{
behavior: "wrap"
}
]
]
}
});