-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathastro.config.mjs
More file actions
54 lines (53 loc) · 1.74 KB
/
astro.config.mjs
File metadata and controls
54 lines (53 loc) · 1.74 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
import { defineConfig } from "astro/config";
import starlight from "@astrojs/starlight";
import starlightImageZoom from "starlight-image-zoom"
import icon from "astro-icon";
import ThemeObsidian from "./plugins/theme-obsidian"
import expressiveCode from "astro-expressive-code";
export default defineConfig({
site: "https://docs.triadwars.win",
base: "",
build: {
assets: "_dep"
},
integrations: [
expressiveCode(),
icon(),
starlight({
plugins: [ starlightImageZoom(), ThemeObsidian() ],
favicon: "/favicon.png",
title: "Triad Wars Docs",
tableOfContents: { minHeadingLevel: 2, maxHeadingLevel: 4 },
lastUpdated: true,
pagination: true,
customCss: [
"@fontsource/inter/400.css",
"@fontsource/inter/600.css",
"./src/styles/global.css"
],
logo: {
src: "./src/assets/logo.png",
replacesTitle: true,
},
head: [
{
tag: "meta",
attrs: { property: "og:image", content: "https://raw.githubusercontent.com/TriadWars/Docs/refs/heads/main/public/logobg.png" },
}
],
social: {
github: "https://github.com/TriadWars/Docs",
},
editLink: {
baseUrl: "https://github.com/TriadWars/Docs/edit/main/",
},
components: {
},
sidebar: [
{ label: "[connection] API", collapsed: true, autogenerate: { directory: "api" } },
{ label: "[game] Game", collapsed: true, autogenerate: { directory: "game" } },
{ label: "[server] Server", collapsed: true, autogenerate: { directory: "server" } }
]
})
],
});