-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocusaurus.config.js
54 lines (51 loc) · 1.27 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
const lightCodeTheme = require('prism-react-renderer/themes/github');
const darkCodeTheme = require('prism-react-renderer/themes/dracula');
const config = {
title: 'Essence of Code',
tagline: 'Building a stronger foundation',
url: 'https://essenceofcode.github.io',
baseUrl: '/',
onBrokenLinks: 'throw',
onBrokenMarkdownLinks: 'warn',
favicon: 'img/favicon.ico',
projectName: 'essenceofcode.github.io',
organizationName: 'daviddudson',
trailingSlash: false,
presets: [
[
'classic',
({
docs: {
sidebarPath: require.resolve('./sidebars.js'),
editUrl: 'https://github.com/DavidDudson/essenceofcode',
}
}),
],
],
themeConfig:
({
navbar: {
title: 'Essence of Code',
logo: {
alt: 'Essence of Code',
src: 'img/logo.svg',
},
items: [
{
href: 'https://github.com/DavidDudson/essenceofcode',
label: 'GitHub',
position: 'right',
},
],
},
footer: {
style: 'dark',
copyright: `Copyright © ${new Date().getFullYear()} David Dudson.`,
},
prism: {
theme: lightCodeTheme,
darkTheme: darkCodeTheme,
},
}),
};
module.exports = config;