forked from dotkom/wiki
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathastro.config.mjs
More file actions
67 lines (63 loc) · 1.66 KB
/
Copy pathastro.config.mjs
File metadata and controls
67 lines (63 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
import { defineConfig } from "astro/config";
import starlight from "@astrojs/starlight";
import fs from "node:fs";
const roots = fs
.readdirSync("src/content/docs")
.filter((v) => [".DS_Store", "index.md"].indexOf(v) === -1);
// https://astro.build/config
export default defineConfig({
site: "https://wiki.online.ntnu.no",
integrations: [
starlight({
title: "Online Wiki",
favicon: "/images/online_bla_o.svg",
defaultLocale: "root",
locales: {
root: {
label: "Norsk",
lang: "no",
},
en: {
label: "English",
},
},
logo: {
light: "./src/assets/img/online_bla_o.svg",
dark: "./src/assets/img/online_hvit_o.svg",
},
lastUpdated: true,
customCss: ["./src/styles/custom.css"],
editLink: { baseUrl: "https://github.com/dotkom/wiki/edit/main/" },
social: {
facebook: "https://facebook.com/LinjeforeningenOnline",
instagram: "https://www.instagram.com/online_ntnu/",
slack: "https://onlinentnu.slack.com/",
github: "https://github.com/dotkom/wiki",
discord: "https://discordapp.com/invite/2XB9egU",
},
head: [
{
tag: "script",
attrs: {
defer: true,
"data-domain": "wiki.online.ntnu.no",
src: "https://plausible.io/js/script.outbound-links.file-downloads.js",
}
}
],
sidebar: [
{
label: "Online",
link: "/",
},
...roots.map((root) => {
return {
label: root,
collapsed: true,
autogenerate: { directory: root },
};
}),
],
}),
],
});