-
Notifications
You must be signed in to change notification settings - Fork 6
/
astro.config.ts
89 lines (87 loc) · 1.86 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
import mdx from "@astrojs/mdx";
import sitemap from "@astrojs/sitemap";
import tailwind from "@astrojs/tailwind";
import metaTags from "astro-meta-tags";
import icon from "astro-icon";
import { defineConfig } from "astro/config";
import starlight from "@astrojs/starlight";
const site = "https://teaclient.net";
// https://astro.build/config
export default defineConfig({
site: site,
server: {
port: 7053,
},
integrations: [
metaTags(),
sitemap({
filter: (page) =>
page !== `${import.meta.env.SITE}/staffhandbook-13-4-24`,
customPages: ["docs.teaclient.net"],
}),
tailwind({
nesting: true,
applyBaseStyles: true,
}),
starlight({
title: "TeaClient",
disable404Route: true,
tableOfContents: true,
lastUpdated: true,
favicon: "/Favicon.png",
logo: {
src: "./public/icon.webp",
},
social: {
discord: site + "/discord",
github: site + "/github",
},
customCss: ["./src/styles/starlight.css"],
sidebar: [
{
label: "Home",
link: "wiki",
},
{
label: "Players",
autogenerate: {
directory: "wiki/players",
collapsed: false,
},
},
{
label: "Developers",
autogenerate: {
directory: "wiki/developers",
collapsed: true,
},
},
],
editLink: {
baseUrl: "https://github.com/teaclientmc/website",
},
}),
mdx(),
icon(),
],
redirects: {
"/discord": "https://discord.gg/ejFTe4Hfnc",
"/github": "https://github.com/TeaClientMC",
"/roadmap": "https://github.com/orgs/TeaClientMC/projects/3",
"/dropps": "https://discord.gg/qFarXHT32J",
"/klaas": "https://klaas.tiiny.site/",
"/readme": "https://github.com/TeaClientMC/.github",
"/configSchema.json": "https://api.teaclient.net/config-schema",
},
vite: {
resolve: {
alias: {
"@": "src/",
},
},
build: {
minify: true,
sourcemap: false,
},
},
});