-
Notifications
You must be signed in to change notification settings - Fork 21
/
docusaurus.config.js
186 lines (179 loc) · 6.59 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
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} */
({
blog: {
blogTitle: "DocuHub blog!",
blogDescription: "A DocuHub powered blog!",
postsPerPage: "ALL",
authorsMapPath: "blog/authors.yaml",
},
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: ["docusaurus-plugin-search-local"],
// search: {
// index: ["docs"],
// numberShown: 5,
// language: "en",
// },
plugins: [[ require.resolve('docusaurus-lunr-search'), {
languages: ['en'] // language codes
}]],
themeConfig:
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
({
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: "/docs/products/community-nextgen/nextgeninaboxDocker/news",
label: "News",
position: "right",
},
{
href: "/contribute",
label: "Contribute",
position: "right",
},
],
},
footer: {
style: "dark",
links: [
{
title: "Docs",
items: [
{
label: "About CIROH",
href: "https://ciroh.ua.edu/about/",
},
{
label: "CIROH Members and Partners",
href: "https://ciroh.ua.edu/about/ciroh-partners/",
},
{
label: "Contact CIROH",
href: "https://ciroh.ua.edu/contact-us/",
},
{
label: "DocuHub Repo",
href: "https://github.com/CIROH-UA/ciroh-ua_website",
},
{
label: "CIROH Portal",
href: "http://portal.ciroh.org//",
},
],
},
{
title: "Follow us on",
items: [
{
html: `
<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>
`,
},
{
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: `<br>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.
<br><br><br>
Copyright © ${new Date().getFullYear()} CIROH - The University of Alabama`,
},
prism: {
theme: prismThemes.github,
darkTheme: prismThemes.dracula,
},
}),
};
module.exports = config;