-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
docusaurus.config.js
212 lines (197 loc) · 5.69 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
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
// @ts-check
// Note: type annotations allow type checking and IDEs autocompletion
import { themes as prismThemes } from 'prism-react-renderer';
const lightCodeTheme = prismThemes.github;
const darkCodeTheme = prismThemes.dracula;
const sponsorUrl = 'https://github.com/sponsors/replica-io';
const gitHubUrl = 'https://github.com/replica-io/replica-io';
const discordUrl = 'https://discord.replica-io.dev';
const twitterUrl = 'https://x.com/Replica_IO';
const youtubeUrl = 'https://www.youtube.com/@Replica_IO';
const siteGitHubUrl = 'https://github.com/replica-io/replica-io.github.io';
const siteLicense = {
name: "CC-BY-4.0",
icon: "https://i.creativecommons.org/l/by/4.0/80x15.png",
url: "http://creativecommons.org/licenses/by/4.0/",
};
/** @type {import('@docusaurus/types').Config} */
const config = {
title: 'Replica_IO',
tagline: 'Compose practical distributed replication mechanisms',
favicon: 'img/favicon.ico',
url: 'https://replica-io.dev',
baseUrl: '/',
customFields: {
description: 'An open-source framework for building practical distributed replication mechanisms.',
gitHubUrl: gitHubUrl,
siteLicense: siteLicense,
recentBlogPostsOnHomePage: 5
},
// GitHub pages deployment config.
organizationName: 'replica-io',
projectName: 'replica-io.github.io',
trailingSlash: false,
onBrokenLinks: 'throw',
onBrokenMarkdownLinks: 'warn',
i18n: {
defaultLocale: 'en',
locales: ['en'],
},
clientModules: ['/js/unscrambleEmail.js'],
plugins: [
[
'./plugins/blog-plugin',
{
blogTitle: 'Replica_IO Blog',
blogDescription: 'Blog of the Replica_IO project - an open-source framework for building practical distributed replication mechanisms.',
showReadingTime: true,
showLastUpdateTime: true,
showLastUpdateAuthor: true,
onUntruncatedBlogPosts: 'throw',
onInlineAuthors: 'throw',
// Remove this to remove the "edit this page" links.
editUrl: `${siteGitHubUrl}/edit/main/`,
},
]
],
presets: [
[
'classic',
/** @type {import('@docusaurus/preset-classic').Options} */
({
pages: {
showLastUpdateTime: true,
showLastUpdateAuthor: true,
},
docs: {
sidebarPath: './sidebars.js',
showLastUpdateTime: true,
showLastUpdateAuthor: true,
// Remove this to remove the "edit this page" links.
editUrl: `${siteGitHubUrl}/edit/main/`,
},
blog: false,
theme: {
customCss: ['./src/css/custom.css'],
},
}),
],
],
themeConfig:
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
({
metadata: [
{
name: 'keywords',
content: 'decentralization, decentralized-computing, distributed-systems, fault-tolerance, replication',
},
],
colorMode: {
defaultMode: 'dark',
respectPrefersColorScheme: true,
},
image: 'img/social-card.png',
navbar: {
title: 'Replica_IO',
logo: {
alt: 'Replica_IO Logo',
src: 'img/logo.svg',
},
items: [
{
to: 'blog',
label: 'Blog',
},
{
to: sponsorUrl,
'aria-label': 'Sponsor',
html: '<i class="fa-regular fa-heart"></i>',
position: 'right',
className: 'navbar-icon sponsor-icon',
},
{
href: gitHubUrl,
'aria-label': 'GitHub',
html: '<i class="fa-brands fa-github"></i>',
position: 'right',
className: 'navbar-icon',
},
{
href: discordUrl,
'aria-label': 'Discord',
html: '<i class="fa-brands fa-discord"></i>',
position: 'right',
className: 'navbar-icon',
},
{
href: twitterUrl,
'aria-label': 'Twitter / X',
html: '<i class="fa-brands fa-x-twitter"></i>',
position: 'right',
className: 'navbar-icon',
},
{
href: youtubeUrl,
'aria-label': 'YouTube',
html: '<i class="fa-brands fa-youtube"></i>',
position: 'right',
className: 'navbar-icon',
},
{
href: '/#contact-email',
'aria-label': 'Contact Email',
html: '<i class="fa-regular fa-envelope"></i>',
position: 'right',
className: 'navbar-icon',
},
],
},
footer: {
style: 'dark',
links: [
{
title: 'Community',
items: [
{
label: 'Discord',
href: discordUrl,
},
{
label: 'Twitter / X',
href: twitterUrl,
},
],
},
{
title: 'More',
items: [
{
label: 'GitHub',
href: gitHubUrl,
},
{
label: 'YouTube',
href: youtubeUrl,
},
],
},
{
title: 'Contact Us',
items: [
{
label: 'Email',
href: '/#contact-email',
},
],
},
],
copyright: `© ${new Date().getFullYear()} <a target="_blank" href="${siteGitHubUrl}/graphs/contributors">Replica_IO website contributors</a>.`,
},
prism: {
theme: lightCodeTheme,
darkTheme: darkCodeTheme,
additionalLanguages: ['bash'],
},
}),
};
export default config;