-
Notifications
You must be signed in to change notification settings - Fork 13
/
astro.config.mjs
99 lines (97 loc) · 2.44 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
import { defineConfig } from "astro/config";
import rehypeSlug from "rehype-slug";
import { rehypeAutolink } from "./plugins/rehype-autolink";
import starlight from "@astrojs/starlight";
import tailwind from "@astrojs/tailwind";
import starlightLinksValidator from "starlight-links-validator";
const site = "https://handbook.shorebird.dev/";
// https://astro.build/config
export default defineConfig({
site,
integrations: [
starlight({
title: "Shorebird Handbook",
tagline: "How we run our company and build our products",
logo: {
light: "./src/assets/shorebird-light.svg",
dark: "./src/assets/shorebird-dark.svg",
replacesTitle: true,
},
social: {
github: "https://github.com/shorebirdtech/handbook",
discord: "https://discord.gg/shorebird",
},
editLink: {
baseUrl: "https://github.com/shorebirdtech/handbook/edit/main/",
},
favicon: "favicon.svg",
head: [
{
tag: "meta",
attrs: { property: "og:image", content: site + "open-graph.png?v=1" },
},
{
tag: "meta",
attrs: {
property: "twitter:image",
content: site + "open-graph.png?v=1",
},
},
],
components: {
MarkdownContent: "./src/components/starlight/MarkdownContent.astro",
},
customCss: ["./src/tailwind.css"],
expressiveCode: {
themes: ["dark-plus", "github-light"],
},
sidebar: [
{
label: "Overview",
link: "/",
},
{
label: "Company",
link: "/company",
},
{
label: "Benefits",
link: "/benefits",
},
{
label: "Onboarding",
link: "/onboarding",
},
{
label: "Engineering",
link: "/engineering",
},
{
label: "Community",
link: "/community",
},
{
label: "Security",
link: "/security",
},
{
label: "CEO",
link: "/ceo",
},
],
plugins: [
starlightLinksValidator({
errorOnFallbackPages: false,
errorOnInconsistentLocale: true,
}),
],
}),
tailwind({ applyBaseStyles: false }),
],
markdown: {
rehypePlugins: [rehypeSlug, ...rehypeAutolink()],
},
redirects: {
// Redirects to preserve legacy URLs.
},
});