-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathastro.config.mjs
84 lines (82 loc) · 2.19 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
import starlight from "@astrojs/starlight";
import d2 from "astro-d2";
import { defineConfig } from "astro/config";
import rehypeMathjax from "rehype-mathjax";
import remarkMath from "remark-math";
import starlightLinksValidator from "starlight-links-validator";
import svelte from "@astrojs/svelte";
// https://astro.build/config
export default defineConfig({
redirects: {
"/cross-cats/": "/intent/intent/",
"/cross-cats/solver/": "/intent/becoming-a-solver/introduction/"
},
site: `${process.env["CF_PAGES_URL"] ?? "https://docs.catalyst.exchange"}`,
markdown: {
remarkPlugins: [remarkMath],
rehypePlugins: [rehypeMathjax],
},
integrations: [
starlight({
plugins: [starlightLinksValidator()],
title: "Catalyst Documentation",
editLink: {
baseUrl: `https://github.com/catalystsystem/catalyst-documentation/edit/${process.env["CF_PAGES_BRANCH"]}`,
},
logo: {
light: "/src/assets/logo_dark.svg",
dark: "/src/assets/logo_light.svg",
replacesTitle: true,
},
social: {
github: "https://github.com/catalystsystem",
},
customCss: ["./src/assets/landing.css", "./src/assets/math-fix.css"],
favicon: "/favicon.ico",
sidebar: [
{
label: "Catalyst Intent System",
link: "/",
},
{
label: "System Architecture",
autogenerate: {
directory: "1-system-architecture",
},
},
{
label: "For Developers",
autogenerate: {
directory: "2-devs",
},
},
{
label: "For Solvers",
autogenerate: {
directory: "3-solver",
},
},
{
label: "Knowledge Database",
collapsed: true,
autogenerate: {
directory: "7-knowledge",
},
},
{
label: "CatalystAMM",
collapsed: true,
badge: "Deprecated",
autogenerate: {
directory: "9-amm",
},
},
],
}),
d2({
skipGeneration: !!process.env["CF_PAGES"] || !process.env["D2"],
layout: "elk",
}),
svelte(),
],
});