-
Notifications
You must be signed in to change notification settings - Fork 27
/
docusaurus.config.js
111 lines (109 loc) · 2.87 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
const lightCodeTheme = require("prism-react-renderer").themes.duotoneLight;
const darkCodeTheme = require("prism-react-renderer").themes.duotoneDark;
const AppEngPages = require('./utils/redirect-appeng');
const AdrsPages = require('./utils/redirect-adrs');
/** @type {import('@docusaurus/types').DocusaurusConfig} */
module.exports = {
title: 'Truss Engineering Playbook',
tagline: 'Repository of documentation on how we do Software Engineering at TrussWorks.',
url: 'https://playbook.truss.dev',
baseUrl: '/',
organizationName: 'trussworks',
trailingSlash: false,
onBrokenLinks: 'throw',
onBrokenMarkdownLinks: 'throw',
favicon: 'img/favicon.ico',
projectName: 'Engineering-Playbook',
themeConfig: {
navbar: {
title: 'Engineering Playbook',
logo: {
alt: 'Truss Logo',
src: 'img/truss-icon-light.png',
},
items: [
{
type: 'doc',
docId: 'README',
position: 'left',
label: 'About',
},
{
type: 'doc',
docId: 'practices',
position: 'left',
label: 'Practices',
},
{
type: 'doc',
docId: 'incident-response/README',
position: 'left',
label: 'Incident Response',
},
{
href: 'https://github.com/trussworks/Engineering-Playbook',
label: 'GitHub',
position: 'right',
},
],
},
footer: {
style: 'dark',
links: [
{
title: 'Resources',
items: [
{
label: 'Docusaurus Official Docs',
href: 'https://6130eb5cde15830007fdf57b--docusaurus-2.netlify.app/docs',
},
],
},
],
copyright: `Copyright ${new Date().getFullYear()} TrussWorks, Inc. Built with Docusaurus.`
},
prism: {
theme: lightCodeTheme,
darkTheme: darkCodeTheme,
},
},
presets: [
[
'@docusaurus/preset-classic',
{
docs: {
sidebarPath: require.resolve('./sidebars.js'),
editUrl: 'https://github.com/trussworks/Engineering-Playbook/edit/main/',
remarkPlugins: [require('mdx-mermaid')],
},
theme: {
customCss: require.resolve('./src/css/custom.css'),
},
},
],
],
themes: [
[
require.resolve("@easyops-cn/docusaurus-search-local"),
/** type {import("@easyops-cn/docusaurus-search-local").PluginOptions} */
({
// `hashed` is recommended as long-team-cache of index file is possible.
hashed: true,
indexBlog: false,
})
]
],
plugins: [
[
'@docusaurus/plugin-client-redirects',
{
redirects: (() => {
let redirects = [];
redirects.push(AppEngPages);
redirects.push(AdrsPages);
return redirects.flat();
})(),
},
]
]
};