summaryrefslogtreecommitdiff
path: root/docs/astro.config.mjs
blob: 080105b2c6f83a53379f801880ab7e77bfe5745b (plain)
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
import { defineConfig } from "astro/config"
import starlight from "@astrojs/starlight"

const directories = [
    ["Getting Started", "/getting-started"],
    ["AGS", "/ags"],
    ["Libraries", "/libraries"],
]

export default defineConfig({
    site: "https://aylur.github.io",
    base: "astal",
    integrations: [
        starlight({
            title: "Astal",
            editLink: {
                baseUrl: "https://github.com/Aylur/Astal/tree/main/docs",
            },
            social: {
                github: "https://github.com/Aylur/Astal",
                discord: "https://discord.gg/CXQpHwDuhY",
            },
            customCss: ["./src/style.css"],
            favicon: "./favicon.ico",
            sidebar: directories.map(([label, directory]) => ({
                label,
                autogenerate: { directory },
            })),
        }),
    ],
})