-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocusaurus.config.js
174 lines (174 loc) · 4.65 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
module.exports = {
title: 'Cotalker Technical Documentation',
tagline: 'Products, Tutorials, Admin, API and Support',
url: 'https://doc.cotalker.com',
baseUrl: '/',
favicon: 'img/favicon.ico',
organizationName: 'Cotalker', // Usually your GitHub org/user name.
projectName: 'Cotalker', // Usually your repo name.
markdown: {
mermaid: true,
},
themes: ['@docusaurus/theme-live-codeblock','@docusaurus/theme-mermaid'],
plugins: [
[require.resolve('@cmfcmf/docusaurus-search-local'), {
// blogRouteBasePath: '/blog', // must correspond to the base route path configured for the blog plugin
// docsRouteBasePath: '/docs', // must correspond to the base route path configured for the docs plugin
// indexBlog: true, // whether to index blog pages
// indexDocs: true, // whether to index docs pages
// indexPages: false, // whether to index static pages
// // /404.html is never indexed
// language: "en" // language of your docunpentation, see next section
}]
],
themeConfig: {
disableDark: 'light',
navbar: {
title: '',
logo: {
alt: 'Cotalker',
src: 'img/logo.svg',
srcDark: 'img/logo_dark.svg',
},
items: [
{
to: 'docs/products/products_overview',
activeBasePath: 'docs',
label: 'Products',
position: 'left',
},
{
to: 'docs/getting_started/intro_overview',
activeBasePath: 'docs',
label: 'Getting Started',
position: 'left',
},
{
to: 'docs/documentation/documentation_overview',
activeBasePath: 'docs',
label: 'Admin Docs',
position: 'left',
},
{
to: 'docs/documentation/api/overview_api',
activeBasePath: 'docs',
label: 'API',
position: 'left',
},
{
to: 'docs/documentation/models/overview_model',
activeBasePath: 'docs',
label: 'Data Models',
position: 'left',
},
{
to: 'docs/tutorials/tutorial_overview',
activeBasePath: 'docs',
label: 'Tutorials',
position: 'left',
},
{
to: 'blog',
label: `What's New`,
position: 'left',
},
// {
// to: 'docs/certification/certification_overview',
// activeBasePath: 'docs',
// label: 'Certification',
// position: 'left',
// },
{
to: 'docs/support/support_overview',
activeBasePath: 'docs',
label: 'Support & Help',
position: 'left',
},
// --- Language Dropdown Menu ----
// --- Uncomment code to activate i18n options ---
{
type: 'localeDropdown',
position: 'left',
},
],
},
prism: {
theme: require('prism-react-renderer/themes/nightOwl'),
},
footer: {
style: 'dark',
links: [
{
title: 'General',
items: [
{
label: 'Cotalker',
to: 'https://www.cotalker.com',
},
],
},
{
title: 'Clients',
items: [
{
label: 'Web Client',
to: 'https://web.cotalker.com',
},
{
label: 'Android',
to: 'https://play.google.com/store/apps/details?id=com.cotalker.universal'
},
{
label: 'iOS',
to: 'https://apps.apple.com/app/cotalker/id1525633301'
}
],
},
],
copyright: `Copyright © ${new Date().getFullYear()} Cotalker`,
},
},
presets: [
[
'@docusaurus/preset-classic',
{
docs: {
sidebarPath: require.resolve('./sidebars.js'),
editUrl:
'https://github.com/Cotalker/documentation/tree/main/',
sidebarCollapsible: true,
breadcrumbs: false,
},
theme: {
customCss: require.resolve('./src/css/custom.css'),
},
blog: {
blogSidebarCount: 'ALL',
blogSidebarTitle: 'Latest features:',
feedOptions: {
type: 'all',
},
},
gtag: {
trackingID: 'G-WK2V3XQYBD',
}
},
],
],
// --- Language Options ---
// --- Uncomment code to activate i18n options
i18n: {
defaultLocale: 'en',
locales: ['en', 'es'],
localeConfigs: {
en: {
label: 'English',
direction: 'ltr',
},
es: {
label: 'Español',
direction: 'ltr',
},
},
},
};