-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathastro.config.mjs
97 lines (94 loc) · 1.98 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
import starlight from "@astrojs/starlight";
// @ts-check
import { defineConfig } from "astro/config";
import ecTwoSlash from "expressive-code-twoslash";
import topics from "starlight-sidebar-topics";
const site = "https://bomb.sh/docs/";
// https://astro.build/config
export default defineConfig({
site: "https://bomb.sh/",
base: "/docs",
outDir: "./dist/docs/",
integrations: [
starlight({
title: "Bombshell",
customCss: [
// Relative path to your @font-face CSS file.
"./src/fonts/font-face.css",
],
logo: {
dark: "./src/assets/dark.svg",
light: "./src/assets/light.svg",
},
components: {
Head: "./src/starlightOverrides/Head.astro",
},
expressiveCode: {
plugins: [ecTwoSlash()],
},
editLink: {
baseUrl: "https://github.com/bombshell-dev/docs/edit/main/",
},
head: [
{
tag: "link",
attrs: {
rel: "stylesheet",
href: "https://use.typekit.net/bst3mzh.css?v=4",
},
},
{
tag: "meta",
attrs: {
name: "og:image",
content: `${site}og-docs.png`,
},
},
{
tag: "meta",
attrs: {
name: "twitter:image",
content: `${site}og-docs.png`,
},
},
{
tag: "meta",
attrs: {
name: "twitter:site",
content: "bombshell",
},
},
{
tag: "meta",
attrs: {
name: "twitter:creator",
content: "bombshell",
},
},
],
social: {
discord: "https://bomb.sh/chat",
blueSky: "https://bomb.sh/on/bluesky",
github: "https://bomb.sh/on/github",
},
plugins: [
topics([
{
label: "Clack",
id: "clack",
icon: "seti:hex",
link: "/clack/basics/getting-started",
items: [
{ label: "Basics", autogenerate: { directory: "clack/basics" } },
{
label: "Packages",
autogenerate: { directory: "clack/packages" },
},
{ label: "Guides", autogenerate: { directory: "clack/guides" } },
],
}
]),
],
}),
],
});