-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheventcatalog.config.js
More file actions
100 lines (88 loc) · 3.81 KB
/
Copy patheventcatalog.config.js
File metadata and controls
100 lines (88 loc) · 3.81 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
import path from 'path';
import url from 'url';
const __dirname = path.dirname(url.fileURLToPath(import.meta.url));
/** @type {import('@eventcatalog/core/bin/eventcatalog.config').Config} */
export default {
title: 'OurLogix',
tagline: 'A comprehensive logistics and shipping management company',
organizationName: 'OurLogix',
homepageLink: 'https://eventcatalog.dev/',
landingPage: '',
editUrl: 'https://github.com/boyney123/eventcatalog-demo/edit/master',
trailingSlash: false,
base: '/',
logo: {
alt: 'EventCatalog Logo',
src: '/logo.png',
text: 'OurLogix',
},
docs: {
sidebar: {
showPageHeadings: true,
},
},
generators: [
// ──────────────────────────────────────────────
// YAML mode: read local compass.yml files
// ──────────────────────────────────────────────
[
'@ismaelmartinez/generator-atlassian-compass-event-catalog',
{
// List of local compass.yml files to process
services: [
{
path: path.join(__dirname, 'src', 'test', 'my-service-compass.yml'),
version: '0.0.1', // optional, defaults to '0.0.0'
// id: 'custom-service-id', // optional, overrides name from YAML
},
{
path: path.join(__dirname, 'src', 'test', 'my-application-compass.yml'),
},
],
// Required: base URL for Compass component links
compassUrl: 'https://mysite.atlassian.net/compass',
// Optional: group services under a domain (created if it doesn't exist)
domain: { id: 'orders', name: 'Orders Domain', version: '0.0.1' },
// Optional: only process components of these types
// typeFilter: ['SERVICE', 'APPLICATION'],
// Optional: skip updating services that already exist in the catalog
// overrideExisting: false,
// Optional: output format — 'mdx' (default) or 'md'
// format: 'md',
// Optional: how service IDs are derived — 'name' (default), 'compass-id', or a function
// serviceIdStrategy: 'name',
// serviceIdStrategy: (config) => `prefix-${config.name}`,
// Optional: custom markdown template for service pages
// markdownTemplate: (config, dependencies) => {
// const depList = dependencies.map(d => d.name).join(', ') || 'none';
// return `# ${config.name}\n\nDepends on: ${depList}`;
// },
// Optional: preview changes without writing files
// dryRun: true,
// Optional: enable debug logging (credentials are redacted)
// debug: true,
},
],
// ──────────────────────────────────────────────
// API mode: fetch components from Compass GraphQL API
// ──────────────────────────────────────────────
// [
// '@ismaelmartinez/generator-atlassian-compass-event-catalog',
// {
// api: {
// cloudId: '$COMPASS_CLOUD_ID', // supports $ENV_VAR syntax
// apiToken: '$COMPASS_API_TOKEN',
// email: '$COMPASS_EMAIL',
// baseUrl: 'https://mysite.atlassian.net', // must be HTTPS
// typeFilter: ['SERVICE'], // optional server-side filtering
// },
//
// compassUrl: 'https://mysite.atlassian.net/compass',
//
// // All the same options as YAML mode are available:
// // domain, typeFilter, overrideExisting, format,
// // serviceIdStrategy, markdownTemplate, dryRun, debug
// },
// ],
],
};