-
Notifications
You must be signed in to change notification settings - Fork 22
/
docusaurus.config.js
109 lines (109 loc) · 2.75 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
module.exports = {
title: "SourceCred",
tagline: "A tool for communities to measure and reward value creation.",
url: "https://sourcecred.github.io/docs",
baseUrl: "/",
favicon: "img/favicon.png",
organizationName: "sourcecred", // Usually your GitHub org/user name.
projectName: "docs", // Usually your repo name.
themeConfig: {
colorMode: {
defaultMode: "dark",
},
navbar: {
title: "SourceCred",
logo: {
alt: "SourceCred Logo",
src: "img/favicon.png",
},
items: [
{ to: "docs", label: "Beta Docs", position: "left" },
{
href: "https://github.com/sourcecred",
label: "GitHub",
position: "right",
},
],
},
footer: {
links: [
{
title: "Join our Community",
items: [
{
label: "Discord Chat",
href: "https://sourcecred.io/discord",
},
{
label: "Calendar",
href: "https://sourcecred.io/calendar",
},
{
label: "Our Cred Explorer",
to: "http://cred.sourcecred.io/",
},
],
},
{
title: "Social",
items: [
{
label: "Homepage",
href: "https://sourcecred.io",
},
{
label: "GitHub",
href: "https://github.com/sourcecred",
},
{
label: "Discourse Forums",
href: "https://discourse.sourcecred.io",
},
{
label: "Twitter",
href: "https://twitter.com/sourcecred",
},
],
},
],
},
},
presets: [
[
"@docusaurus/preset-classic",
{
docs: {
sidebarPath: require.resolve("./sidebars.js"),
editUrl: ({
version,
versionDocsDirPath,
docPath,
permalink,
locale,
}) => {
const parts = docPath.replace(".md", "").split("/");
const docName = parts.pop();
parts.push("entries");
parts.push(docName);
const partsWithMergedBase = [
parts.slice(0, -2).join("-"),
...parts.slice(-2),
];
return (
"https://sourcecred.io/admin/#/collections/" +
partsWithMergedBase.join("/")
);
},
},
theme: {
customCss: require.resolve("./src/css/custom.css"),
},
gtag: {
trackingID: "G-R74DPTGLMY",
anonymizeIP: true,
},
},
],
],
plugins: [require.resolve("docusaurus-lunr-search")],
};