forked from Lyfebloc/lyfebloc-docs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docusaurus.config.js
153 lines (138 loc) · 4.22 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
// @ts-check
// Note: type annotations allow type checking and IDEs autocompletion
const lightCodeTheme = require('prism-react-renderer/themes/github');
const darkCodeTheme = require('prism-react-renderer/themes/dracula');
/** @type {import('@docusaurus/types').Config} */
const config = {
title: 'Welcome to Lyfebloc',
tagline: 'The first Automatic Market Maker that generates frictionless crypto liquidity with extremely high returns.',
url: 'https://docs.lyfebloc.com',
baseUrl: '/',
onBrokenLinks: 'throw',
onBrokenMarkdownLinks: 'warn',
favicon: '/images/favicon.ico',
staticDirectories: ['public', 'static'],
// GitHub pages deployment config.
// If you aren't using GitHub pages, you don't need these.
organizationName: 'lyfebloc', // Usually your GitHub org/user name.
projectName: 'docs', // Usually your repo name.
presets: [
[
'classic',
/** @type {import('@docusaurus/preset-classic').Options} */
({
docs: {
sidebarPath: require.resolve('./sidebars.js'),
// Please change this to your repo.
// Remove this to remove the "edit this page" links.
editUrl:
'https://github.com/lyfebloc/lyfebloc-docs/tree/master',
},
blog: {
showReadingTime: true,
// Please change this to your repo.
// Remove this to remove the "edit this page" links.
editUrl:
'https://github.com/lyfebloc/lyfebloc-docs/tree/master',
},
theme: {
customCss: require.resolve('./src/css/custom.css'),
},
}),
]
],
themeConfig:
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
({
colorMode: {
defaultMode: 'light'
},
navbar: {
title: `Lyfebloc Docs`,
items: [
{
type: 'localeDropdown',
position: 'left',
},
{
type: 'doc',
docId: 'intro',
position: 'left',
label: 'Docs',
},
/* {
to: '/blog', label: 'Blog', position: 'left'
}, */
{
href: 'https://github.com/lyfebloc/lyfebloc-docs',
label: 'GitHub',
position: 'right',
},
],
},
footer: {
style: 'dark',
links: [
{
title: 'Docs',
items: [
{
label: 'Tutorial',
to: '/docs/intro',
},
],
},
{
title: 'Community',
items: [
{
label: 'Lyfebloc Dex',
href: 'https://lyfebloc.com/',
},
{
label: 'Lyfebloc Network',
href: 'https://lyfeblocnetwork.com/',
}
],
},
{
title: 'More',
items: [
{
label: 'Markets',
href: 'https://markets.lyfebloc.com/',
},
{
label: 'Analytics',
href: 'https://info.lyfebloc.com/'
},
{
label: 'Protocols',
href: 'https://docs.lyfebloc.com/protocols/',
},
],
},
],
copyright: `Copyright © ${new Date().getFullYear()} lyfebloc.com`,
},
prism: {
theme: lightCodeTheme,
darkTheme: darkCodeTheme,
additionalLanguages: ['ini', 'ignore', 'batch', 'powershell'],
},
algolia: {
appId: 'RUMGM5QV74',
apiKey: '30fca7df58f2c20c17a87e227245fa24',
indexName: 'lyfebloc',
// 可选:见下文
contextualSearch: true,
// 可选:声明哪些域名需要用 window.location 型的导航而不是 history.push。 适用于 Algolia 配置会爬取多个文档站点,而我们想要用 window.location.href 在它们之间跳转时。
externalUrlRegex: 'docs.lyfebloc\\.com',
// 可选:Algolia 搜索参数
searchParameters: {},
// 可选:搜索页面的路径,默认启用(可以用 `false` 禁用)
searchPagePath: 'search',
},
}),
};
module.exports = config;