-
Notifications
You must be signed in to change notification settings - Fork 32
Expand file tree
/
Copy pathdocusaurus.config.js
More file actions
240 lines (234 loc) · 8.07 KB
/
docusaurus.config.js
File metadata and controls
240 lines (234 loc) · 8.07 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
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
237
238
239
240
// @ts-check
// Note: type annotations allow type checking and IDEs autocompletion
require("dotenv").config();
const lightCodeTheme = require("prism-react-renderer/themes/github");
const darkCodeTheme = require("prism-react-renderer/themes/dracula");
const { tailwindPlugin, webpackPlugin } = require("./src/plugins");
/** @type {import('@docusaurus/types').Config} */
const config = {
title: " ", // Set empty string to disable site title repeating in og title for all pages. Title, descr, and home page heading set in src/pages/index.js.
tagline:
"Build with XMTP to send messages between blockchain accounts, including DMs, alerts, announcements, and more", // tagline on home page
titleDelimiter: " ", // Set empty string to disable pipe delimiter in og title
url: "https://xmtp.org",
customFields: {
githubAPI: process.env.PUBLIC_URL,
personalToken: process.env.AUTH_PERSONAL_TOKEN,
},
baseUrl: "/",
onBrokenLinks: "throw",
onBrokenMarkdownLinks: "throw",
favicon: "img/favi.png",
organizationName: "xmtp",
projectName: "xmtp-dot-org",
scripts: [
{
src: "/js/myjs.js",
},
{
src: "https://plausible.io/js/script.tagged-events.outbound-links.js",
async: true,
defer: true,
"data-domain": "xmtp.org",
},
{
src: "https://unpkg.com/flickity@2/dist/flickity.pkgd.min.js",
"data-domain": "xmtp.org",
},
{
src: "https://unpkg.com/flickity-fade@1/flickity-fade.js",
"data-domain": "xmtp.org",
},
],
clientModules: [require.resolve("./src/css/tailwind.css")],
presets: [
[
"classic",
{
docs: {
path: "vision",
id: "default",
routeBasePath: "vision",
sidebarPath: require.resolve("./sidebars/sidebars.js"),
showLastUpdateAuthor: false,
showLastUpdateTime: true,
editUrl: "https://github.com/xmtp/xmtp-dot-org/edit/main",
},
blog: {
blogDescription:
"A blog about XMTP (Extensible Message Transport Protocol), the open protocol and network for secure messaging",
blogSidebarTitle: "All posts",
blogSidebarCount: "ALL",
editUrl: "https://github.com/xmtp/xmtp-dot-org/edit/main",
},
theme: {
customCss: require.resolve("./src/css/tailwind.css"),
},
},
],
],
plugins: [
tailwindPlugin,
// @ts-ignore
webpackPlugin,
],
themeConfig:
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
({
colorMode: {
defaultMode: "light",
disableSwitch: false,
},
image: "img/xmtp-new.jpeg",
navbar: {
title: "",
logo: {
className: "navbar__logo__img",
alt: "XMTP Logo",
src: "img/logomark.svg",
srcDark: "img/logomark-dark.svg",
},
items: [
{
to: 'https://docs.xmtp.org/',
position: 'right',
label: 'Documentation ↗',
},
{
type: "dropdown",
position: "right",
label: "Community",
items: [
{
href: "https://community.xmtp.org/",
html: `<div class="navbar__client__dropdown"><div class="navbar__client__dropdown__icon"><img src="/img/discourse-icon.svg" alt="Discourse icon" /></div>
<div class="navbar__client__dropdown_text"><div class="text-base text-semibold">Technical forum ↗</div>`,
},
{
href: "https://docs.xmtp.org/chat-apps/intro/dev-support",
html: `<div class="navbar__client__dropdown"><div class="navbar__client__dropdown__icon"><img src="/img/support-icon-orange.svg" alt="support icon" /></div>
<div class="navbar__client__dropdown_text"><div class="text-base text-semibold">Dev support ↗</div>`,
},
{
href: "https://paragraph.xyz/@xmtp_community/",
html: `<div class="navbar__client__dropdown"><div class="navbar__client__dropdown__icon"><img src="/img/marketing-icon.svg" alt="Megaphone icon" /></div>
<div class="navbar__client__dropdown_text"><div class="text-base text-semibold">Blog ↗</div></div>`,
},
{
href: "https://lu.ma/xmtp",
html: `<div class="navbar__client__dropdown"><div class="navbar__client__dropdown__icon"><img src="/img/calendar-icon.svg" alt="Calendar icon" /></div>
<div class="navbar__client__dropdown_text"><div class="text-base text-semibold">Events ↗</div>`,
},
{
to: "/vision/community/contribute",
html: `<div class="navbar__client__dropdown"><div class="navbar__client__dropdown__icon"><img src="/img/heart-icon.svg" alt="Heart icon" /></div>
<div class="navbar__client__dropdown_text"><div class="text-base text-semibold">Contribute</div>`,
},
{
to: "/vision/community/code-of-conduct",
html: `<div class="navbar__client__dropdown"><div class="navbar__client__dropdown__icon"><img src="/img/shield.svg" alt="Shield icon" /></div>
<div class="navbar__client__dropdown_text"><div class="text-base text-semibold">Code of conduct</div>`,
},
],
},
{
href: "https://github.com/xmtp",
title: "Go to the XMTP GitHub repo",
position: "right",
className: "header-github-link",
},
],
},
footer: {
style: "dark",
links: [
{
title: "Community",
items: [
{
label: "Technical forum ↗",
to: "https://community.xmtp.org/",
},
{
label: "Dev support ↗",
to: "https://docs.xmtp.org/chat-apps/intro/dev-support",
},
{
label: "XMTP Community blog ↗",
to: "https://paragraph.xyz/@xmtp_community/",
},
{
label: "XMTP Community events ↗",
to: "https://lu.ma/xmtp",
},
{
label: "Contribute",
to: "/vision/community/contribute",
},
{
label: "Code of conduct",
to: "/vision/community/code-of-conduct",
},
],
},
{
title: "Resources",
items: [
{
label: "FAQ ↗",
to: "https://docs.xmtp.org/get-started/faq",
},
{
label: "Brand assets ↗",
to: "https://github.com/xmtp/brand",
},
{
label: "Partnerships with XMTP Labs ↗",
to: "https://forms.gle/UMCFjB8ukiMxBxnK6",
},
{
label: "Careers at XMTP Labs ↗",
to: "https://paragraph.com/@xmtplabs/careers",
},
],
},
{
title: "Socials",
items: [
{
label: "Twitter / 𝕏 ↗",
to: "https://x.com/xmtp_",
},
{
label: "Farcaster ↗",
to: "https://warpcast.com/~/channel/xmtp",
},
],
},
{
title: "Site",
items: [
{
label: "Privacy policy",
to: "privacy",
},
{
label: "Terms of service",
to: "/terms",
},
{
label: "CC BY 4.0 ↗",
to: "https://creativecommons.org/licenses/by/4.0/",
},
],
},
],
},
prism: {
additionalLanguages: ["swift", "kotlin", "graphql"],
theme: darkCodeTheme,
darkTheme: darkCodeTheme,
},
}),
};
module.exports = config;