-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathastro.config.ts
107 lines (105 loc) · 2.23 KB
/
astro.config.ts
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 react from "@astrojs/react";
import starlight from "@astrojs/starlight";
import tailwind from "@astrojs/tailwind";
import { defineConfig } from "astro/config";
import starlightBlog from "starlight-blog";
// https://astro.build/config
export default defineConfig({
site: "https://minecraft-essentials.github.io/",
redirects: {
"/docsrs": "https://docs.rs/minecraft-essentials/",
"/cratesio": "https://crates.io/minecraft-essentials/",
"/github": "https://github.com/minecraft-essentials",
},
integrations: [
react(),
tailwind({
applyBaseStyles: false,
}),
starlight({
title: "Minecraft-Essentials",
plugins: [
starlightBlog({
title: "Minecraft-Essentials Blog",
authors: {
eveeifyeve: {
name: "Eveeifyeve",
title: "Creator of Minecraft-Essentials",
picture: "https://github.com/eveeifyeve.png",
url: "https://eveeifyeve.pages.dev",
},
},
}),
],
customCss: ["./src/styles/tailwind.css"],
social: {
github: "https://github.com/minecraft-essentials/minecraft-essentials",
},
defaultLocale: "root",
locales: {
root: {
label: "English",
lang: "en",
},
},
sidebar: [
{
label: "Introduction",
link: "/infomation/intro/",
},
{
label: "JS Documentation",
badge: {
text: "WIP",
variant: "caution",
},
items: [
{
label: "Installation",
link: "/js/install/",
},
],
},
{
label: "WASM",
badge: {
text: "WIP",
variant: "danger",
},
items: [
{
label: "Getting Started",
link: "/wasm/getting-started/",
},
],
},
{
label: "Rust Documentation",
link: "https://docs.rs/minecraft-essentials/",
},
{
label: "Projects that use minecraft-essentials",
items: [
{
label: "Decent-Client Launcher",
link: "https://github.com/decent-client/launcher",
},
],
},
],
components: {
SiteTitle: "./src/components/starlight/SiteTitle.astro",
ThemeSelect: "./src/components/starlight/ThemeSelect.astro",
},
}),
],
compressHTML: true,
cacheDir: "./src",
vite: {
resolve: {
alias: {
"@src": "/src",
},
},
},
});