forked from cpvalente/ontime-docs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathastro.config.mjs
107 lines (105 loc) · 2.84 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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
import { defineConfig } from 'astro/config';
import starlight from '@astrojs/starlight';
import starlightLinksValidator from 'starlight-links-validator'
import vercelStatic from "@astrojs/vercel/static";
// https://astro.build/config
export default defineConfig({
output: "static",
adapter: vercelStatic(),
site: "https://docs.getontime.no",
integrations: [
starlight({
plugins: [starlightLinksValidator()],
title: "Ontime documentation",
favicon: "./favicon.ico",
logo: {
src: "./src/assets/images/icon.webp",
replacesTitle: true,
},
customCss: ["./src/styles/custom.css"],
social: {
github: "https://github.com/cpvalente/ontime",
},
editLink: {
baseUrl: "https://github.com/cpvalente/ontime-docs/edit/main",
},
sidebar: [
{
label: "Ontime",
autogenerate: { directory: "ontime" },
},
{
label: "Interface",
items: [
{
label: "Interface overview",
link: "/interface/",
},
{
label: "Production views",
autogenerate: { directory: "interface/production" },
},
{
label: "Backstage views",
autogenerate: { directory: "interface/backstage" },
},
{
label: "Public views",
autogenerate: { directory: "interface/public" },
},
],
},
{
label: "Features",
autogenerate: { directory: "features" },
},
{
label: "Feedback and control",
items: [
{
label: "API overview",
link: "/api/",
},
{
label: "Data",
autogenerate: { directory: "api/data" },
},
{
label: "Integrations",
autogenerate: { directory: "api/integrations" },
},
{
label: "Protocol API",
autogenerate: { directory: "api/protocols" },
},
],
},
{
label: "Quick tips",
autogenerate: { directory: "quick-tips" },
},
{
label: "Additional notes",
autogenerate: { directory: "additional-notes" },
},
{
label: "External links",
items: [
{
label: "Ontime website",
link: "https://www.getontime.no",
badge: "Link",
attrs: { target: "_blank" },
},
{
label: "Github Repo",
link: "https://www.github.com/cpvalente/ontime",
badge: "Link",
attrs: { target: "_blank" },
},
],
},
],
}),
],
});