This repository was archived by the owner on Oct 9, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathdocusaurus.config.js
More file actions
124 lines (122 loc) · 3.06 KB
/
docusaurus.config.js
File metadata and controls
124 lines (122 loc) · 3.06 KB
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
const path = require('path');
const lightCodeTheme = require('prism-react-renderer/themes/github');
const darkCodeTheme = require('prism-react-renderer/themes/dracula');
/** @type {import('@docusaurus/types').DocusaurusConfig} */
module.exports = {
title: 'Snaplet',
tagline: 'Work with your database as easily as your code',
url: 'https://docs.snaplet.dev',
baseUrl: '/',
onBrokenLinks: 'throw',
onBrokenMarkdownLinks: 'warn',
favicon: 'img/favicon.png',
organizationName: 'snaplet', // Usually your GitHub org/user name.
projectName: 'docs', // Usually your repo name.
plugins: [
'docusaurus-plugin-segment',
[
path.resolve(__dirname, './plugins/posthog/index.js'),
{
apiKey: 'phc_F2nspobfCOFDskuwSN7syqKyz8aAzRTw2MEsRvQSB5G',
appUrl: 'https://app.posthog.com',
enableInDevelopment: false,
loaded: function (posthog) {
posthog.register({ source: 'docs' });
}.toString(),
},
],
],
themeConfig: {
algolia: {
appId: 'PPVJZD9QQI',
apiKey: '221836c058f50b764becd187638295b2',
indexName: 'snaplet-docs',
},
segment: {
apiKey: 'VY4RrFl2Qu7bCRmxzQ7IIj9dK7MFMzrH',
},
colorMode: {
defaultMode: 'light',
disableSwitch: true,
respectPrefersColorScheme: false,
},
navbar: {
logo: {
alt: 'Snaplet',
src: 'img/logo.svg',
},
items: [
{
label: 'Discord',
href: 'https://app.snaplet.dev/chat',
position: 'right',
},
{
label: 'GitHub',
href: 'https://github.com/snaplet/docs',
position: 'right',
},
{
href: 'https://app.snaplet.dev',
label: 'Login',
position: 'right',
},
],
},
footer: {
links: [
{
title: 'Community',
items: [
{
label: 'Discord',
href: 'https://app.snaplet.dev/chat',
},
{
label: 'Twitter',
href: 'https://twitter.com/_snaplet',
},
],
},
{
title: 'More',
items: [
{
label: 'Blog',
to: 'https://www.snaplet.dev/blog',
},
{
label: 'GitHub',
href: 'https://github.com/snaplet',
},
{
label: 'Security',
href: '/security',
},
],
},
],
copyright: `Copyright © ${new Date().getFullYear()} Snaplet, Inc. All rights reserved.`,
},
prism: {
theme: darkCodeTheme,
darkTheme: darkCodeTheme,
additionalLanguages: ['bash'],
},
},
presets: [
[
'@docusaurus/preset-classic',
{
docs: {
routeBasePath: '/',
sidebarPath: require.resolve('./sidebars.js'),
editUrl: 'https://github.com/snaplet/docs/tree/main',
},
theme: {
customCss: require.resolve('./src/css/custom.css'),
},
},
],
],
};