forked from novuhq/novu
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocusaurus.config.js
158 lines (156 loc) · 4.44 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
const codeTheme = require('./src/utils/prism');
// With JSDoc @type annotations, IDEs can provide config autocompletion
/** @type {import('@docusaurus/types').DocusaurusConfig} */
(
module.exports = {
title: 'Novu',
tagline: 'All the tools you need to build modern transactional notification experience',
url: 'https://docs.novu.co',
baseUrl: '/',
onBrokenLinks: 'throw',
onBrokenMarkdownLinks: 'warn',
favicon: 'img/favicon.ico',
organizationName: 'novuhq', // Usually your GitHub org/user name.
projectName: 'novu', // Usually your repo name.
plugins: ['docusaurus-plugin-sass'],
presets: [
[
'@docusaurus/preset-classic',
/** @type {import('@docusaurus/preset-classic').Options} */
({
docs: {
sidebarCollapsed: false,
sidebarPath: require.resolve('./sidebars.js'),
// Please change this to your repo.
editUrl: 'https://github.com/novuhq/novu/blob/main/docs/',
breadcrumbs: false,
routeBasePath: '/',
showLastUpdateAuthor: true,
showLastUpdateTime: true,
},
gtag: {
trackingID: 'G-ZC17SLMXRN',
anonymizeIP: true,
},
theme: {
customCss: require.resolve('./src/css/custom.scss'),
},
}),
],
],
themeConfig:
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
({
metadata: [
{ name: 'robots', content: 'max-image-preview:large' },
{
name: 'keywords',
content:
'novu,novu documentation,novu docs,notification,notification infrastructure,open source,oss',
},
],
image: '/img/social-preview.jpg',
algolia: {
appId: '5AG4YK0YDV',
apiKey: '67ce2424b44097b63a6f21a6615de538',
indexName: 'novu',
contextualSearch: true,
externalUrlRegex: 'https://docs.novu.co/api/.*',
},
docs: {
sidebar: {
autoCollapseCategories: false,
},
},
colorMode: {
respectPrefersColorScheme: true,
},
navbar: {
logo: {
alt: 'Novu Logo',
src: 'img/logo-light-bg.svg',
srcDark: 'img/logo-dark-bg.svg',
href: '/',
target: '_self',
width: 114,
height: 32,
},
items: [
{
type: 'search',
position: 'left',
},
{
href: 'https://docs.novu.co/api',
label: 'API Reference',
position: 'right',
},
{
href: 'https://github.com/novuhq/novu',
label: 'GitHub',
position: 'right',
},
{
href: 'https://discord.novu.co',
label: 'Community',
position: 'right',
},
],
},
footer: {
style: 'dark',
logo: {
alt: 'Novu',
src: 'img/logo-light-bg.svg',
srcDark: 'img/logo-dark-bg.svg',
href: '/',
width: 114,
height: 32,
},
links: [
{
items: [
{
label: 'Documentation',
to: '/',
},
{
label: 'Providers',
href: 'https://github.com/novuhq/novu/tree/main/providers',
},
{
label: 'Contact Us',
href: 'https://discord.novu.co',
},
],
},
{
items: [
{
label: 'Discord',
href: 'https://discord.novu.co',
},
{
label: 'Twitter',
href: 'https://twitter.com/novuhq',
},
{
label: 'GitHub',
href: 'https://github.com/novuhq/novu',
},
],
},
],
copyright: `© ${new Date().getFullYear()} Novu`,
},
tableOfContents: {
minHeadingLevel: 2,
maxHeadingLevel: 2,
},
prism: {
theme: codeTheme,
additionalLanguages: ['php', 'ruby', 'java'],
},
}),
}
);