-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocusaurus.config.js
178 lines (178 loc) · 4.9 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
module.exports = {
title: 'Bit Assist | Connect your all support assistant in a single button',
tagline: 'Communicate With Your Customers Using Different Messaging Apps',
url: 'https://docs.bit-assist.bitapps.pro/',
baseUrl: '/',
onBrokenLinks: 'throw',
onBrokenMarkdownLinks: 'warn',
favicon: 'img/favicon.svg',
organizationName: 'Bit-Apps-Pro',
projectName: 'bit-assist-doc',
themeConfig: {
colorMode: {
defaultMode: 'light',
disableSwitch: false,
respectPrefersColorScheme: true,
},
navbar: {
title: 'Bit Assist',
logo: {
alt: 'Bit Assist Logo',
src: 'img/logo.svg',
},
items: [
{
to: '/',
activeBaseRegex: '^((?!changelog).)*$',
label: 'Docs',
position: 'left',
},
// { to: 'blog', label: 'Blog', position: 'left' },
{
to: '/changelog/bit-assist-changelog-timeline',
label: 'Changelogs',
position: 'left',
activeBasePath: '/changelog'
},
// {
// href: '/bit-assist-feature-request',
// label: 'Integration Request',
// position: 'left',
// },
{
href: 'https://tawk.to/chat/60eac4b6d6e7610a49aab375/1faah0r3e',
label: 'Support',
position: 'left',
},
{
href: 'https://wordpress.org/plugins/bit-assist/',
label: 'Free Download',
position: 'right',
className: 'download-btn'
},
// {
// type: 'localeDropdown',
// position: 'left',
// },
],
},
footer: {
style: 'light',
links: [
{
title: 'Docs',
items: [
{
label: 'Install & Activate',
to: 'install-activate-bit-assist',
},
{
label: 'Integration Request',
to: '/bit-assist-feature-request',
},
],
},
{
title: 'Community',
items: [
{
label: 'Facebook',
href: 'https://www.facebook.com/groups/bitcommunityusers',
},
{
label: 'YouTube',
href: 'https://www.youtube.com/channel/UCjUl8UGn-G6zXZ-Wpd7Sc3g',
}
],
},
{
title: 'More',
items: [
{
label: 'Changelog',
to: 'changelog/bit-assist-changelog-timeline/',
},
{
label: 'GitHub',
href: 'https://github.com/Bit-Apps-Pro/bit-assist-doc',
},
],
},
],
copyright: `Copyright © ${new Date().getFullYear()} Bit Apps.`,
},
},
presets: [
[
'@docusaurus/preset-classic',
{
docs: {
path: 'docs',
// path: './docs',
routeBasePath: '/',
sidebarPath: require.resolve('./sidebars.js'),
editUrl: 'https://github.com/Bit-Apps-Pro/bit-assist-doc/tree/main',
},
blog: false,
pages: false,
// changelog: {
// path: 'changelog',
// sidebarPath: require.resolve('./sidebars.clog.js'),
// // routeBasePath: '/wp-bit-form-changelog',
// },
// blog: {
// showReadingTime: true,
// editUrl: 'https://github.com/Bit-Apps/bitform-documentation',
// },
theme: {
customCss: [
require.resolve('./src/css/custom.css'),
require.resolve('./src/css/utility.css'),
]
},
},
],
],
plugins: [
'@docusaurus/plugin-ideal-image',
[
require.resolve("@easyops-cn/docusaurus-search-local"),
{
// ... Your options.
// `hashed` is recommended as long-term-cache of index file is possible.
hashed: true,
indexPages: true,
// indexBlog: false,
docsRouteBasePath: '/',
highlightSearchTermsOnTargetPage: true,
// For Docs using Chinese, The `language` is recommended to set to:
// ```
// language: ["en", "zh"],
// ```
// When applying `zh` in language, please install `nodejieba` in your project.
},
]
],
stylesheets: [
'https://fonts.googleapis.com/css2?family=Outfit:wght@200;300;400;500;600;700;800&display=swap',
{ href: '/css/lite-yt-embed.css' }
],
scripts: [
{ src: '/scripts/custom.js', defer: true },
{ src: '/scripts/lite-yt-embed.js', defer: true },
{ src: 'https://browser.sentry-cdn.com/6.11.0/bundle.tracing.min.js', defer: true }
],
// i18n: {
// defaultLocale: 'en',
// locales: ['en', 'fr', 'fa'],
// localeConfigs: {
// en: {
// htmlLang: 'en-GB',
// },
// // You can omit a locale (e.g. fr) if you don't need to override the defaults
// fa: {
// direction: 'rtl',
// },
// },
// },
}