forked from chatwoot/docs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocusaurus.config.js
99 lines (99 loc) · 2.72 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
/** @type {import('@docusaurus/types').DocusaurusConfig} */
module.exports = {
title: 'Chatwoot',
tagline: 'Open-source customer engangement suite, an alternative to Intercom & Zendesk',
url: 'https://www.chatwoot.com',
baseUrl: '/docs/',
onBrokenLinks: 'throw',
onBrokenMarkdownLinks: 'warn',
favicon: 'img/favicon.png',
organizationName: 'chatwoot',
projectName: 'docs',
themeConfig: {
announcementBar: {
id: 'star_us',
content:
'⭐️ If you like Chatwoot, give it a star on <a href="https://github.com/chatwoot/chatwoot">GitHub</a> and follow us on <a href="https://twitter.com/chatwootapp">Twitter</a>!',
isCloseable: true,
},
image: 'https://www.chatwoot.com/images/preview.png',
navbar: {
logo: {
href: "https://www.chatwoot.com",
alt: 'Chatwoot',
src: 'img/logo.png',
srcDark: 'img/logo-white.png', // Default to `logo.src`.
target: '_self',
},
items: [
{
to: 'self-hosted',
activeBasePath: 'self-hosted',
label: 'Self Hosted',
position: 'right',
},
{
to: 'product',
activeBaseRegex: "product|user-guide",
label: 'User Guide',
position: 'right',
},
{
to: 'contributing-guide',
activeBasePath: 'contributing-guide',
label: 'Contributing Guide',
position: 'right',
},
{
to: 'handbook/about-chatwoot/history',
activeBasePath: 'handbook',
label: 'Handbook',
position: 'right',
},
{
href: 'https://www.chatwoot.com/developers/api/',
label: 'API',
position: 'right',
},
{
href: 'https://github.com/chatwoot/chatwoot',
label: 'GitHub',
position: 'right',
},
],
},
algolia: {
appId: 'J9H34SLMKO',
apiKey: '6034d7c5310911e20c3fbb3b88111235',
indexName: 'chatwoot',
},
},
presets: [
[
'@docusaurus/preset-classic',
{
googleAnalytics: {
trackingID: 'UA-96794837-1',
anonymizeIP: true,
},
docs: {
routeBasePath: '/',
sidebarCollapsible: true,
sidebarPath: require.resolve('./sidebars.js'),
editUrl: 'https://github.com/chatwoot/docs/edit/main/',
showLastUpdateAuthor: true,
showLastUpdateTime: true,
breadcrumbs: true,
},
blog: {
showReadingTime: true,
editUrl:
'https://github.com/chatwoot/docs/edit/main/blog/',
},
theme: {
customCss: require.resolve('./src/css/custom.css'),
},
},
],
],
};