forked from darklang/docs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docusaurus.config.js
182 lines (182 loc) · 4.92 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
const path = require("path");
module.exports = {
title: "Dark Documentation",
tagline: "Dark Documentation",
url: "https://docs.darklang.com", // Website URL
baseUrl: "/", // Base URL for the project. For projects hosted on GitHub pages, it follows the format "/projectName/"
favicon: "img/favicon.ico",
organizationName: "darklang", // Usually your GitHub org/user name.
trailingSlash: false, // See https://docusaurus.io/docs/deployment#deploying-to-github-pages
projectName: "docs", // Usually your repo name.
plugins: [
path.resolve(__dirname, "src/plugins/heap-analytics"),
path.resolve(__dirname, "src/plugins/savvy"),
[
"@docusaurus/plugin-client-redirects",
{ redirects: [{ to: "/reference/changelog", from: "/changelog" }] },
],
],
onBrokenLinks: "throw",
onBrokenMarkdownLinks: "throw",
themeConfig: {
image: "img/favicon.ico",
navbar: {
title: "Darklang",
logo: {
alt: "Darklang logo",
src: "img/favicon.ico",
href: "https://darklang.com",
},
items: [
{
to: "/introduction",
activeBasePath: "docs",
label: "Documentation",
position: "right",
},
{
to: "tutorials/first-dark-application",
label: "Tutorial",
position: "right",
},
{
to: "contributing/getting-started",
label: "Contributing",
position: "right",
},
],
},
footer: {
style: "dark",
links: [
{
title: "Learning",
items: [
{
label: "Demo Video",
to: "https://darklang.com/launch/demo-video",
},
{
label: "Tutorial Videos",
to: "https://youtube.com/c/Darklang/videos",
},
{
label: "Docs",
to: "https://darklang.com/docs",
},
{
label: "Tutorial",
to: "tutorials/first-dark-application",
},
{
label: "Walk-throughs",
to: "category/walk-throughs",
},
],
},
{
title: "About",
items: [
{
label: "Company",
to: "https://darklang.com/",
},
{
label: "Blog",
to: "https://blog.darklang.com",
},
],
},
{
title: "Community",
items: [
{
label: "Community Discord",
to: "https://darklang.com/discord-invite",
},
{
label: "Dark Repo",
to: "https://github.com/darklang/dark",
},
{
label: "Docs Repo",
to: "https://github.com/darklang/docs",
},
{
label: "Contributor Docs",
to: "/contributing/getting-started",
},
{
label: "Code of Conduct",
to: "https://darklang.com/code-of-conduct",
},
],
},
{
title: "Product",
items: [
{
label: "Sign in",
to: "https://darklang.com/login",
},
{
label: "Sign up",
to: "https://darklang.com/signup",
},
{
label: "Desktop Client",
to: "https://darklang.com/desktop-client",
},
{
label: "Mailing List",
to: "https://darklang.com/mailing-list",
},
{
label: "Changelog",
to: "reference/changelog",
},
],
},
],
copyright: `Copyright © ${new Date().getFullYear()} Dark Inc. Built with Docusaurus.`,
},
// "v2" heapanalytics.com account
heapio: {
apiKey: 477722926,
devApiKey: 2080145903,
},
savvy: {
apiKey: "6HBmUjmI12nCuopyvB0B",
},
algolia: {
// this is a docsearch account, which is run by algolia:
// https://docsearch.algolia.com. Config is at
// https://github.com/algolia/docsearch-configs/blob/master/configs/darklang.json
appId: "QFOZBC0VVL",
apiKey: "715121cc838a8c3c4ea54324456bd5f9",
indexName: "darklang",
contextualSearch: false,
},
},
presets: [
[
"@docusaurus/preset-classic",
{
docs: {
path: "docs",
sidebarPath: require.resolve("./sidebars.json"),
routeBasePath: "/",
editUrl: "https://github.com/darklang/docs/edit/main/",
// showLastUpdateAuthor: true,
// showLastUpdateTime: true,
},
googleAnalytics: {
trackingID: "UA-159199190-1",
},
theme: {
customCss: require.resolve("./src/css/custom.css"),
},
},
],
],
};