-
Notifications
You must be signed in to change notification settings - Fork 6
/
docusaurus.config.js
107 lines (99 loc) · 1.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
export default {
title: 'Raindrop.io Help',
tagline: 'All-in-one bookmark manager',
url: 'https://help.raindrop.io',
baseUrl: '/',
favicon: '/favicon.ico',
onBrokenLinks: 'throw',
onBrokenMarkdownLinks: 'warn',
organizationName: 'raindropio',
projectName: 'help',
titleDelimiter: '―',
i18n: {
defaultLocale: 'en',
locales: ['en'],
},
themeConfig: {
colorMode: {
respectPrefersColorScheme: true
},
navbar: {
title: 'Raindrop.io',
hideOnScroll: false,
logo: {
src: 'brand/icon_raw.svg',
href: 'https://app.raindrop.io',
target: '_self',
width: 32,
height: 32
},
items: [
{
to: '/',
label: 'Docs'
},
{
href: 'https://blog.raindrop.io',
label: 'Blog',
target: '_self'
},
{
label: 'Community',
items: [
{
label: 'Twitter',
href: 'https://twitter.com/raindrop_io',
},
{
label: 'GitHub',
href: 'https://github.com/raindropio',
},
{
label: 'Suggest new feature',
href: 'https://better.raindrop.io',
},
],
},
{
type: 'html',
value: '<a class="contact clean-btn" href="/contact-us">Contact us</a>',
}
],
},
//sidebarCollapsible: false,
footer: {},
algolia: {
appId: '2CO1DLSOWC',
apiKey: process.env.ALGOLIA_API_KEY,
indexName: 'raindrop',
contextualSearch: false,
searchParameters: {}
}
},
presets: [
[
'classic',
{
docs: {
routeBasePath: '/',
sidebarPath: require.resolve('./docs/_sidebar.js'),
//editUrl: 'https://github.com/raindropio/help/edit/master/website/',
},
theme: {
customCss: require.resolve('./docs/_custom.css'),
}
}
],
],
clientModules: [
require.resolve('./docs/_details_anchor.js')
],
scripts: [
{
src: '/pb/js/script.js',
defer: true,
'data-domain': 'help.raindrop.io',
'data-api': '/pb/api/event'
}
]
}