-
-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathastro.config.mjs
More file actions
131 lines (129 loc) · 2.87 KB
/
Copy pathastro.config.mjs
File metadata and controls
131 lines (129 loc) · 2.87 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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
// @ts-check
import { defineConfig } from "astro/config";
import starlight from "@astrojs/starlight";
import ecTwoSlash from "expressive-code-twoslash";
import topics from "starlight-sidebar-topics";
import starlightMarkdown from "starlight-markdown";
const site = "https://bomb.sh/docs/";
// https://astro.build/config
export default defineConfig({
site: "https://bomb.sh/",
base: "/docs",
outDir: "./dist/docs/",
server: {
headers: {
'Cross-Origin-Embedder-Policy': 'require-corp',
'Cross-Origin-Opener-Policy': 'same-origin',
'Cross-Origin-Resource-Policy': 'cross-origin',
'Referrer-Policy': 'strict-origin-when-cross-origin'
}
},
integrations: [
starlight({
title: "Bombshell",
logo: {
dark: "./src/assets/dark.svg",
light: "./src/assets/light.svg",
},
customCss: [
'./src/styles/tint.css'
],
components: {
Head: "./src/starlightOverrides/Head.astro",
},
expressiveCode: {
themes: ['github-dark-high-contrast', 'github-light-high-contrast'],
styleOverrides: {
twoSlash: {
cursorColor: 'rgba(255 0 210)'
}
},
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=5",
},
},
{
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: [
{ icon: 'discord', label: 'Discord', href: 'https://bomb.sh/chat' },
{ icon: 'blueSky', label: 'Bluesky', href: 'https://bomb.sh/on/bluesky' },
{ icon: 'github', label: 'GitHub', href: 'https://bomb.sh/on/github' },
],
plugins: [
starlightMarkdown(),
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" } },
],
},
{
label: "Args",
id: "args",
icon: "seti:shell",
link: "/args/getting-started",
items: [
{ label: "Basics", link: "/args/getting-started" },
{
label: "API",
link: "args/api",
},
],
},
{
label: "Tab",
id: "tab",
icon: "right-caret",
link: "/tab/",
items: [],
},
]),
],
}),
],
});