forked from dhis2/developer-portal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docusaurus.config.js
128 lines (127 loc) · 3.42 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
126
127
128
module.exports = {
title: "DHIS2 Developer Portal",
tagline: "Welcome to the DHIS2 application development community!",
url: "https://dhis2.github.io",
baseUrl: "/",
onBrokenLinks: "throw",
onBrokenMarkdownLinks: "warn",
favicon: "img/favicon.ico",
organizationName: "dhis2",
projectName: "developer-portal",
themeConfig: {
navbar: {
logo: {
alt: "DHIS2 Developer Portal",
src: "img/dhis2developers.svg",
},
items: [
{
to: "docs/",
activeBasePath: "docs",
label: "Docs",
position: "left",
},
{ to: "blog", label: "Blog", position: "left" },
{ to: "events/webinars", label: "Events", position: "left" },
{ to: "community/support", label: "Community", position: "left" },
{
href: "https://github.com/dhis2/developer-portal",
label: "GitHub",
position: "right",
},
],
},
colorMode: {
defaultMode: "light",
// Hides the switch in the navbar
disableSwitch: true,
respectPrefersColorScheme: false,
},
footer: {
style: "dark",
links: [
{
title: "Docs",
items: [
{
label: "Getting Started",
to: "docs/",
},
],
},
{
title: "Community",
items: [
{
label: "DHIS2 Developer Community",
to: "community",
},
],
},
{
title: "More",
items: [
{
label: "Blog",
to: "docs/",
},
{
label: "DHIS2.org",
to: "https://dhis2.org",
},
],
},
],
copyright: `Copyright © ${new Date().getFullYear()} The DHIS2 Core Team`,
},
announcementBar: {
content: '<a href="https://www.dhis2.org" target="_blank" rel="noopener" class="domain-nav-item" >DHIS2.org</a > <a href="https://play.dhis2.org" target="_blank" rel="noopener" class="domain-nav-item" >Demo</a > <a href="https://docs.dhis2.org/" target="_blank" rel="noopener" class="domain-nav-item" >Documentation</a > <a href="https://community.dhis2.org" target="_blank" rel="noopener" class="domain-nav-item" >Community</a >',
backgroundColor: '#f8fafc',
textColor: '#051841',
isCloseable: false,
id: 'domainNav',
},
googleAnalytics: {
trackingID: 'UA-157707339-4',
anonymizeIP: true
}
},
plugins: [
[
"@docusaurus/plugin-content-docs",
{
id: "events",
path: "events",
routeBasePath: "events",
sidebarPath: require.resolve("./sidebarsEvents.js"),
},
],
[
"@docusaurus/plugin-content-docs",
{
id: "community",
path: "community",
routeBasePath: "community",
sidebarPath: require.resolve("./sidebarsCommunity.js"),
},
]
],
presets: [
[
"@docusaurus/preset-classic",
{
docs: {
sidebarPath: require.resolve("./sidebars.js"),
editUrl: "https://github.com//dhis2/developer-portal/edit/main/",
},
blog: {
showReadingTime: true,
editUrl: "https://github.com/dhis2/developer-portal/edit/main/",
},
theme: {
customCss: require.resolve("./src/css/custom.css"),
},
},
],
],
};