-
Notifications
You must be signed in to change notification settings - Fork 8
/
docusaurus.config.js
104 lines (96 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
require('dotenv').config();
/** @type {import('@docusaurus/types').DocusaurusConfig} */
module.exports = {
title: "Armada Alliance Docs",
tagline: "ARM powered Cardano Stake Pool Guides",
url: "https://docs.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: true,
},
docs: {
sidebar: {
hideable: true,
},
},
image: "https://docs.armada-alliance.com/img/armada-alliance-logo.png",
prism: {
theme: require("prism-react-renderer/themes/nightOwl"),
},
algolia: {
// The application ID provided by Algolia
appId: process.env.ALGOLIA_APP_ID,
// Public API key: it is safe to commit it
apiKey: process.env.ALGOLIA_API_KEY,
indexName: 'armada-alliance',
// 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: 'search',
//... other Algolia params
},
navbar: {
title: "Armada Alliance Docs",
logo: {
alt: "Armada Alliance ship logo",
src: "img/armada-alliance-logo.png",
},
items: [
{
href: "https://armada-alliance.com",
label: "Armada Alliance Website",
className: "center-nav-item",
target: "_blank",
},
{
type: "localeDropdown", // Locale Dropdown
position: "right",
},
{
href: "https://shop.armada-alliance.com",
label: "Armada Store",
position: "right",
},
{
href: "https://github.com/armada-alliance/",
label: "GitHub",
position: "right",
},
],
},
},
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"),
},
},
],
],
};