-
Notifications
You must be signed in to change notification settings - Fork 33
/
Copy pathdocusaurus.config.js
82 lines (82 loc) · 2.11 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
/** @type {import('@docusaurus/types').DocusaurusConfig} */
const VersionsArchived = require("./versionsArchived.json")
module.exports = {
title: "SMA Technologies Help",
tagline: "OpCon",
url: "https://help.smatechnologies.com",
baseUrl: "/opcon/core/",
onBrokenLinks: "throw",
onBrokenMarkdownLinks: "warn",
favicon: "img/favicon.ico",
organizationName: "smatechnologies",
projectName: "opcon-docs",
themeConfig: {
navbar: {
title: "Help",
logo: {
alt: "SMA Technologies Help Logo",
src: "img/logo.svg",
href: "https://help.smatechnologies.com",
},
items: [
{
type: "docsVersionDropdown",
position: "right",
dropdownItemsAfter: [
...Object.entries(VersionsArchived).map(
([versionName, versionUrl]) => ({
label: versionName,
href: versionUrl,
})
),
],
},
],
},
footer: {
style: "dark",
copyright: `Copyright © ${new Date().getFullYear()} SMA Technologies.`,
},
},
presets: [
[
"@docusaurus/preset-classic",
{
docs: {
breadcrumbs: false,
routeBasePath: "/",
sidebarPath: require.resolve("./sidebars.js"),
editUrl: "https://github.com/smatechnologies/opcon-docs/blob/main",
lastVersion: "current",
versions: {
current: {
label: "current",
},
"23.0": {
label: "23.0",
path: "v23.0",
banner: "none",
},
"22.0": {
label: "22.0",
path: "v22.0",
banner: "none",
},
"21.0": {
label: "21.0",
path: "v21.0",
banner: "none",
},
},
},
theme: {
customCss: require.resolve("./src/css/custom.css"),
},
gtag: {
trackingID: "G-7XYMFXX81Y",
},
},
],
],
//plugins: [[require.resolve("@cmfcmf/docusaurus-search-local"), {}]],
}