/
docusaurus.config.js
202 lines (201 loc) · 7.17 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
const navbar = require('./docusaurus.navbar.config');
const footer = require('./docusaurus.footer.config');
module.exports = {
title: 'BeyondStorage',
tagline: 'Beyond Storage ',
url: 'https://beyondstorage.io',
baseUrl: '/',
favicon: 'img/favicon.ico',
organizationName: 'BeyondStorage',
projectName: 'site',
i18n: {
defaultLocale: 'en-US',
locales: ['en-US', 'zh-CN'],
localeConfigs: {
'en-US': {
label: 'English',
},
'zh-CN': {
label: '简体中文',
},
},
},
onBrokenLinks: 'warn',
customFields: {
},
themeConfig: {
algolia: {
apiKey: 'f4ddbe3ff0762522d5a9a6a75fe0c00c',
indexName: 'beyondstorage',
contextualSearch: true,
searchParameters: {},
},
gtag: {
trackingID: 'G-EKQWL4FN09',
},
prism: {
additionalLanguages: ['toml'],
},
colorMode: {
disableSwitch: true,
},
navbar,
footer,
},
presets: [
[
'@docusaurus/preset-classic',
{
docs: {
sidebarPath: require.resolve('./docs/general/sidebars.js'),
path: 'docs/general',
routeBasePath: 'docs/general',
editUrl:
'https://github.com/beyondstorage/site/edit/master/',
showLastUpdateAuthor: true,
showLastUpdateTime: true,
},
blog: {
path: 'blog',
editUrl:
'https://github.com/beyondstorage/site/edit/master/',
routeBasePath: 'blog',
include: ['*.md', '*.mdx'],
showReadingTime: true,
feedOptions: {
type: 'all',
copyright: `Copyright © ${new Date().getFullYear()} BeyondStorage.`,
},
blogSidebarCount: 'ALL',
blogSidebarTitle: 'All our posts',
},
theme: {
customCss: require.resolve('./src/css/custom.css'),
},
},
],
],
plugins: [
[
'@docusaurus/plugin-content-docs',
{
id: 'community',
sidebarPath: require.resolve('./community/sidebars.js'),
path: 'community',
routeBasePath: 'community',
editUrl: 'https://github.com/beyondstorage/site/edit/master/',
showLastUpdateAuthor: true,
showLastUpdateTime: true,
},
],
[
'@docusaurus/plugin-content-docs',
{
id: 'go-storage',
sidebarPath: require.resolve('./docs/go-storage/sidebars.js'),
path: 'docs/go-storage',
routeBasePath: 'docs/go-storage',
editUrl: 'https://github.com/beyondstorage/site/edit/master/',
showLastUpdateAuthor: true,
showLastUpdateTime: true,
},
],
[
'@docusaurus/plugin-content-docs',
{
id: 'beyond-tp',
sidebarPath: require.resolve('./docs/beyond-tp/sidebars.js'),
path: 'docs/beyond-tp',
routeBasePath: 'docs/beyond-tp',
editUrl: 'https://github.com/beyondstorage/site/edit/master/',
showLastUpdateAuthor: true,
showLastUpdateTime: true,
},
],
[
'@docusaurus/plugin-content-docs',
{
id: 'beyond-fs',
sidebarPath: require.resolve('./docs/beyond-fs/sidebars.js'),
path: 'docs/beyond-fs',
routeBasePath: 'docs/beyond-fs',
editUrl: 'https://github.com/beyondstorage/site/edit/master/',
showLastUpdateAuthor: true,
showLastUpdateTime: true,
},
],
[
'@docusaurus/plugin-content-docs',
{
id: 'beyond-ftp',
sidebarPath: require.resolve('./docs/beyond-ftp/sidebars.js'),
path: 'docs/beyond-ftp',
routeBasePath: 'docs/beyond-ftp',
editUrl: 'https://github.com/beyondstorage/site/edit/master/',
showLastUpdateAuthor: true,
showLastUpdateTime: true,
},
],
[
'@docusaurus/plugin-content-docs',
{
id: 'beyond-ctl',
sidebarPath: require.resolve('./docs/beyond-ctl/sidebars.js'),
path: 'docs/beyond-ctl',
routeBasePath: 'docs/beyond-ctl',
editUrl: 'https://github.com/beyondstorage/site/edit/master/',
showLastUpdateAuthor: true,
showLastUpdateTime: true,
},
],
[
'./plugins/plugin-remote-json',
{
path: '/docs',
projects: [
{
name: "go-storage",
path: "/docs/go-storage",
json_urls: [
'https://api.github.com/repos/beyondstorage/go-storage',
'https://api.github.com/repos/beyondstorage/go-storage/releases/latest',
],
},
{
name: "BeyondTP",
path: "/docs/beyond-tp",
json_urls: [
'https://api.github.com/repos/beyondstorage/beyond-tp',
'https://api.github.com/repos/beyondstorage/beyond-tp/releases/latest',
],
},
{
name: "BeyondCTL",
path: "/docs/beyond-ctl",
json_urls: [
'https://api.github.com/repos/beyondstorage/beyond-ctl',
'https://api.github.com/repos/beyondstorage/beyond-ctl/releases/latest',
],
},
{
name: "BeyondFS",
path: "/docs/beyond-fs",
json_urls: [
'https://api.github.com/repos/beyondstorage/beyond-fs',
'https://api.github.com/repos/beyondstorage/beyond-fs/releases/latest',
],
},
{
name: "BeyondFTP",
path: "/docs/beyond-ftp",
json_urls: [
'https://api.github.com/repos/beyondstorage/beyond-ftp',
'https://api.github.com/repos/beyondstorage/beyond-ftp/releases/latest',
],
},
],
component: '@site/src/components/github-repositories',
},
],
]
};