This repository was archived by the owner on Dec 19, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathastro.config.mjs
More file actions
91 lines (90 loc) · 2.1 KB
/
astro.config.mjs
File metadata and controls
91 lines (90 loc) · 2.1 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
import starlight from "@astrojs/starlight";
import tailwindcss from "@tailwindcss/vite";
import { defineConfig } from "astro/config";
import starlightBlog from "starlight-blog";
import starlightCoolerCredit from "starlight-cooler-credit";
import { generateSidebar } from "./sidebar.config.mjs";
export default defineConfig({
integrations: [
starlight({
components: {
Head: "~/components/Head.astro",
PageFrame: "~/components/CustomPageFrame.astro",
ThemeSelect: "~/components/overrides/ThemeSelect.astro",
},
customCss: ["~/assets/global.css", "~/fonts/fonts.css"],
defaultLocale: "root",
disable404Route: true,
editLink: {
baseUrl: "https://github.com/BrowserWorks/website/edit/main-ssg",
},
favicon: "/favicon.ico",
locales: {
root: {
label: "English (US)",
lang: "en",
},
},
logo: {
dark: "~/assets/waterfox-logo-dark.svg",
light: "~/assets/waterfox-logo.svg",
replacesTitle: true,
},
pagination: false,
plugins: [
starlightBlog({
authors: {
alex: {
name: "Alex Kontos",
picture: "/alex.jpg",
title: "Founder",
url: "https://www.linkedin.com/in/alex-kontos",
},
},
}),
starlightCoolerCredit({
credit: {
description: {
en: "Like what we're doing? →",
},
href: "https://buymeacoffee.com/waterfox",
title: {
en: "Donate",
},
},
customImage: "./src/assets/heart.png",
customImageAlt: "heart",
}),
],
sidebar: await generateSidebar(),
social: [
{
icon: "blueSky",
label: "BlueSky",
href: "https://bsky.app/profile/waterfox.net",
},
{
icon: "github",
label: "GitHub",
href: "https://github.com/BrowserWorks/Waterfox",
},
{
icon: "mastodon",
label: "Mastodon",
href: "https://mastodon.social/@Waterfox",
},
{
icon: "reddit",
label: "Reddit",
href: "https://www.reddit.com/r/waterfox",
},
],
title: "Waterfox",
}),
],
site: "https://www.waterfox.net",
trailingSlash: "always",
vite: {
plugins: [tailwindcss()],
},
});