-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocusaurus.config.js
More file actions
77 lines (75 loc) · 1.9 KB
/
docusaurus.config.js
File metadata and controls
77 lines (75 loc) · 1.9 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
// @ts-check
const math = require('remark-math');
const katex = require('rehype-katex');
const { themes } = require('prism-react-renderer');
/** @returns {Promise<import('@docusaurus/types').Config>} */
async function createConfig() {
return {
title: 'Bulldog Computer Club',
tagline: 'The premier club for everything related to computer science at Churchill',
url: 'https://bulldog-computer-club.github.io',
baseUrl: '/',
onBrokenLinks: 'throw',
onBrokenMarkdownLinks: 'warn',
favicon: 'img/favicon.ico',
organizationName: 'bulldog-computer-club',
projectName: 'bulldog-computer-club.github.io',
trailingSlash: false,
presets: [
[
'@docusaurus/preset-classic',
{
docs: {
sidebarPath: require.resolve('./sidebars.js'),
editUrl: 'https://github.com/bulldog-computer-club/bulldog-computer-club.github.io/edit/main/',
remarkPlugins: [math],
rehypePlugins: [katex],
},
blog: false,
theme: {
customCss: require.resolve('./src/css/custom.css'),
},
},
],
],
themeConfig: {
colorMode: {
defaultMode: 'dark',
respectPrefersColorScheme: true,
},
navbar: {
title: 'Bulldog Computer Club',
logo: {
alt: 'Bulldog Computer Club Logo',
src: 'img/logo.svg',
},
items: [
{
type: 'doc',
docId: '2023-24/welcome',
position: 'left',
label: '2023-24 Guides',
},
{
href: 'https://github.com/bulldog-computer-club/',
className: 'header-github-link',
position: 'right',
},
],
},
prism: {
darkTheme: themes.vsDark,
theme: themes.vsLight,
additionalLanguages: ['java'],
},
},
stylesheets: [
{
href: 'https://cdn.jsdelivr.net/npm/katex@0.13.11/dist/katex.min.css',
integrity: 'sha384-Um5gpz1odJg5Z4HAmzPtgZKdTBHZdw8S29IecapCSB31ligYPhHQZMIlWLYQGVoc',
crossorigin: 'anonymous',
},
],
};
}
module.exports = createConfig;