-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathastro.config.js
More file actions
86 lines (83 loc) · 3.07 KB
/
astro.config.js
File metadata and controls
86 lines (83 loc) · 3.07 KB
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
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";
const googleAnalyticsId = 'G-63RJYNDBL1';
// 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',
'/operator/guides/archive-node': '/operator/archive-node',
'/operator/guides/provisioner-node': '/operator/provisioner',
'/learn/guides/dusk-mainnet-onramp': '/learn/guides/legacy',
'/learn/guides/bep2-migration': '/learn/guides/legacy',
'/learn/guides/erc20-staking': '/learn/guides/legacy',
'/learn/deep-dive/assets-and-regulations/mica': '/learn/deep-dive/assets-and-regulations',
'/learn/deep-dive/assets-and-regulations/lifecycle': '/learn/deep-dive/assets-and-regulations',
'/learn/deep-dive/assets-and-regulations/dematerialization': '/learn/deep-dive/assets-and-regulations',
'/learn/wallet-terminology': '/learn/glossary',
'/developer/integrations/hashing-algorithms': '/developer/integrations/reference',
'/developer/integrations/addresses': '/developer/integrations/reference',
'/developer/smart-contract/hyperstaking_tech': '/learn/hyperstaking',
},
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()],
head: [
// Adding google analytics
{
tag: 'script',
attrs: {
async: true,
src: `https://www.googletagmanager.com/gtag/js?id=${googleAnalyticsId}`,
},
},
{
tag: 'script',
content: `
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', '${googleAnalyticsId}');
`,
},
],
}),
],
});