-
Notifications
You must be signed in to change notification settings - Fork 25
Expand file tree
/
Copy pathdocusaurus.config.js
More file actions
65 lines (64 loc) · 1.5 KB
/
docusaurus.config.js
File metadata and controls
65 lines (64 loc) · 1.5 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
const navbar = require("./config/navbar");
const footer = require("./config/footer");
const redirects = require("./config/redirects");
module.exports = {
title: "UMA Docs",
tagline: "A protocol for building synthetic assets",
url: "https://docs.umaproject.org/",
baseUrl: "/",
favicon: "img/favicon-32x32.png",
organizationName: "umaprotocol",
projectName: "docs",
themeConfig: {
navbar,
footer,
sidebarCollapsible: true,
prism: {
theme: require("prism-react-renderer/themes/nightOwl"),
},
algolia: {
apiKey: "b3a7b837d4e8ce1e75898ddd39885c19",
indexName: "umaproject",
},
colorMode: {
switchConfig: {
darkIcon: "🌙",
darkIconStyle: {
marginLeft: "2px",
marginTop: "1px",
},
lightIcon: "☀️",
lightIconStyle: {
marginLeft: "3px",
marginTop: "0.5px",
},
},
},
},
stylesheets: ["https://use.typekit.net/jll8euv.css"],
presets: [
[
"@docusaurus/preset-classic",
{
docs: {
routeBasePath: "/",
sidebarPath: require.resolve("./sidebars.js"),
showLastUpdateTime: true,
editUrl: "https://github.com/UMAProtocol/docs/edit/master/",
},
theme: {
customCss: require.resolve("./src/css/custom.css"),
},
},
],
],
plugins: [
[
"@docusaurus/plugin-client-redirects",
{
fromExtensions: ["html"],
redirects,
},
],
],
};