-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathdocusaurus.config.js
171 lines (170 loc) · 4.88 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
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
/** @type {import('@docusaurus/types').DocusaurusConfig} */
module.exports = {
title: "Security Playbook",
tagline: "Hvordan vi utvikler sikker software i NAV",
url: "https://sikkerhet.nav.no",
baseUrl: "/",
onBrokenLinks: "throw",
onBrokenMarkdownLinks: "warn",
favicon: "img/security-champion-logo.ico",
organizationName: "navikt", // Usually your GitHub org/user name.
projectName: "security-playbook", // Usually your repo name.
i18n: {
defaultLocale: "no",
locales: ["no"],
},
markdown: {
mermaid: true,
},
themes: ["@docusaurus/theme-mermaid"],
plugins: [
[
require.resolve("docusaurus-lunr-search"),
{
languages: ["no"], // language codes
},
],
[
"@docusaurus/plugin-client-redirects",
{
redirects: [
{
from: "/docs/kom-i-gang",
to: "/docs/sikker-utvikling/",
},
{
from: "/docs/intro",
to: "/docs/",
},
],
},
],
],
themeConfig: {
navbar: {
title: "Security Playbook",
logo: {
alt: "Security Playbook",
src: "img/SecurityChampion.svg",
},
items: [
{
type: "doc",
docId: "index",
position: "left",
label: "Hva er dette? 📚",
},
{
href: "/docs/sikker-utvikling/",
position: "left",
label: "Kom i gang 🚀",
},
{
href: "/docs/verktoy/",
position: "left",
label: "Verktøy 🧰",
},
{
href: "/docs/events/",
position: "left",
label: "Arrangementer 🎉",
},
{
href: "/docs/goldenpath/",
position: "left",
label: "Golden Path 📣",
},
{
href: "https://github.com/navikt/security-playbook",
label: "GitHub",
position: "right",
},
],
},
footer: {
style: "dark",
links: [
{
title: "Docs",
items: [
{
label: "Playbook",
to: "/docs/",
},
],
},
{
title: "NAV Utvikling",
items: [
{
label: "Utvikling",
href: "https://github.com/navikt/utvikling",
},
{
label: "Nais",
href: "https://doc.nais.io",
},
{
label: "«Security Champion»-redaksjonen",
href: "https://teamkatalog.nav.no/team/b5915f11-0740-4a2e-b767-6ac5c407e9c7",
},
],
},
{
title: "Nyttige kilder",
items: [
{
label: "Security Champions Norge",
to: "https://securitychampions.no/",
},
{
label: "OWASP",
to: "https://owasp.org/",
},
{
label: "OWASP Security champions playbook",
href: "https://github.com/c0rdis/security-champions-playbook",
},
],
},
],
copyright: `${new Date().getFullYear()} NAV. Built with Docusaurus.\n
<div>Icons made by <a href="https://www.freepik.com" title="Freepik">Freepik</a> from <a href="https://www.flaticon.com/" title="Flaticon">www.flaticon.com</a></div>
`,
},
metadata: [
{
name: "keywords",
content: "sikkerhet, nav, security champions, playbook, community",
},
],
},
presets: [
[
"@docusaurus/preset-classic",
{
docs: {
sidebarPath: require.resolve("./sidebars.js"),
editUrl: "https://github.com/navikt/security-playbook/tree/main/",
},
theme: {
customCss: require.resolve("./src/css/custom.css"),
},
},
],
],
clientModules: [require.resolve("./src/modules/sneaky.js")],
themeConfig: {
metadata: [
{
name: "Content-Security-Policy",
content: "default-src 'self' ; connect-src 'none'",
},
{
name: "Permissions-Policy",
content:
"accelerometer=(), autoplay=(), camera=(), cross-origin-isolated=(), display-capture=(), document-domain=(), encrypted-media=(), execution-while-not-rendered=(), execution-while-out-of-viewport=(), fullscreen=(), geolocation=(), gyroscope=(), keyboard-map=(), magnetometer=(), microphone=(), midi=(), navigation-override=(), payment=(), picture-in-picture=(), publickey-credentials-get=(), screen-wake-lock=(), sync-xhr=(), usb=(), web-share=(), xr-spatial-tracking=(), clipboard-read=(), clipboard-write=(), gamepad=(), speaker-selection=(), conversion-measurement=(), focus-without-user-activation=(), hid=(), idle-detection=(), interest-cohort=(), serial=(), sync-script=(), trust-token-redemption=(), unload=(), window-placement=(), vertical-scroll=()",
},
],
},
};