-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocusaurus.config.js
143 lines (134 loc) · 3.96 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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
// @ts-check
// Note: type annotations allow type checking and IDEs autocompletion
const lightCodeTheme = require('prism-react-renderer').themes.github;
const darkCodeTheme = require('prism-react-renderer').themes.dracula;
/** @type {import('@docusaurus/types').Config} */
const config = {
title: 'Learn Security-Enhanced Linux',
tagline: "Don't disable it, it can stop privilege escalation in its tracks!",
url: 'https://selinuxuser.land',
baseUrl: '/',
onBrokenLinks: 'throw',
onBrokenMarkdownLinks: 'throw',
onDuplicateRoutes: 'throw',
favicon: 'img/favicon.ico',
trailingSlash: false,
markdown: {
mermaid: true
},
// GitHub pages deployment config.
// If you aren't using GitHub pages, you don't need these.
organizationName: 'joekir', // Usually your GitHub org/user name.
projectName: 'selinuxuser.land-3', // Usually your repo name.
i18n: {
defaultLocale: 'en',
locales: ['en'],
},
presets: [
[
'classic',
/** @type {import('@docusaurus/preset-classic').Options} */
({
docs: {
breadcrumbs: true,
sidebarCollapsed: true,
sidebarPath: require.resolve('./sidebars.js'),
routeBasePath: 'course/',
},
blog: {
include: ['*.md'],
},
theme: {
customCss: require.resolve('./src/css/custom.css'),
},
}),
],
],
plugins: [
[
require.resolve('@cmfcmf/docusaurus-search-local'),
{
indexDocs: true,
indexBlog: false,
language: 'en',
},
],
],
scripts: [
{
src: "https://app.mailjet.com/statics/js/widget.modal.js",
async: true,
defer: true,
},
{
src: '/js/subscribe.js',
async: false,
defer: false
}
],
themes: ['@docusaurus/theme-mermaid'],
themeConfig:
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
({
announcementBar: {
id: 'beta',
content: "This is currently an alpha release and I'm looking for constructive feedback, please <a target='_blank' href='https://github.com/joekir/selinuxuser.land-3/issues'>file any issues on Github.</a>",
backgroundColor: '#ffffff',
textColor: '#2e4885',
isCloseable: true,
},
image: 'img/logo.png',
navbar: {
// title: 'selinuxuser.land',
logo: {
alt: 'SELinux userland logo',
src: 'img/logo.png',
srcDark: 'img/logo-dark.png'
},
items: [
{
to: '/course/overview',
position: 'left',
label: 'Course',
},
{ to: '/blog', label: 'Blog', position: 'left' },
{
href: 'https://github.com/joekir/selinuxuser.land-3',
label: 'GitHub',
position: 'right',
},
],
},
footer: {
style: 'dark',
links: [
{
html: '<data id="mj-w-res-data" data-token="d23a6a4ef6b2290d0107a109ff67e745" class="mj-w-data" data-apikey="8NIz" data-w-id="OTD" data-lang="en_US" data-base="https://app.mailjet.com" data-width="640" data-height="434" data-statics="statics"/><a href="#" data-token="d23a6a4ef6b2290d0107a109ff67e745" onclick="mjOpenPopin(event, this)" class="footer__link-item">Subscribe for course updates!</a>'
},
{
label: 'Found a bug or inaccuracy?',
href: 'https://github.com/joekir/selinuxuser.land-3/issues',
target: '_blank',
},
{
label: 'Buy me a coffee?',
href: 'https://www.buymeacoffee.com/joekir',
target: '_blank',
},
],
},
prism: {
theme: lightCodeTheme,
darkTheme: darkCodeTheme,
},
mermaid: {
theme: { light: 'forest', dark: 'dark' },
},
colorMode: {
defaultMode: 'light',
disableSwitch: false,
respectPrefersColorScheme: true,
}
}),
};
module.exports = config;