This repository has been archived by the owner on Nov 29, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathastro.config.mjs
90 lines (85 loc) · 2.45 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
// @ts-check
import { defineConfig } from "astro/config";
import mdx from "@astrojs/mdx";
import sitemap from "@astrojs/sitemap";
import tailwind from "@astrojs/tailwind";
import icon from "astro-icon";
import starlight from "@astrojs/starlight";
import { targetBlank } from "./src/utils/targetBlank";
// https://astro.build/config
export default defineConfig({
site: "https://kaosx.us",
markdown: {
rehypePlugins: [[targetBlank, { domain: "kaosx.us" }]],
},
integrations: [
sitemap(),
tailwind(),
icon(),
starlight({
title: "KaOS",
logo: {
light: "/src/assets/logo.svg",
dark: "/src/assets/logo.svg",
replacesTitle: false,
},
components: {
Head: "./src/components/HeadStarlight.astro",
},
favicon: "/favicon.ico",
social: {
github: "https://github.com/KaOSx",
email:
"https://groups.google.com/forum/?fromgroups#!forum/kaos-general",
matrix: "https://webchat.kde.org/#/room/#kaosx:matrix.org",
rss: "https://kaosx.us/rss.xml",
},
disable404Route: true,
customCss: ["./src/styles/starlight.css"],
editLink: {
baseUrl: "https://github.com/kaosx/website/edit/main/",
},
sidebar: [
{ label: "Forum", link: "https://forum.kaosx.us/" },
{ label: "Download", link: "/download/" },
{ label: "News", link: "/news/" },
{ label: "Packages", link: "/packages/" },
{
label: "Basics",
items: ["docs", "pacman", "bugs", "kernels"],
},
{
label: "ISO & Install",
collapsed: true,
autogenerate: { directory: "install" },
},
{
label: "Hardware Setup",
collapsed: true,
autogenerate: { directory: "hardware", collapsed: true },
},
{
label: "Security",
collapsed: true,
autogenerate: { directory: "security", collapsed: true },
},
{
label: "Packaging & KCP",
collapsed: true,
autogenerate: { directory: "packaging", collapsed: true },
},
{
label: "Troubleshooting",
collapsed: true,
autogenerate: { directory: "troubleshooting", collapsed: true },
},
{
label: "Applications",
collapsed: true,
autogenerate: { directory: "applications", collapsed: true },
},
],
}),
mdx(),
],
});