forked from eclipse-tractusx/eclipse-tractusx.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docusaurus.config.js
582 lines (572 loc) · 20.9 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
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
// @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-min.ico',
markdown: {
mermaid: true,
},
// 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: {
routeBasePath: 'docs',
path: '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 MULTI-INSTANCE PLUGIN--------------
[
'@docusaurus/plugin-content-docs',
{
id: 'docs-kits',
path: 'docs-kits',
routeBasePath: 'docs-kits',
sidebarPath: require.resolve('./sidebarsDocsKits.js'),
docLayoutComponent: "@theme/DocPage",
docItemComponent: "@theme/ApiItem" // Derived from docusaurus-theme-openapi-docs
},
],
// -- Community --
[
'@docusaurus/plugin-content-blog',
{
id: 'blog-meeting-minutes',
path: 'blog-meeting-minutes',
blogTitle: 'Open meeting minutes',
blogDescription: 'This blog hosts meeting minutes that summarize our open meetings',
blogSidebarCount: 10,
blogSidebarTitle: "Recent meetings",
routeBasePath: 'community/meeting-minutes',
showReadingTime: false,
authorsMapPath: 'authors.yaml' // relative path. File used is therefore /blog-meeting-minutes/authors.yaml
},
],
[
'@docusaurus/plugin-content-docs',
{
id: 'docs-community',
path: 'community',
routeBasePath: 'community',
editUrl: 'https://github.com/eclipse-tractusx/eclipse-tractusx.github.io/community',
sidebarPath: './sidebarsCommunity.js',
},
],
[
// HINT: won't redirect in local dev mode (npm start). See: https://docusaurus.io/docs/2.x/api/plugins/@docusaurus/plugin-client-redirects
// to test, use npm run build && npm run serve
'@docusaurus/plugin-client-redirects',
{
redirects: [
{
to: '/community/intro',
from: '/community',
},
// Redirect from multiple old paths to the new path
{
to: '/docs/release/',
from: ['/docs/release/trg-2/trg-2-2', '/docs/release/trg-3/trg-3-1'],
},
],
},
],
// ------------DOCUSAURUS PLUGIN REMOTE CONTENT----------------
[
"docusaurus-plugin-remote-content",
{
// options here
id: "remoteBpdm",
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
id: "remoteIrs",
name: "irs", // used by CLI, must be path safe
sourceBaseUrl: "https://raw.githubusercontent.com/eclipse-tractusx/item-relationship-service/main/docs/src/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-api.yaml"], // the file names to download
noRuntimeDownloads: true
},
],
[
"docusaurus-plugin-remote-content",
{
// options here
id: "remoteChangelog",
name: "changelog", // used by CLI, must be path safe
sourceBaseUrl: "https://raw.githubusercontent.com/eclipse-tractusx/tractus-x-release/main/", // the base url for the markdown (gets prepended to all of the documents when fetching)
outDir: "src/pages", // the base directory to output to.
documents: ["CHANGELOG.md"], // the file names to download
noRuntimeDownloads: true
},
],
[
"docusaurus-plugin-remote-content",
{
// options here
id: "discoveryFinderOpenapi",
name: "discoveryFinder", // used by CLI, must be path safe
sourceBaseUrl: "https://semantics.int.demo.catena-x.net/discoveryfinder/", // the base url for the markdown (gets prepended to all of the documents when fetching)
outDir: "openApi/dt", // the base directory to output to.
documents: ["discovery-finder-openapi.yaml"], // the file names to download
noRuntimeDownloads: false
},
],
[
"docusaurus-plugin-remote-content",
{
// options here
id: "bpnDiscoveryOpenapi",
name: "bpnDiscovery", // used by CLI, must be path safe
sourceBaseUrl: "https://semantics.int.demo.catena-x.net/bpndiscovery/", // the base url for the markdown (gets prepended to all of the documents when fetching)
outDir: "openApi/dt", // the base directory to output to.
documents: ["bpn-discovery-service-openapi.yaml"], // the file names to download
noRuntimeDownloads: true
},
],
// ------------DOCUSAURUS PLUGIN OPEN API DOCS---------------------
[
'docusaurus-plugin-openapi-docs',
{
id: "docs-kits",
docsPluginId: "docs-kits",
config: {
bpdm_gate: {
specPath: "./openApi/bpdm/gate.yaml",
outputDir: "./docs-kits/kits/Business Partner Kit/Software Development View/Gate Api",
sidebarOptions: {
groupPathsBy: "tag",
},
},
bpdm_pool: {
specPath: "./openApi/bpdm/pool.yaml",
outputDir: "./docs-kits/kits/Business Partner Kit/Software Development View/Pool Api",
sidebarOptions: {
groupPathsBy: "tag",
},
},
bpdm_bridge: {
specPath: "./openApi/bpdm/bridge-dummy.yaml",
outputDir: "./docs-kits/kits/Business Partner Kit/Software Development View/Bridge Dummy Api",
sidebarOptions: {
groupPathsBy: "tag",
},
},
bpdm_cleaning: {
specPath: "./openApi/bpdm/cleaning-dummy.yaml",
outputDir: "./docs-kits/kits/Business Partner Kit/Software Development View/Cleaning Dummy Api",
sidebarOptions: {
groupPathsBy: "tag",
},
},
bpdm_orchestrator: {
specPath: "./openApi/bpdm/orchestrator.yaml",
outputDir: "./docs-kits/kits/Business Partner Kit/Software Development View/Orchestrator Api",
sidebarOptions: {
groupPathsBy: "tag",
},
},
irs: {
specPath: "./openApi/irs/irs-api.yaml",
outputDir: "./docs-kits/kits/Data Chain Kit/Software Development View/Job Api",
sidebarOptions: {
groupPathsBy: "tag",
},
},
traceability_notifications: {
specPath: "./openApi/traceability/notifications.yaml",
outputDir: "./docs-kits/kits/Traceability Kit/Software Development View/Notification API",
sidebarOptions: {
groupPathsBy: "tag",
},
},
traceability_unique_id_push: {
specPath: "./openApi/traceability/unique-id-push.yaml",
outputDir: "./docs-kits/kits/Traceability Kit/Software Development View/Unique ID Push API",
sidebarOptions: {
groupPathsBy: "tag",
},
},
tractusx_edc_api: {
specPath: "./openApi/edc/tractusx-edc-0.5.1-SNAPSHOT.yaml", // Path to designated spec file
outputDir:
"./docs-kits/kits/tractusx-edc/docs/kit/development-view/openAPI/tractusx-edc-api", // Output directory for generated .mdx docs
sidebarOptions: {
groupPathsBy: "tag",
},
},
dt_discovery_finder: {
specPath: "./openApi/dt/discovery-finder-openapi.yaml", // Path to designated spec file
outputDir:
"./docs-kits/kits/Digital Twin Kit/Software Development View/API Discovery Finder/", // Output directory for generated .mdx docs
sidebarOptions: {
groupPathsBy: "tag",
},
},
dt_bpn_discovery: {
specPath: "./openApi/dt/bpn-discovery-service-openapi.yaml", // Path to designated spec file
outputDir:
".docs-kits/kits/Digital Twin Kit/Software Development View/API AAS Discovery/", // Output directory for generated .mdx docs
sidebarOptions: {
groupPathsBy: "tag",
},
},
dt_edc_discovery: {
specPath: "./openApi/dt/edc-discovery-service-openapi.json", // Path to designated spec file
outputDir:
"./docs-kits/kits/Digital Twin Kit/Software Development View/API EDC Discovery/", // Output directory for generated .mdx docs
sidebarOptions: {
groupPathsBy: "tag",
},
},
dt_submodel: {
specPath: "./openApi/dt/submodel-service-ssp003-openapi.yaml", // Path to designated spec file
outputDir:
"./docs-kits/kits/Digital Twin Kit/Software Development View/API Submodel/", // Output directory for generated .mdx docs
sidebarOptions: {
groupPathsBy: "tag",
},
},
dt_registry: {
specPath: "./openApi/dt/registry-service-ssp002-openapi.yaml", // Path to designated spec file
outputDir:
"./docs-kits/kits/Digital Twin Kit/Software Development View/API AAS Registry/", // Output directory for generated .mdx docs
sidebarOptions: {
groupPathsBy: "tag",
},
},
dt_aas_discovery: {
specPath: "./openApi/dt/discovery-service-ssp001-openapi.yaml", // Path to designated spec file
outputDir:
"./docs-kits/kits/Digital Twin Kit/Software Development View/API AAS Discovery/", // Output directory for generated .mdx docs
sidebarOptions: {
groupPathsBy: "tag",
},
},
pcf_exchange_api: {
specPath: "./openApi/pcf/catena-x-pcf-endpoint-0_0_3.yaml", // Path to designated spec file
outputDir:
"./docs-kits/kits/PCF Exchange Kit/Software Development View/pcf-exchange-api/",
sidebarOptions: {
groupPathsBy: "tag",
},
},
resiliency_osim: {
specPath: "./openApi/resiliency/simulation-result.yaml", // Path to designated spec file
outputDir:
"./docs-kits/kits/OSim Kit/Software Development View/", // Output directory for generated .mdx docs
sidebarOptions: {
groupPathsBy: "tag",
},
},
resiliency_mp_provider: {
specPath:
'./openApi/resiliency/modular-production/openapispec-provider.yaml', // Path to designated spec file
outputDir:
'./docs-kits/kits/Modular Production Kit/Software Development View/Provider/', // Output directory for generated .mdx docs
sidebarOptions: {
groupPathsBy: 'tag',
},
},
resiliency_mp_consumer: {
specPath:
'./openApi/resiliency/modular-production/openapispec-consumer.yaml', // Path to designated spec file
outputDir:
'./docs-kits/kits/Modular Production Kit/Software Development View/Consumer/', // Output directory for generated .mdx docs
sidebarOptions: {
groupPathsBy: 'tag',
},
},
},
},
],
],
themes: ["docusaurus-theme-openapi-docs", "@docusaurus/theme-mermaid"], // Allows use of @theme/ApiItem and other components
themeConfig:
/** @type {import('@docusaurus/preset-classic').ThemeConfig} */
({
colorMode: {
defaultMode: 'dark',
disableSwitch: true,
respectPrefersColorScheme: false,
},
algolia: {
apiKey: 'a97c5de3a563a32884153d3a84568be1',
indexName: 'eclipse-tractusxio',
appId: '5EEK7E23IM',
},
navbar: {
title: 'Eclipse Tractus-X',
logo: {
alt: 'Eclipse Tractus-X logo',
src: 'img/logo_tractus-x.svg',
},
items: [
{to: 'blog', label: 'News', position: 'left'},
{
to: "/aboutus",
position: "left",
label: "About Us",
},
{
type: 'dropdown',
label: 'KITs',
position: 'left',
to: '/Kits',
items: [
{
to: '/docs-kits/kits/knowledge-agents/adoption-view/intro',
label: 'Agents',
},
{
to: '/docs-kits/kits/Business%20Partner%20Kit/Adoption%20View',
label: 'Business Partner',
},
{
to: '/docs-kits/kits/Circularity_KIT/page-adoption-view',
label: 'Circularity',
},
{
to: '/docs-kits/kits/tractusx-edc/docs/kit/adoption-view/Adoption%20View',
label: 'Connector',
},
{
to: '/docs-kits/kits/Data%20Chain%20Kit/Adoption%20View%20Data%20Chain%20Kit',
label: 'Data Chain',
},
{
to: '/docs-kits/kits/DCM%20Kit/adoption-view',
label: 'DCM KIT',
},
{
to: '/docs-kits/kits/Digital%20Twin%20Kit/Adoption%20View%20Digital%20Twin%20Kit',
label: 'Digital Twin',
},
{
to: '/docs-kits/kits/Eco_Pass_KIT/page-adoption-view',
label: 'Eco Pass',
},
{
to: '/docs-kits/kits/Behaviour%20Twin%20HI%20Kit/Adoption%20View%20Health%20Indicator%20Kit',
label: 'Health Indicator',
},
{
to: '/docs-kits/kits/Behaviour%20Twin%20MDP%20Kit/Adoption%20View%20Model%20Based%20Development%20and%20Data%20Processing%20Kit',
label: 'Model Based Development',
},
{
to: '/docs-kits/kits/Modular%20Production%20Kit/Adoption%20View%20Modular%20Production%20Kit',
label: 'Modular Production',
},
{
to: '/docs-kits/kits/OSim%20Kit/Adoption%20View%20OSim%20Kit',
label: 'Online Simulation',
},
{
to: '/docs-kits/kits/PCF%20Exchange%20Kit/Adoption%20View',
label: 'PCF Exchange',
},
{
to: '/docs-kits/kits/Quality-Kit/Adoption%20View%20Quality%20Kit',
label: 'Quality',
},
{
to: '/docs-kits/kits/Behaviour%20Twin%20RuL%20Kit/Adoption%20View%20Remaining%20Useful%20Life%20Kit',
label: 'Remaining Useful Life',
},
{
to: '/docs-kits/kits/Traceability%20Kit/Business%20View%20Traceability%20Kit',
label: 'Traceability',
},
{
to: 'docs-kits/kits/Resiliency/',
label: 'Upcoming KITs',
}
],
},
{
type: 'doc',
docId: 'developer',
position: 'left',
label: 'Developer Hub',
},
{
type: 'doc',
docId: 'tutorials',
position: 'left',
label: 'Tutorials',
},
{
to: '/community/intro',
label: 'Community',
position: 'left',
},
{
type: 'dropdown',
label: 'Versions',
position: 'left',
items: [
{
to: '/release-information',
label: 'Release Information',
},
{
to: '/CHANGELOG',
label: 'Change Log',
},
],
},
{
type: 'docsVersionDropdown',
docsPluginId: 'docs-kits',
position: 'right'
},
{
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 alt='' 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;