forked from eclipse-tractusx/eclipse-tractusx.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docusaurus.config.js
296 lines (287 loc) · 9.76 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
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
// @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: 'Eclipse Tractus-X',
tagline: '',
url: 'https://eclipse-tractusx.github.io',
baseUrl: '/',
onBrokenLinks: 'warn',
onBrokenMarkdownLinks: 'warn',
favicon: 'img/logo_tractus-x.svg',
// GitHub pages deployment config.
// If you aren't using GitHub pages, you don't need these.
organizationName: 'eclipse-tractusx', // Usually your GitHub org/user name.
projectName: 'eclipse-tractusx.github.io', // Usually your repo name.
// Even if you don't use internalization, you can use this field to set useful
// metadata like html lang. For example, if your site is Chinese, you may want
// to replace "en" with "zh-Hans".
i18n: {
defaultLocale: 'en',
locales: ['en'],
},
presets: [
[
'classic',
/** @type {import('@docusaurus/preset-classic').Options} */
({
docs: {
sidebarPath: require.resolve('./sidebars.js'),
// Please change this to your repo.
// Remove this to remove the "edit this page" links.
editUrl:
'https://github.com/eclipse-tractusx/eclipse-tractusx.github.io/tree/main/',
docLayoutComponent: "@theme/DocPage",
docItemComponent: "@theme/ApiItem" // Derived from docusaurus-theme-openapi-docs
},
blog: {
showReadingTime: true,
blogSidebarTitle: 'Eclipse Tractus-X News',
blogSidebarCount: 'ALL',
// Please change this to your repo.
// Remove this to remove the "edit this page" links.
editUrl:
'https://github.com/eclipse-tractusx/eclipse-tractusx.github.io/tree/main/',
},
theme: {
customCss: require.resolve('./src/css/custom.css'),
},
}),
],
],
plugins: [
[
"docusaurus-plugin-remote-content",
{
// options here
name: "bpdm", // used by CLI, must be path safe
sourceBaseUrl: "https://raw.githubusercontent.com/eclipse-tractusx/bpdm/main/docs/api/", // the base url for the markdown (gets prepended to all of the documents when fetching)
outDir: "openApi/bpdm", // the base directory to output to.
documents: ["pool.yaml"], // the file names to download
noRuntimeDownloads: true
},
],
[
"docusaurus-plugin-remote-content",
{
// options here
name: "irs", // used by CLI, must be path safe
sourceBaseUrl: "https://raw.githubusercontent.com/eclipse-tractusx/item-relationship-service/main/api/", // the base url for the markdown (gets prepended to all of the documents when fetching)
outDir: "openApi/irs", // the base directory to output to.
documents: ["irs-v1.0.yaml"], // the file names to download
noRuntimeDownloads: true
},
],
// [
// "docusaurus-plugin-remote-content",
// {
// // options here
// name: "irs-admin-documentation", // used by CLI, must be path safe
// sourceBaseUrl: "https://raw.githubusercontent.com/eclipse-tractusx/item-relationship-service/gh-pages/docs/administration/", // the base url for the markdown (gets prepended to all of the documents when fetching)
// outDir: "docs/kits/Data Chain Kit/Documentation", // the base directory to output to.
// documents: ["administration-guide.md"], // the file names to download
// noRuntimeDownloads: true
// },
// ],
// [
// "docusaurus-plugin-remote-content",
// {
// // options here
// name: "irs-arc-documentation", // used by CLI, must be path safe
// sourceBaseUrl: "https://raw.githubusercontent.com/eclipse-tractusx/item-relationship-service/gh-pages/docs/administration/arc42/", // the base url for the markdown (gets prepended to all of the documents when fetching)
// outDir: "docs/kits/Data Chain Kit/Documentation", // the base directory to output to.
// documents: ["full.md"], // the file names to download
// noRuntimeDownloads: true
// },
// ],
[
'docusaurus-plugin-openapi-docs',
{
id: "bpdm-pool",
docsPluginId: "classic",
config: {
siteController: { // Note: petstore key is treated as the <id> and can be used to specify an API doc instance when using CLI commands
specPath: "./openApi/bpdm/pool.yaml", // Path to designated spec file
outputDir: "./docs/kits/Business Partner Kit/Software Development View/Pool Api", // Output directory for generated .mdx docs
sidebarOptions: {
groupPathsBy: "tag",
},
}
},
}
],
[
'docusaurus-plugin-openapi-docs',
{
id: "irs-pool",
docsPluginId: "classic",
config: {
siteController: { // Note: petstore key is treated as the <id> and can be used to specify an API doc instance when using CLI commands
specPath: "./openApi/irs/irs-v1.0.yaml", // Path to designated spec file
outputDir: "./docs/kits/Data Chain Kit/Software Development View/Job Api", // Output directory for generated .mdx docs
sidebarOptions: {
groupPathsBy: "tag",
},
}
},
}
]
],
themes: ["docusaurus-theme-openapi-docs"], // Allows use of @theme/ApiItem and other components
themeConfig:
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
({
colorMode: {
defaultMode: 'dark',
disableSwitch: true,
respectPrefersColorScheme: false,
},
navbar: {
title: 'Eclipse Tractus-X',
logo: {
alt: 'Eclipse Tractus-X logo',
src: 'img/logo_tractus-x.svg',
},
items: [
{
to: "/",
exact: true,
position: "left",
label: "Home",
},
{to: 'blog', label: 'News', position: 'left'},
{
to: "/aboutus",
position: "left",
label: "About Us",
},
{
to: "/developer",
position: "left",
label: "KITs",
},
// {
// type: 'doc',
// docId: 'introduction',
// position: 'left',
// label: 'Documentation',
// },
{
type: 'doc',
docId: 'developer',
position: 'left',
label: 'Developer Hub',
},
{
to: "/community",
position: "left",
label: "Community",
},
{
to: "/versions",
position: "left",
label: "Versions",
},
/* {to: '/blog', label: 'Blog', position: 'left'}, */
{
href: 'https://github.com/eclipse-tractusx/eclipse-tractusx.github.io',
label: 'GitHub',
position: 'right',
},
],
},
footer: {
style: 'dark',
links: [
{
title: 'Eclipse Foundation',
items: [
{
label: "Main Eclipse Foundation website",
href: "http://www.eclipse.org",
},
{
label: "Privacy policy",
href: "http://www.eclipse.org/legal/privacy.php",
},
{
label: "Website terms of use",
href: "http://www.eclipse.org/legal/termsofuse.php",
},
{
label: "Copyright agent",
href: "http://www.eclipse.org/legal/copyright.php",
},
{
label: "Legal",
href: "http://www.eclipse.org/legal",
},
],
},
{
title: 'Community',
items: [
{
label: "Eclipse Foundation project",
href: "https://projects.eclipse.org/projects/automotive.tractusx",
},
{
label: "GitHub Organization",
href: "https://github.com/eclipse-tractusx",
},
{
label: "Catena-X Automotive Network",
href: "https://catena-x.net/",
},
{
label: "Icons used from svgrepo with CC0 License",
href: "https://www.svgrepo.com/",
},
],
},
{
title: 'Useful Links',
items: [
{
label: "Report a Bug",
href: "https://bugs.eclipse.org/bugs",
},
{
label: "Documentation",
href: "https://help.eclipse.org/latest/index.jsp",
},
{
label: "How to Contribute",
href: "https://www.eclipse.org/contribute/",
},
{
label: "Mailing Lists",
href: "https://accounts.eclipse.org/mailing-list",
},
{
label: "Forums",
href: "https://www.eclipse.org/forums/",
},
],
},
{
items: [
{
html: `
<img src='/img/EF_registered_wht_png.png'/>
`
}
]
}
],
copyright: `Copyright © ${new Date().getFullYear()} Eclipse Tractus-X. Built with Docusaurus.`,
},
prism: {
theme: lightCodeTheme,
darkTheme: darkCodeTheme,
},
}),
};
module.exports = config;