-
Notifications
You must be signed in to change notification settings - Fork 2
/
astro.config.mjs
96 lines (94 loc) · 2.52 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
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: {
"/resources/whitepaper": "/resources/audit-whitepaper#Papers",
"/cross-cats/": "/cross-cats/cross-cats/",
"/cross-cats/solver/": "/cross-cats/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/catalystdao/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/catalystdao",
discord: "https://discord.gg/nvvN3XbaYG",
},
customCss: ["./src/assets/landing.css", "./src/assets/math-fix.css"],
favicon: "/favicon.ico",
sidebar: [
{
label: "Overview",
link: "/",
},
{
label: "Introduction",
autogenerate: {
directory: "introduction",
},
},
{
label: "V1: Cross-Chain AMM",
autogenerate: {
directory: "protocol",
},
},
{
label: "CrossCats: Cross-Chain Intents",
badge: "Closed Beta",
autogenerate: {
directory: "cross-cats",
},
},
{
label: "Generalised Incentives",
autogenerate: {
directory: "generalised-incentives",
},
},
{
label: "Relayer",
autogenerate: {
directory: "relayer",
},
},
{
label: "Underwriter",
autogenerate: {
directory: "underwriter",
},
},
{
label: "Resources",
autogenerate: {
directory: "resources",
},
},
],
}),
d2({
skipGeneration: !!process.env["CF_PAGES"] || !process.env["D2"],
layout: "tala",
}),
svelte(),
],
});