-
Notifications
You must be signed in to change notification settings - Fork 3
/
astro.config.js
52 lines (51 loc) · 1.73 KB
/
astro.config.js
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
import { defineConfig } from "astro/config";
import starlight from "@astrojs/starlight";
import remarkMath from 'remark-math';
import rehypeMathjax from 'rehype-mathjax';
import defaultSidebar from "./src/sidebars/defaultSidebar";
import starlightLinksValidator from "starlight-links-validator";
// https://astro.build/config
export default defineConfig({
site: "https://docs.dusk.network",
markdown: {
remarkPlugins: [remarkMath],
rehypePlugins: [rehypeMathjax],
},
redirects: {
'/itn/fast-sync': '/nocturne/fast-sync',
'/itn/node-running-guide': '/nocturne/node-running-guide',
'/itn/testnet-faucet': '/nocturne/testnet-faucet',
'/itn/upgrade-node': '/nocturne/upgrade-node',
},
integrations: [
starlight({
title: "DOCUMENTATION",
favicon: "/favicon.ico",
logo: {
light: "./src/assets/logo-light.svg",
dark: "./src/assets/logo-dark.svg",
},
components: {
PageFrame: "./src/components/PageFrame.astro",
Header: "./src/components/Header.astro",
ContentPanel: "./src/components/ContentPanel.astro",
Sidebar: './src/overrides/Sidebar.astro',
SiteTitle: './src/overrides/SiteTitle.astro',
},
social: {
github: "https://github.com/dusk-network",
"x.com": "https://x.com/duskfoundation",
discord: "https://discord.com/invite/dusk-official",
linkedin: "https://www.linkedin.com/company/dusknetwork/",
telegram: "https://t.me/DuskNetwork",
youtube: "https://www.youtube.com/c/DuskNetwork",
reddit: "https://www.reddit.com/r/dusknetwork",
},
customCss: ["./src/fonts/font-face.css", "./src/styles/custom.css"],
pagination: true,
tableOfContents: { minHeadingLevel: 2, maxHeadingLevel: 4 },
sidebar: defaultSidebar,
plugins: [starlightLinksValidator()],
}),
],
});