forked from WeatherXM/docs
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocusaurus.config.js
More file actions
100 lines (95 loc) · 3.02 KB
/
docusaurus.config.js
File metadata and controls
100 lines (95 loc) · 3.02 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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
const path = require("path");
require("dotenv").config();
/** @type {import('@docusaurus/types').Config} */
const config = {
title: "WeatherXM Docs",
tagline: "WeatherXM Documentation Page",
url: "https://docs.weatherxm.com",
baseUrl: "/",
onBrokenLinks: "throw",
onBrokenMarkdownLinks: "warn",
favicon: "img/favicon/favicon.ico",
organizationName: "WeatherXM", // Usually your GitHub org/user name.
projectName: "docs", // Usually your repo name.
deploymentBranch: "gh-pages",
trailingSlash: false,
plugins: [
// ...
path.resolve(__dirname, "plugins/docusaurus-plugin-hotjar"),
],
presets: [
[
"@docusaurus/preset-classic",
{
gtag: {
trackingID: "G-E38CY3JRM3",
},
docs: {
sidebarPath: require.resolve("./sidebars.js"),
routeBasePath: "/",
// Please change this to your repo.
editUrl: "https://github.com/WeatherXM/docs/blob/main",
},
theme: {
customCss: require.resolve("./src/css/custom.css"),
},
},
],
],
themeConfig: {
hotjar: {
applicationId: 2542811,
},
colorMode: {
defaultMode: "light",
disableSwitch: false,
respectPrefersColorScheme: true,
},
navbar: {
logo: {
alt: "WeatherXM",
src: "img/wxm-logo-wide-notagline.svg",
srcDark: "img/wxm-logo-wide-notagline-white.svg",
},
items: [{
to: "/project",
label: "Project",
position: "left",
activeBaseRegex: `project`,
},
{
to: "/wxm-devices/wifi-m5-bundle/wxm-ws1000-introduction",
label: "WeatherXM Devices",
position: "left",
activeBaseRegex: `devices`,
},
{
to: "/glossary",
label: "Glossary",
position: "left",
activeBaseRegex: `glossary`,
},
{
href: "https://explorer.weatherxm.com/",
label: "Explorer",
position: "right",
},
{
href: "https://github.com/WeatherXM/docs",
label: "GitHub",
position: "right",
},
{
href: "https://shop.weatherxm.com",
label: "Shop",
position: "right",
id: "docs",
},
],
},
footer: {
copyright: `Copyright © ${new Date().getFullYear()} WeatherXM. Built with Docusaurus.`,
},
},
};
module.exports = config;