-
Notifications
You must be signed in to change notification settings - Fork 24
/
docusaurus.config.js
142 lines (142 loc) · 3.5 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
/** @type {import('@docusaurus/types').DocusaurusConfig} */
module.exports = {
title: 'RethinkDNS Docs',
tagline: 'A fast, secure, configurable, private DNS + Firewall for Android.',
url: 'https://docs.rethinkdns.com',
baseUrl: '/',
onBrokenLinks: 'throw',
onBrokenMarkdownLinks: 'warn',
favicon: 'img/favicon.ico',
organizationName: 'celzero', // Usually your GitHub org/user name.
projectName: 'docs', // Usually your repo name.
themeConfig: {
navbar: {
title: 'RethinkDNS',
logo: {
alt: 'Logo icon',
src: 'img/app_icon.svg',
srcDark: 'img/app_icon_Light.svg',
},
items: [
{
to: '/',
activeBasePath: 'docs',
label: 'Docs',
position: 'left',
},
// {
// to: 'blog',
// label: 'Blog',
// position: 'left'
// },
{
href: 'https://github.com/celzero/docs',
label: 'GitHub',
position: 'right',
},
],
},
footer: {
style: 'dark',
logo: {
alt: 'Logo icon',
src: 'img/app_icon_Light.svg',
href: 'https://rethinkdns.com',
},
links: [
{
title: 'Product',
items: [
{
label: 'RethinkDNS',
to: 'https://rethinkdns.com',
},
{
label: 'Firewall App',
to: 'https://rethinkdns.com/app',
},
{
label: 'Downloads',
to: 'https://rethinkdns.com/downloads',
},
{
label: 'Documentation',
to: '/',
},
],
},
{
title: 'About',
items: [
{
label: 'FAQs',
href: 'https://rethinkdns.com/faq'
},
{
label: 'GitHub',
href: 'https://github.com/celzero/',
},
{
label: 'Roadmap',
href: 'https://github.com/celzero/rethink-app/milestones'
},
{
label: 'Privacy',
href: 'https://rethinkdns.com/privacy'
},
],
},
{
title: 'Community',
items: [
{
label: 'Blog',
href: 'https://blog.rethinkdns.com',
},
{
label: 'Twitter',
href: 'https://twitter.com/rethinkdns',
},
{
label: 'Telegram',
href: 'https://t.me/rethinkdns'
},
],
},
],
copyright: `${new Date().getFullYear()} Celzero. Built with Docusaurus.`,
},
},
presets: [
[
'@docusaurus/preset-classic',
{
docs: {
routeBasePath: '/',
sidebarPath: require.resolve('./sidebars.js'),
editUrl:
'https://github.com/celzero/docs/edit/main/',
},
// blog: {
// showReadingTime: true,
// editUrl:
// 'https://github.com/facebook/docusaurus/edit/main/website/blog/',
// },
theme: {
customCss: require.resolve('./src/css/custom.css'),
},
},
],
],
plugins: [
[
require.resolve("@easyops-cn/docusaurus-search-local"),
{
// `hashed` is recommended as long-term-cache of index file is possible.
hashed: true,
language: ["en"],
indexPages: true,
},
],
],
};