-
Notifications
You must be signed in to change notification settings - Fork 45
/
docusaurus.config.js
125 lines (117 loc) · 3.45 KB
/
docusaurus.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
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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
const lightCodeTheme = require("prism-react-renderer/themes/okaidia");
const darkCodeTheme = require("prism-react-renderer/themes/okaidia");
const CardLink = require("./src/remark/CardLink");
/** @type {import('@docusaurus/types').DocusaurusConfig} */
module.exports = {
title: "Connext Documentation",
tagline: "Fast, trust-minimized communication between blockchains.",
url: "https://docs.connext.network",
baseUrl: "/",
onBrokenLinks: "warn",
onBrokenMarkdownLinks: "warn",
favicon: "img/logomark.ico",
organizationName: "connext", // Usually your GitHub org/user name.
projectName: "connext", // Usually your repo name.
customFields: {
description: "Build your next xApp (cross-chain dapp) using Connext.",
},
themeConfig: {
colorMode: {
defaultMode: 'dark',
disableSwitch: false,
respectPrefersColorScheme: true,
},
algolia: {
// The application ID provided by Algolia
appId: "Z3QNOPOJN1",
// Public API key: it is safe to commit it
apiKey: "a196f9d082dfa45a3fb64448a101cf46",
indexName: "connext",
// Optional: see doc section below
contextualSearch: true,
// // Optional: Specify domains where the navigation should occur through window.location instead on history.push. Useful when our Algolia config crawls multiple documentation sites and we want to navigate with window.location.href to them.
// externalUrlRegex: "external\\.com|domain\\.com",
// Optional: Algolia search parameters
searchParameters: {},
// Optional: path for search page that enabled by default (`false` to disable it)
searchPagePath: false,
//... other Algolia params
},
navbar: {
title: "Connext Documentation",
logo: {
alt: "Connext documentation",
src: "img/logomark.png",
},
items: [
{
type: "doc",
docId: "concepts/what-is-connext",
label: "Concepts",
position: "left",
},
{
type: "doc",
docId: "developers/intro",
label: "Developers",
position: "left",
},
{
type: "doc",
docId: "routers/routers-intro",
label: "Routers",
position: "left",
},
{
type: "doc",
docId: "resources/deployments",
label: "Resources",
position: "left",
}
],
},
footer: {
style: "dark",
copyright: `Published in ${new Date().getFullYear()} by Connext.`,
},
prism: {
additionalLanguages: ["solidity"],
theme: lightCodeTheme,
darkTheme: darkCodeTheme,
},
},
plugins: [
[
require.resolve('docusaurus-gtm-plugin'),
{
id: 'GTM-MLX9QD8', // GTM Container ID
}
]
],
presets: [
[
"@docusaurus/preset-classic",
{
docs: {
path: "./docs",
routeBasePath: "/",
sidebarPath: require.resolve("./sidebars.js"),
sidebarCollapsible: true,
editUrl: "https://github.com/connext/documentation/blob/main",
lastVersion: "current",
remarkPlugins: [
CardLink,
[require('@docusaurus/remark-plugin-npm2yarn'), {sync: true}],
],
},
theme: {
customCss: [require.resolve("./src/css/custom.css")],
},
gtag: {
trackingID: 'G-MPYZEDRVQ0',
anonymizeIP: true,
},
},
],
],
};