-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocusaurus.config.js
More file actions
144 lines (134 loc) · 4.38 KB
/
docusaurus.config.js
File metadata and controls
144 lines (134 loc) · 4.38 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
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
// @ts-check
// remark-directive is ESM-only; require() returns the module namespace object
const remarkDirective = (() => {
const m = require('remark-directive');
return m.default ?? m;
})();
const remarkImageLight = require('./src/plugins/remark-image-light');
/** @type {import('@docusaurus/types').Config} */
const config = {
title: 'Crossplane Provider Docs',
tagline: 'Documentation for SAP Crossplane Providers',
favicon: 'img/co_axolotl.png',
url: 'https://sap.github.io',
baseUrl: '/crossplane-provider-docs/',
organizationName: 'SAP',
projectName: 'crossplane-provider-docs',
onBrokenLinks: 'throw',
onBrokenAnchors: 'throw',
onDuplicateRoutes: 'throw',
markdown: {
hooks: {
onBrokenMarkdownLinks: 'throw',
},
},
i18n: {
defaultLocale: 'en',
locales: ['en'],
},
presets: [
[
'classic',
/** @type {import('@docusaurus/preset-classic').Options} */
({
docs: {
path: 'docs',
routeBasePath: 'docs',
sidebarPath: require.resolve('./sidebars.js'),
remarkPlugins: [remarkDirective, remarkImageLight],
exclude: [
// Exclude everything in a submodule except its docs/ subfolder.
// Add two lines per new submodule, e.g. for crossplane-provider-hana:
// 'crossplane-provider-hana/!(docs)/**',
// 'crossplane-provider-hana/!(docs)',
'crossplane-provider-btp/!(docs)/**',
'crossplane-provider-btp/!(docs)',
'crossplane-provider-hana/!(docs)/**',
'crossplane-provider-hana/!(docs)',
'crossplane-provider-cloudfoundry/!(docs)/**',
'crossplane-provider-cloudfoundry/!(docs)',
// xp-clifford: exclude everything except its docs/ subfolder.
'xp-clifford/!(docs)/**',
'xp-clifford/!(docs)',
],
},
blog: false,
theme: {
customCss: require.resolve('./src/css/custom.css'),
},
}),
],
],
themeConfig:
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
({
navbar: {
title: 'Crossplane Provider Docs',
logo: {
alt: 'Crossplane Axolotl Logo',
src: 'img/co_axolotl.png',
},
items: [
{
type: 'docSidebar',
sidebarId: 'mainSidebar',
position: 'left',
label: 'Docs',
},
{
href: 'https://github.com/SAP/crossplane-provider-docs',
label: 'GitHub',
position: 'right',
},
],
},
footer: {
style: 'dark',
links: [
{
title: 'Docs',
items: [
{
label: 'Contribution',
to: '/docs/contribution/understand-providers',
},
{
label: 'crossplane-provider-btp',
to: '/docs/crossplane-provider-btp/docs/end-user-guides/btp',
},
{
label: 'crossplane-provider-hana',
to: '/docs/crossplane-provider-hana/docs/end-user-guides/hana',
},
{
label: 'crossplane-provider-cloudfoundry',
to: '/docs/crossplane-provider-cloudfoundry/docs/end-user-guides/cloudfoundry',
},
{
label: 'xp-clifford',
to: '/docs/xp-clifford/docs/end-user-guides/overview',
},
],
},
{
title: 'Community',
items: [
{
label: 'GitHub',
href: 'https://github.com/SAP/crossplane-provider-docs',
},
],
},
],
copyright: `Copyright © ${new Date().getFullYear()} SAP SE or an SAP affiliate company. All rights reserved.`,
},
prism: {
theme: require('prism-react-renderer').themes.github,
darkTheme: require('prism-react-renderer').themes.dracula,
},
}),
// Each submodule's docs/ directory is added so that images in docs/img/ are served at /img/...
// To add a new submodule, append its docs path, e.g. 'docs/crossplane-provider-xyz/docs'
staticDirectories: ['static', 'docs/crossplane-provider-btp/docs', 'docs/crossplane-provider-hana/docs', 'docs/crossplane-provider-cloudfoundry/docs'],
};
module.exports = config;