-
-
Notifications
You must be signed in to change notification settings - Fork 116
/
docusaurus.config.js
68 lines (68 loc) · 1.99 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
module.exports = {
title: 'goober',
tagline: 'a less than 1KB 🎉 css-in-js alternative with a familiar API',
url: 'https://goober.js.org',
baseUrl: '/',
onBrokenLinks: 'throw',
onBrokenMarkdownLinks: 'warn',
favicon: 'img/favicon.ico',
organizationName: 'cristianbote',
projectName: 'goober',
themeConfig: {
colorMode: {
disableSwitch: false,
respectPrefersColorScheme: true,
switchConfig: {
darkIcon: '🌙',
darkIconStyle: {
marginLeft: '2px'
},
lightIcon: '☀️',
lightIconStyle: {
marginLeft: '1px'
}
}
},
prism: {
theme: require('prism-react-renderer/themes/github'),
darkTheme: require('prism-react-renderer/themes/dracula')
},
navbar: {
hideOnScroll: true,
logo: {
alt: 'goober',
src: 'img/logo.png'
},
items: [
{
href: 'https://github.com/cristianbote/goober',
label: 'GitHub',
position: 'right'
}
]
},
footer: {
style: 'dark',
copyright: `Copyright © ${new Date().getFullYear()} goober. Built with Docusaurus.`
},
algolia: {
apiKey: '1278e78b1c361dfde0beaf90579e3870',
indexName: 'goober'
}
},
presets: [
[
'@docusaurus/preset-classic',
{
docs: {
routeBasePath: '/',
sidebarPath: require.resolve('./sidebars.js'),
editUrl: 'https://github.com/cristianbote/goober/edit/master/'
},
theme: {
customCss: require.resolve('./src/css/custom.css')
}
}
]
]
};