@@ -10,24 +10,18 @@ const config = {
10
10
tagline : 'Software Lifecycle Improvement & Modernization (SLIM)' ,
11
11
favicon : '/img/favicon.ico' ,
12
12
13
-
14
13
// Set the production url of your site here
15
14
url : 'https://nasa-ammos.github.io' ,
16
15
// Set the /<baseUrl>/ pathname under which your site is served
17
- // For GitHub pages deployment, it is often '/<projectName>/'
18
16
baseUrl : '/slim/' ,
19
17
20
18
// GitHub pages deployment config.
21
- // If you aren't using GitHub pages, you don't need these.
22
- organizationName : 'nasa-ammos' , // Usually your GitHub org/user name.
23
- projectName : 'slim' , // Usually your repo name.
19
+ organizationName : 'nasa-ammos' ,
20
+ projectName : 'slim' ,
24
21
25
22
onBrokenLinks : 'ignore' ,
26
23
onBrokenMarkdownLinks : 'ignore' ,
27
24
28
- // Even if you don't use internalization, you can use this field to set useful
29
- // metadata like html lang. For example, if your site is Chinese, you may want
30
- // to replace "en" with "zh-Hans".
31
25
i18n : {
32
26
defaultLocale : 'en' ,
33
27
locales : [ 'en' ] ,
@@ -40,18 +34,12 @@ const config = {
40
34
( {
41
35
docs : {
42
36
sidebarPath : require . resolve ( './sidebars.js' ) ,
43
- // Please change this to your repo.
44
- // Remove this to remove the "edit this page" links.
45
- editUrl :
46
- 'https://github.com/nasa-ammos/slim/tree/main/' ,
37
+ editUrl : 'https://github.com/nasa-ammos/slim/tree/main/' ,
47
38
sidebarCollapsed : true ,
48
39
} ,
49
40
blog : {
50
41
showReadingTime : true ,
51
- // Please change this to your repo.
52
- // Remove this to remove the "edit this page" links.
53
- editUrl :
54
- 'https://github.com/nasa-ammos/slim/tree/main/' ,
42
+ editUrl : 'https://github.com/nasa-ammos/slim/tree/main/' ,
55
43
} ,
56
44
theme : {
57
45
customCss : require . resolve ( './src/css/custom.css' ) ,
@@ -63,7 +51,6 @@ const config = {
63
51
themeConfig :
64
52
/** @type {import('@docusaurus/preset-classic').ThemeConfig } */
65
53
( {
66
- // Replace with your project's social card
67
54
image : 'img/docusaurus-social-card.jpg' ,
68
55
navbar : {
69
56
title : 'SLIM' ,
@@ -158,11 +145,36 @@ const config = {
158
145
respectPrefersColorScheme : false
159
146
} ,
160
147
} ) ,
148
+
149
+ markdown : {
150
+ mermaid : true ,
151
+ } ,
152
+
153
+ themes : [ '@docusaurus/theme-mermaid' ] ,
154
+
155
+ plugins : [
156
+ [
157
+ '@docusaurus/plugin-client-redirects' ,
158
+ {
159
+ redirects : [
160
+ {
161
+ from : [
162
+ '/continuous-testing/starter-kits' , // without baseUrl
163
+ '/slim/continuous-testing/starter-kits' , // with baseUrl
164
+ ] ,
165
+ to : '/docs/guides/software-lifecycle/security/secrets-detection/' ,
166
+ } ,
167
+ ] ,
168
+ } ,
169
+ ] ,
170
+ ] ,
161
171
162
- markdown : {
163
- mermaid : true ,
172
+ scripts : [
173
+ {
174
+ src : '/js/redirect-handler.js' ,
175
+ async : true ,
164
176
} ,
165
- themes : [ '@docusaurus/theme-mermaid' ]
177
+ ] ,
166
178
} ;
167
179
168
- module . exports = config ;
180
+ module . exports = config ;
0 commit comments