-
Notifications
You must be signed in to change notification settings - Fork 22
/
docusaurus.config.js
236 lines (225 loc) · 7.65 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
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
import { themes as prismThemes } from "prism-react-renderer";
/** @type {import('@docusaurus/types').Config} */
const config = {
title: "CIROH DocuHub",
staticDirectories: ["static", "img"],
tagline: "Cooperative Institute for Research to Operations in Hydrology",
url: "http://ciroh.org",
baseUrl: "/",
onBrokenLinks: "throw",
onBrokenMarkdownLinks: "warn",
favicon: "img/docuhub-logo.png",
// GitHub pages deployment config.
// If you aren't using GitHub pages, you don't need these.
organizationName: "CIROH-UA", // Usually your GitHub org/user name.
projectName: "CIROH-UA", // Usually your repo name.
// Even if you don't use internalization, you can use this field to set useful
// metadata like html lang. For example, if your site is Chinese, you may want
// to replace "en" with "zh-Hans".
i18n: {
defaultLocale: "en",
locales: ["en"],
},
presets: [
[
"classic",
/** @type {import('@docusaurus/preset-classic').Options} */
({
gtag: {
trackingID: 'G-TQW7CE7E2P',
anonymizeIP: true,
},
blog: false,
docs: {
sidebarPath: require.resolve("./sidebars.js"),
// Please change this to your repo.
// Remove this to remove the "edit this page" links.
editUrl: "https://github.com/CIROH-UA/ciroh-ua_website/edit/main/",
},
theme: {
customCss: require.resolve("./src/css/custom.css"),
},
}),
],
],
plugins: [
// Lunr Search Plugin for search functionality
[
require.resolve('docusaurus-lunr-search'),
{
languages: ['en'], // language codes for search
}
],
// Draw.io Plugin for embedding diagrams
['drawio', {}],
// Custom Blog Plugin
[
'./plugins/plugin-content-blog.js',
{
blogTitle: "DocuHub blog!",
blogDescription: "A DocuHub powered blog!",
postsPerPage: "ALL", // Display all posts on a single page
authorsMapPath: "blog/authors.yaml", // Path to the authors' mapping file
}
]
],
themeConfig:
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
(
{
colorMode: {
defaultMode: 'dark',
disableSwitch: false,
respectPrefersColorScheme: false,
},
docs: {
sidebar: {
autoCollapseCategories: false,
hideable: true,
},
},
stylesheets: [
"https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css",
// ... other stylesheets
],
navbar: {
title: "CIROH DocuHub",
logo: {
alt: "CIROH Logo",
src: "img/docuhub-logo.png",
},
items: [
{ to: "blog", label: "Blog", position: "right" },
{
type: "doc",
docId: "products/intro",
position: "left",
label: "Products",
},
{
type: "doc",
docId: "services/intro",
position: "left",
label: "Services",
},
{
type: "doc",
docId: "education/education",
position: "left",
label: "Education",
},
{
type: "doc",
docId: "policies/intro",
position: "left",
label: "Policies and Best Practices",
},
{
href: "/impact",
label: "Community Impact",
position: "left",
},
{
href: "/news",
label: "News",
position: "right",
},
{
href: "https://forms.office.com/r/5ww7qRWwwf",
label: "Feedback",
position: "right",
}
],
},
footer: {
style: "dark",
links: [
{
title: 'Quick Links',
items: [
{
label: 'Education',
href: '/docs/education/'
},
{
label: 'Contact Us',
href: '/contact'
},
{
label: 'Contribute',
href: '/contribute'
},
{
label: 'CIROH Portal',
href: 'http://portal.ciroh.org/'
}
]
},
{
title: 'About CIROH',
items: [
{
label: 'About Us',
href: 'https://ciroh.ua.edu/about/'
},
{
label: 'Members & Partners',
href: 'https://ciroh.ua.edu/about/ciroh-partners/'
},
{
label: 'Contact CIROH',
href: 'https://ciroh.ua.edu/contact-us/'
},
{
label: 'DocuHub Repository',
href: 'https://github.com/CIROH-UA/ciroh-ua_website'
}
]
},
{
title: "Follow us on",
items: [
{
html: `
<div class="footer-social-links">
<a href="https://www.youtube.com/@UA_CIROH" target="_blank" rel="noreferrer noopener" aria-label="Visit CIROH" style="margin-left:-15px">
<img src="https://static.vecteezy.com/system/resources/previews/018/930/572/non_2x/youtube-logo-youtube-icon-transparent-free-png.png" alt="CIROH on YouTube" width="70" height="60" />
</a>
<a href="https://www.linkedin.com/company/uaciroh/" target="_blank" rel="noreferrer noopener" aria-label="Visit CIROH" style="margin-left:-15px">
<img src="https://static.vecteezy.com/system/resources/previews/018/930/587/non_2x/linkedin-logo-linkedin-icon-transparent-free-png.png" alt="CIROH on LinkedIn" width="70" height="60" />
</a>
<a href="https://www.facebook.com/UACIROH/" target="_blank" rel="noreferrer noopener" aria-label="Visit CIROH" style="margin-left:-25px">
<img src="https://static.vecteezy.com/system/resources/previews/018/930/702/original/facebook-logo-facebook-icon-transparent-free-png.png" alt="CIROH on Facebook" width="70" height="60" />
</a>
</div>
`,
},
{
html: `
<a href="https://twitter.com/UA_CIROH" target="_blank" rel="noreferrer noopener" aria-label="Visit CIROH" style="margin-left:5px;">
<img src="https://seeklogo.com/images/T/twitter-x-logo-0339F999CF-seeklogo.com.png?v=638264860180000000" alt="CIROH on X" width="40" height="40" />
</a>
<a href="https://github.com/CIROH-UA" target="_blank" rel="noreferrer noopener" aria-label="Visit CIROH" style="margin-left:5px;">
<img src="https://cdn4.iconfinder.com/data/icons/iconsimple-logotypes/512/github-512.png" alt="CIROH on GitHUb" width="40" height="40" />
</a>
`,
},
],
},
],
copyright: `<div class="footer__funding">
This project received funding under award NA22NWS4320003 from NOAA Cooperative Institute Program.
The statements, findings, conclusions, and recommendations are those of the author(s) and do not
necessarily reflect the views of NOAA.
</div>
<div class="footer__bottom">
Copyright © ${new Date().getFullYear()} CIROH - The University of Alabama
</div>`,
},
prism: {
theme: prismThemes.github,
darkTheme: prismThemes.dracula,
},
}),
};
module.exports = config;