forked from rekuenkdr/armada-alliance-docusaurus
-
Notifications
You must be signed in to change notification settings - Fork 5
/
docusaurus.config.js
115 lines (106 loc) · 3.28 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
require('dotenv').config();
/** @type {import('@docusaurus/types').DocusaurusConfig} */
module.exports = {
title: "Armada Alliance Docs",
tagline: "ARM powered Cardano Stake Pool Guides",
url: "https://armada-alliance.com/", // URL for your website. This can also be considered the top-level hostname
baseUrl: "/docs/", // Change this to match your projectName if deploying to Github Pages or / if deploying to a top level domain
onBrokenLinks: "throw", // Change this to 'throw' for production CI pipelines
onBrokenMarkdownLinks: "throw",
favicon: "img/armada-alliance-logo.png",
organizationName: "armada-alliance", // Change this to your GitHub org/user name.
projectName: "docs", // Change this to your repo name.
i18n: {
// We are using crowdin to translate the site https://docusaurus.io/docs/i18n/crowdin
defaultLocale: "en",
locales: ["en"], // Add locales, run locales and translate https://docusaurus.io/docs/i18n/tutorial
},
themeConfig: {
colorMode: {
defaultMode: "dark",
disableSwitch: false,
respectPrefersColorScheme: false,
},
docs: {
sidebar: {
hideable: true,
},
},
image: "https://armada-alliance.com/img/armada-alliance-logo.png",
algolia: {
// The application ID provided by Algolia
appId: 'QTMN0FOYD2',
// Public API key: it is safe to commit it
apiKey: '23c43269e52c961c870f8489a4e9061e',
indexName: 'armada-alliance',
// Optional: see doc section below
contextualSearch: true,
// Optional: Algolia search parameters
searchParameters: {},
// Optional: path for search page that enabled by default (`false` to disable it)
searchPagePath: 'search',
//... other Algolia params
},
navbar: {
title: "Armada Alliance Docs",
logo: {
alt: "Armada Alliance ship logo",
src: "img/armada-alliance-logo.png",
},
items: [
{
type: "localeDropdown", // Locale Dropdown
position: "right",
},
{
href: "https://armada-alliance.com",
label: "Armada Website",
// className: "center-nav-item",
position: "right",
// target: "_blank",
// className: "header-website-link",
},
{
href: "https://github.com/armada-alliance/",
// label: "GitHub",
position: "right",
className: "header-github-link",
},
// {
// href: "https://shop.armada-alliance.com",
// label: "Armada Store",
// position: "right",
// },
],
},
},
customFields:{
mendableAnonKey: process.env.MENDABLE_KEY,
},
plugins: [
[
'docusaurus-node-polyfills', { excludeAliases: ['console']}
]
],
presets: [
[
"@docusaurus/preset-classic",
{
docs: {
routeBasePath: "/",
sidebarPath: require.resolve("./sidebars.js"),
// Please change this to your repo.
editUrl: "https://github.com/armada-alliance/docs/edit/master/",
},
blog: false,
theme: {
customCss: require.resolve("./src/css/custom.css"),
},
gtag: {
trackingID: 'G-20GWM641V6',
anonymizeIP: true,
}
},
],
],
};