@eventcatalog/core 4.1.3 → 4.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/analytics/analytics.cjs +1 -1
- package/dist/analytics/analytics.js +2 -2
- package/dist/analytics/log-build.cjs +1 -1
- package/dist/analytics/log-build.js +3 -3
- package/dist/{chunk-TUKKXNQR.js → chunk-B3HQOT3D.js} +1 -1
- package/dist/{chunk-PDQER3NQ.js → chunk-CAYWT7E4.js} +1 -1
- package/dist/{chunk-DDGOJV25.js → chunk-RAB6LGHN.js} +1 -1
- package/dist/{chunk-G3D7IZ67.js → chunk-TCK7WEEE.js} +1 -1
- package/dist/{chunk-WEDJTUSQ.js → chunk-ZLQUICJD.js} +1 -1
- package/dist/constants.cjs +1 -1
- package/dist/constants.js +1 -1
- package/dist/docs/api/02-config.md +166 -14
- package/dist/docs/api/08-code-blocks.md +1 -1
- package/dist/docs/development/00-why-eventcatalog.md +29 -40
- package/dist/docs/development/01-fundamentals.md +58 -7
- package/dist/docs/development/01-getting-started/configuration-overview.md +1 -93
- package/dist/docs/development/01-getting-started/develop-and-build.md +4 -3
- package/dist/docs/development/01-getting-started/installation.md +3 -3
- package/dist/docs/development/01-getting-started/project-structure.md +74 -141
- package/dist/docs/development/ask-your-architecture/01-intro.md +8 -76
- package/dist/docs/development/ask-your-architecture/02-eventcatalog-assistant/01-what-is-eventcatalog-assistant.md +4 -3
- package/dist/docs/development/ask-your-architecture/02-eventcatalog-assistant/02-configuration.md +2 -1
- package/dist/docs/development/ask-your-architecture/02-eventcatalog-assistant/03-bring-your-own-tools.md +1 -3
- package/dist/docs/development/ask-your-architecture/02-eventcatalog-assistant/_category_.json +2 -2
- package/dist/docs/development/{developer-tools/llms.txt.md → ask-your-architecture/02-llms.txt.md} +1 -2
- package/dist/docs/development/ask-your-architecture/03-mcp-server/_category_.json +2 -2
- package/dist/docs/development/ask-your-architecture/03-mcp-server/getting-started.md +2 -2
- package/dist/docs/development/ask-your-architecture/03-mcp-server/introduction.md +2 -25
- package/dist/docs/development/{developer-tools/schemas.txt.md → ask-your-architecture/03-schemas.txt.md} +1 -2
- package/dist/docs/development/ask-your-architecture/04-agents/01-overview.md +27 -0
- package/dist/docs/development/ask-your-architecture/04-agents/02-code-to-docs.md +124 -0
- package/dist/docs/development/ask-your-architecture/04-agents/03-breaking-changes.md +170 -0
- package/dist/docs/development/ask-your-architecture/04-agents/_category_.json +12 -0
- package/dist/docs/development/ask-your-architecture/{04-skills → 05-skills}/_category_.json +2 -2
- package/dist/docs/development/ask-your-architecture/{05-slack-integration → 06-slack-integration}/03-installation.md +1 -1
- package/dist/docs/development/ask-your-architecture/{05-slack-integration → 06-slack-integration}/_category_.json +2 -1
- package/dist/docs/development/ask-your-architecture/_category_.json +2 -2
- package/dist/docs/development/authentication/01-introduction.md +3 -3
- package/dist/docs/development/authentication/02-enabling-authentication.md +2 -2
- package/dist/docs/development/authentication/providers/03-setting-up-github.md +25 -1
- package/dist/docs/development/authentication/providers/03a-setting-up-google.md +0 -1
- package/dist/docs/development/bring-your-own-documentation/01-introduction.md +29 -25
- package/dist/docs/development/bring-your-own-documentation/custom-pages/01-introduction.md +9 -8
- package/dist/docs/development/bring-your-own-documentation/custom-pages/02-adding-custom-docs.md +70 -32
- package/dist/docs/development/bring-your-own-documentation/custom-pages/03-components.md +4 -1
- package/dist/docs/development/bring-your-own-documentation/custom-pages/04-owners.md +2 -1
- package/dist/docs/development/bring-your-own-documentation/custom-pages/_category_.json +1 -1
- package/dist/docs/development/bring-your-own-documentation/diagrams/01-introduction.md +56 -0
- package/dist/docs/development/bring-your-own-documentation/diagrams/02-creating-diagrams.md +262 -0
- package/dist/docs/development/{guides → bring-your-own-documentation}/diagrams/03-referencing-diagrams.md +3 -87
- package/dist/docs/development/bring-your-own-documentation/diagrams/05-comparing-diagrams.md +25 -0
- package/dist/docs/development/bring-your-own-documentation/diagrams/07-reference.md +144 -0
- package/dist/docs/development/{guides → bring-your-own-documentation}/diagrams/_category_.json +2 -1
- package/dist/docs/development/bring-your-own-documentation/resource-docs/01-introduction.md +2 -4
- package/dist/docs/development/bring-your-own-documentation/resource-docs/02-adding-resource-docs.md +138 -43
- package/dist/docs/development/bring-your-own-documentation/resource-docs/03-categories.md +38 -9
- package/dist/docs/development/bring-your-own-documentation/resource-docs/04-versioning.md +62 -13
- package/dist/docs/development/components/04-snippets.md +0 -2
- package/dist/docs/development/components/05-using-components.md +4 -16
- package/dist/docs/development/components/07-resource-references.md +1 -1
- package/dist/docs/development/components/_category_.json +3 -3
- package/dist/docs/development/components/components/01-accordian.md +1 -1
- package/dist/docs/development/components/components/03-admonitions.md +1 -1
- package/dist/docs/development/components/components/04-agent-tools.md +2 -2
- package/dist/docs/development/components/components/05-attachments.md +1 -1
- package/dist/docs/development/components/components/07-design.md +1 -2
- package/dist/docs/development/components/components/08-entitymap.md +2 -2
- package/dist/docs/development/components/components/09-flow.md +1 -1
- package/dist/docs/development/components/components/10-link.md +1 -1
- package/dist/docs/development/components/components/11-mermaid-file-loader.md +1 -1
- package/dist/docs/development/components/components/12-message-table.md +1 -1
- package/dist/docs/development/components/components/13-nodegraph.md +1 -1
- package/dist/docs/development/components/components/14-openapi.md +3 -3
- package/dist/docs/development/components/components/15-prompt.md +2 -6
- package/dist/docs/development/components/components/16-remote-schema.md +5 -3
- package/dist/docs/development/components/components/17-resource-group-table.md +1 -1
- package/dist/docs/development/components/components/18-resource-link.md +1 -1
- package/dist/docs/development/components/components/19-schema.md +1 -1
- package/dist/docs/development/components/components/20-schema-viewer.md +1 -1
- package/dist/docs/development/components/components/21-steps.md +1 -1
- package/dist/docs/development/components/components/22-tabs.md +1 -1
- package/dist/docs/development/components/components/23-tiles.md +1 -1
- package/dist/docs/development/components/components/24-visibility.md +1 -1
- package/dist/docs/development/components/components/_category_.json +1 -1
- package/dist/docs/development/components/custom-components/01-introduction.md +74 -0
- package/dist/docs/development/components/custom-components/02-create-your-first-component.md +71 -0
- package/dist/docs/development/components/custom-components/03-pass-data-into-components.md +86 -0
- package/dist/docs/development/components/custom-components/04-fetch-data-in-components.md +191 -0
- package/dist/docs/development/components/custom-components/05-style-components.md +60 -0
- package/dist/docs/development/components/custom-components/06-add-client-side-scripts.md +67 -0
- package/dist/docs/development/components/custom-components/07-reference.md +115 -0
- package/dist/docs/development/components/custom-components/_category_.json +11 -0
- package/dist/docs/development/components/{external-diagram-embeds/03-drawio.md → diagram-syntax/01-drawio.md} +2 -3
- package/dist/docs/development/components/{external-diagram-embeds/04-figjam.md → diagram-syntax/02-figjam.md} +1 -2
- package/dist/docs/development/components/diagram-syntax/{04-icepanel.md → 03-icepanel.md} +1 -2
- package/dist/docs/development/components/diagram-syntax/04-likec4.md +136 -0
- package/dist/docs/development/components/{external-diagram-embeds/02-lucid.md → diagram-syntax/05-lucid.md} +2 -3
- package/dist/docs/development/components/diagram-syntax/{01-mermaid.md → 06-mermaid.md} +1 -1
- package/dist/docs/development/components/{external-diagram-embeds/01-miro.md → diagram-syntax/07-miro.md} +2 -3
- package/dist/docs/development/components/diagram-syntax/{02-plantuml.md → 08-plantuml.md} +3 -3
- package/dist/docs/development/components/diagram-syntax/{03-structurizr.md → 09-structurizr.md} +1 -1
- package/dist/docs/development/components/diagram-syntax/_category_.json +3 -3
- package/dist/docs/development/customization/01-customize-landing-page.md +7 -15
- package/dist/docs/development/customization/02-themes.md +1 -0
- package/dist/docs/development/customization/03-application-sidebar.md +246 -0
- package/dist/docs/development/customization/03-search.md +2 -2
- package/dist/docs/development/customization/{customize-sidebars/01-documentation-sidebar.md → 04-documentation-sidebar.md} +4 -4
- package/dist/docs/development/customization/05-custom-pages-and-api-routes/01-introduction.md +94 -0
- package/dist/docs/development/customization/05-custom-pages-and-api-routes/02-create-a-custom-page.md +177 -0
- package/dist/docs/development/customization/05-custom-pages-and-api-routes/03-create-an-api-route.md +128 -0
- package/dist/docs/development/customization/05-custom-pages-and-api-routes/04-reference.md +138 -0
- package/dist/docs/development/customization/05-custom-pages-and-api-routes/_category_.json +12 -0
- package/dist/docs/development/customization/06-customize-tables.md +3 -3
- package/dist/docs/development/customization/07-resource-icons.md +190 -0
- package/dist/docs/development/customization/_category_.json +1 -1
- package/dist/docs/development/customization/customize-visualizer/_category_.json +2 -2
- package/dist/docs/development/deployment/hosting-options.md +1 -2
- package/dist/docs/development/developer-tools/api-catalog.md +1 -1
- package/dist/docs/development/developer-tools/eventcatalog-linter.md +137 -2
- package/dist/docs/development/governance/_category_.json +1 -0
- package/dist/docs/development/governance/architecture-change-detection/01-introduction.md +2 -2
- package/dist/docs/development/guides/98-versioning-resources.md +192 -0
- package/dist/docs/development/guides/99-adding-analytics.md +0 -1
- package/dist/docs/development/guides/changelogs/02-adding-changelogs.md +2 -2
- package/dist/docs/development/guides/changelogs/03-automated-changelogs.md +2 -2
- package/dist/docs/development/guides/changelogs/04-reference.md +77 -0
- package/dist/docs/development/guides/changelogs/_category_.json +2 -2
- package/dist/docs/development/guides/domains/01-introduction.md +14 -9
- package/dist/docs/development/guides/domains/{02-creating-domains/02-adding-domains.md → 02-create-domain.md} +32 -16
- package/dist/docs/development/guides/domains/{02-creating-domains/02a-subdomains.md → 03-model-subdomains.md} +22 -10
- package/dist/docs/development/guides/domains/03-ownership-and-language/01-owners.md +1 -1
- package/dist/docs/development/guides/domains/03-ownership-and-language/02-adding-ubiquitous-language.md +2 -6
- package/dist/docs/development/guides/domains/03-ownership-and-language/_category_.json +2 -2
- package/dist/docs/development/guides/domains/04-add-resources-to-domains/01-add-systems-to-domains.md +154 -0
- package/dist/docs/development/guides/domains/{02-creating-domains/03-adding-services-to-domains.md → 04-add-resources-to-domains/02-add-services-to-domains.md} +6 -37
- package/dist/docs/development/guides/domains/{02-creating-domains/04-adding-messages-to-domains.md → 04-add-resources-to-domains/03-add-messages-to-domains.md} +4 -6
- package/dist/docs/development/guides/domains/{02-creating-domains/05-adding-data-products-to-domains.md → 04-add-resources-to-domains/04-add-data-products-to-domains.md} +6 -5
- package/dist/docs/development/guides/domains/04-add-resources-to-domains/05-add-entities-to-domains.md +115 -0
- package/dist/docs/development/guides/domains/04-add-resources-to-domains/_category_.json +11 -0
- package/dist/docs/development/guides/domains/{08-domain-integration-map.md → 06-visualize-domains/01-domain-integration-map.md} +5 -6
- package/dist/docs/development/guides/domains/06-visualize-domains/_category_.json +12 -0
- package/dist/docs/development/guides/domains/{04-versioning-and-changelogs/01-versioning.md → 07-version-domains.md} +5 -6
- package/dist/docs/development/guides/domains/{04-versioning-and-changelogs/02-changelog.md → 08-add-changelog.md} +6 -7
- package/dist/docs/development/guides/domains/09-reference.md +517 -0
- package/dist/docs/development/guides/owners/01-what-are-teams-and-users.md +46 -0
- package/dist/docs/development/guides/owners/02-create-team.md +110 -0
- package/dist/docs/development/guides/owners/03-create-user.md +99 -0
- package/dist/docs/development/guides/owners/05-teams-reference.md +144 -0
- package/dist/docs/development/guides/owners/06-users-reference.md +128 -0
- package/dist/docs/development/guides/owners/_category_.json +2 -2
- package/dist/docs/development/guides/owners/automated-teams-and-users/_category_.json +11 -0
- package/dist/docs/development/guides/owners/automated-teams-and-users/create-your-own-connector.md +108 -0
- package/dist/docs/development/guides/owners/automated-teams-and-users/sync-from-github.md +156 -0
- package/dist/docs/development/guides/owners/automated-teams-and-users/sync-from-microsoft-entra.md +253 -0
- package/dist/docs/development/guides/resources/_category_.json +11 -0
- package/dist/docs/development/guides/resources/adrs/01-introduction.md +37 -0
- package/dist/docs/development/guides/resources/adrs/02-creating-adrs.md +211 -0
- package/dist/docs/development/guides/resources/adrs/03-linking-resources.md +52 -0
- package/dist/docs/development/guides/resources/adrs/04-relationships.md +80 -0
- package/dist/docs/development/guides/resources/adrs/06-reference.md +247 -0
- package/dist/docs/development/guides/resources/adrs/_category_.json +11 -0
- package/dist/docs/development/guides/{agents → resources/agents}/01-introduction.md +1 -16
- package/dist/docs/development/guides/resources/agents/02-create-agent.md +188 -0
- package/dist/docs/development/guides/{agents → resources/agents}/03-adding-tools.md +3 -4
- package/dist/docs/development/guides/{agents → resources/agents}/04-model-metadata.md +2 -2
- package/dist/docs/development/guides/{agents/adding-to-agents/01-messages.md → resources/agents/05-add-messages-to-agents.md} +5 -4
- package/dist/docs/development/guides/{agents/adding-to-agents/02-datastores.md → resources/agents/06-add-data-stores-to-agents.md} +4 -15
- package/dist/docs/development/guides/resources/agents/11-reference.md +238 -0
- package/dist/docs/development/guides/{agents → resources/agents}/_category_.json +2 -2
- package/dist/docs/development/guides/resources/data/01-introduction.md +15 -0
- package/dist/docs/development/guides/resources/data/02-adding-data.md +184 -0
- package/dist/docs/development/guides/resources/data/03-add-read-write-relationships.md +128 -0
- package/dist/docs/development/guides/resources/data/04-reference.md +211 -0
- package/dist/docs/development/guides/{data → resources/data}/_category_.json +3 -3
- package/dist/docs/development/guides/{data-products → resources/data-products}/01-introduction.md +1 -17
- package/dist/docs/development/guides/resources/data-products/02-adding-data-products.md +174 -0
- package/dist/docs/development/guides/{data-products → resources/data-products}/03-inputs-and-outputs.md +4 -6
- package/dist/docs/development/guides/{data-products → resources/data-products}/04-contracts.md +2 -4
- package/dist/docs/development/guides/resources/data-products/07-reference.md +201 -0
- package/dist/docs/development/guides/{data-products → resources/data-products}/_category_.json +3 -3
- package/dist/docs/development/guides/resources/entities/01-introduction.md +26 -0
- package/dist/docs/development/guides/resources/entities/02-create-entity.md +162 -0
- package/dist/docs/development/guides/resources/entities/03-model-entity-relationships.md +115 -0
- package/dist/docs/development/guides/resources/entities/04-add-entities-to-resources.md +188 -0
- package/dist/docs/development/guides/resources/entities/05-entity-maps.md +48 -0
- package/dist/docs/development/guides/resources/entities/06-reference.md +273 -0
- package/dist/docs/development/guides/{domains/05-entities → resources/entities}/_category_.json +4 -4
- package/dist/docs/development/guides/resources/flows/01-introduction.md +28 -0
- package/dist/docs/development/guides/resources/flows/02-create-flow.md +304 -0
- package/dist/docs/development/guides/{flows/03-flow-nodes.md → resources/flows/03-model-flow-steps.md} +6 -6
- package/dist/docs/development/guides/resources/flows/04-add-flows-to-resources.md +149 -0
- package/dist/docs/development/guides/resources/flows/06-reference.md +226 -0
- package/dist/docs/development/guides/{flows → resources/flows}/_category_.json +3 -3
- package/dist/docs/development/guides/resources/messages/01-what-are-messages.md +104 -0
- package/dist/docs/development/guides/{messages/events/01-introduction.md → resources/messages/02-message-types/01-events.md} +3 -7
- package/dist/docs/development/guides/{messages/commands/01-introduction.md → resources/messages/02-message-types/02-commands.md} +4 -7
- package/dist/docs/development/guides/resources/messages/02-message-types/03-queries.md +20 -0
- package/dist/docs/development/guides/resources/messages/02-message-types/_category_.json +11 -0
- package/dist/docs/development/guides/resources/messages/03-create-messages/01-create-event.md +137 -0
- package/dist/docs/development/guides/resources/messages/03-create-messages/02-create-command.md +156 -0
- package/dist/docs/development/guides/resources/messages/03-create-messages/03-create-query.md +158 -0
- package/dist/docs/development/guides/{messages/common/02-draft-messages.md → resources/messages/03-create-messages/04-create-draft-message.md} +5 -7
- package/dist/docs/development/guides/resources/messages/03-create-messages/_category_.json +11 -0
- package/dist/docs/development/guides/resources/messages/04-connect-messages/01-map-producers-and-consumers.md +32 -0
- package/dist/docs/development/guides/resources/messages/04-connect-messages/02-shared-messages-across-boundaries.md +170 -0
- package/dist/docs/development/guides/{messages/common/09-grouping-messages.md → resources/messages/04-connect-messages/03-group-messages.md} +2 -4
- package/dist/docs/development/guides/resources/messages/04-connect-messages/_category_.json +11 -0
- package/dist/docs/development/guides/{channels → resources/messages/04-message-channels}/01-introduction.md +4 -28
- package/dist/docs/development/guides/{channels → resources/messages/04-message-channels}/02-adding-channels.md +77 -62
- package/dist/docs/development/guides/{channels → resources/messages/04-message-channels}/04-adding-messages-to-services.md +10 -14
- package/dist/docs/development/guides/resources/messages/04-message-channels/05-reference.md +177 -0
- package/dist/docs/development/guides/{channels → resources/messages/04-message-channels}/_category_.json +3 -3
- package/dist/docs/development/guides/{messages/common/04-versioning.md → resources/messages/08-versioning-and-lifecycle/01-version-messages.md} +39 -4
- package/dist/docs/development/guides/{messages/common/05-changelog.md → resources/messages/08-versioning-and-lifecycle/02-add-changelog.md} +5 -6
- package/dist/docs/development/guides/{messages/common/02-deprecating.md → resources/messages/08-versioning-and-lifecycle/03-deprecate-messages.md} +4 -4
- package/dist/docs/development/guides/resources/messages/08-versioning-and-lifecycle/_category_.json +11 -0
- package/dist/docs/development/guides/{messages/common/02-examples.md → resources/messages/09-add-usage-examples.md} +59 -22
- package/dist/docs/development/guides/resources/messages/10-reference.md +439 -0
- package/dist/docs/development/guides/resources/messages/_category_.json +11 -0
- package/dist/docs/development/guides/resources/schemas/01-what-are-schemas-and-specifications.md +25 -0
- package/dist/docs/development/guides/resources/schemas/02-add-schemas-to-messages.md +63 -0
- package/dist/docs/development/guides/resources/schemas/03-add-schemas-to-data-stores.md +90 -0
- package/dist/docs/development/guides/{services/adding-to-services/04-openapi.md → resources/schemas/03-add-specifications-to-services/01-add-openapi-specifications.md} +33 -24
- package/dist/docs/development/guides/{services/adding-to-services/05-asyncapi.md → resources/schemas/03-add-specifications-to-services/02-add-asyncapi-specifications.md} +33 -23
- package/dist/docs/development/guides/{services/adding-to-services/06-graphql.md → resources/schemas/03-add-specifications-to-services/03-add-graphql-schemas.md} +36 -26
- package/dist/docs/development/guides/resources/schemas/03-add-specifications-to-services/_category_.json +11 -0
- package/dist/docs/development/guides/{schemas/02-schema-explorer.md → resources/schemas/04-explore-schemas/01-schema-explorer.md} +3 -26
- package/dist/docs/development/guides/{schemas/06-fields-explorer.md → resources/schemas/04-explore-schemas/02-fields-explorer.md} +8 -10
- package/dist/docs/development/guides/{schemas/05-field-usage.md → resources/schemas/04-explore-schemas/03-consumer-field-usage.md} +1 -3
- package/dist/docs/development/guides/resources/schemas/04-explore-schemas/_category_.json +11 -0
- package/dist/docs/development/guides/{schemas/03-schema-api.md → resources/schemas/05-schema-api.md} +6 -11
- package/dist/docs/development/guides/{schemas/04-schema-mcp.md → resources/schemas/06-schema-mcp.md} +5 -6
- package/dist/docs/development/guides/resources/schemas/07-reference.md +23 -0
- package/dist/docs/development/guides/{schemas → resources/schemas}/_category_.json +3 -3
- package/dist/docs/development/guides/resources/services/01-introduction.md +27 -0
- package/dist/docs/development/guides/resources/services/02-create-service.md +195 -0
- package/dist/docs/development/guides/resources/services/03-create-external-service.md +52 -0
- package/dist/docs/development/guides/resources/services/04-add-resources-to-services/01-add-messages-to-services.md +142 -0
- package/dist/docs/development/guides/resources/services/04-add-resources-to-services/02-add-data-stores-to-services.md +45 -0
- package/dist/docs/development/guides/{services/adding-to-services/03-entities.md → resources/services/04-add-resources-to-services/03-add-entities-to-services.md} +7 -11
- package/dist/docs/development/guides/resources/services/04-add-resources-to-services/_category_.json +11 -0
- package/dist/docs/development/guides/{services/ownership-and-components/01-owners.md → resources/services/06-ownership-and-components/01-add-service-owners.md} +3 -4
- package/dist/docs/development/guides/{services/ownership-and-components/02-components.md → resources/services/06-ownership-and-components/02-use-components.md} +4 -4
- package/dist/docs/development/guides/resources/services/06-ownership-and-components/_category_.json +11 -0
- package/dist/docs/development/guides/{services/versioning-and-lifecycle/01-versioning.md → resources/services/07-versioning-and-lifecycle/01-version-services.md} +4 -3
- package/dist/docs/development/guides/{services/versioning-and-lifecycle/02-changelog.md → resources/services/07-versioning-and-lifecycle/02-add-changelog.md} +5 -5
- package/dist/docs/development/guides/{services/versioning-and-lifecycle/03-deprecating.md → resources/services/07-versioning-and-lifecycle/03-deprecate-services.md} +5 -4
- package/dist/docs/development/guides/resources/services/07-versioning-and-lifecycle/_category_.json +11 -0
- package/dist/docs/development/guides/resources/services/08-reference.md +295 -0
- package/dist/docs/development/guides/{services → resources/services}/_category_.json +3 -3
- package/dist/docs/development/guides/systems/01-introduction.md +119 -0
- package/dist/docs/development/guides/systems/02-create-system.md +127 -0
- package/dist/docs/development/guides/systems/03-add-resources-to-systems.md +157 -0
- package/dist/docs/development/guides/systems/04-model-relationships-and-actors.md +86 -0
- package/dist/docs/development/guides/systems/05-system-context-maps.md +67 -0
- package/dist/docs/development/guides/systems/06-reference.md +329 -0
- package/dist/docs/development/guides/{messages/queries → systems}/_category_.json +5 -5
- package/dist/docs/development/license-keys/_category_.json +1 -1
- package/dist/docs/development/license-keys/integrations.md +20 -9
- package/dist/docs/development/license-keys/overview.md +7 -18
- package/dist/docs/development/license-keys/plans.md +9 -18
- package/dist/docs/development/upgrading/v2.md +1 -2
- package/dist/docs/development/upgrading/v3.md +2 -3
- package/dist/docs/development/upgrading/v4.md +377 -0
- package/dist/docs/editor/00-overview.md +3 -3
- package/dist/docs/editor/01-first-edit.md +1 -1
- package/dist/docs/editor/explanation/markdown-mdx-git.md +1 -1
- package/dist/docs/editor/how-to/add-schemas-and-specifications.md +5 -5
- package/dist/docs/editor/how-to/edit-resource.md +1 -1
- package/dist/docs/editor/how-to/use-flow-editor.md +5 -5
- package/dist/docs/editor/how-to/use-slash-commands.md +2 -2
- package/dist/docs/editor/reference/supported-content.md +2 -2
- package/dist/docs/editor/reference/supported-resources.md +14 -14
- package/dist/docs/plugins/amazon-apigateway/00-intro.md +8 -8
- package/dist/docs/plugins/amazon-apigateway/01-installation.md +10 -12
- package/dist/docs/plugins/amazon-apigateway/02-plugin-configuration.md +5 -4
- package/dist/docs/plugins/apicurio/00-intro.md +8 -8
- package/dist/docs/plugins/apicurio/01-installation.md +12 -2
- package/dist/docs/plugins/apicurio/02-plugin-configuration.md +7 -9
- package/dist/docs/plugins/apicurio/03-features.md +2 -2
- package/dist/docs/plugins/asyncapi/00-intro.md +8 -8
- package/dist/docs/plugins/asyncapi/01-installation.md +10 -11
- package/dist/docs/plugins/asyncapi/02-plugin-configuration.md +5 -5
- package/dist/docs/plugins/asyncapi/03-features.md +9 -9
- package/dist/docs/plugins/aws-glue-registry/00-intro.md +8 -8
- package/dist/docs/plugins/aws-glue-registry/00a-installation.md +16 -6
- package/dist/docs/plugins/aws-glue-registry/01-features.md +2 -2
- package/dist/docs/plugins/azure-schema-registry/00-intro.md +10 -10
- package/dist/docs/plugins/azure-schema-registry/01-installation.md +15 -5
- package/dist/docs/plugins/azure-schema-registry/02-plugin-configuration.md +4 -4
- package/dist/docs/plugins/azure-schema-registry/04-examples.md +1 -1
- package/dist/docs/plugins/backstage/00-intro.md +3 -3
- package/dist/docs/plugins/backstage/01-installation.md +7 -15
- package/dist/docs/plugins/confluent-schema-registry/00-intro.md +8 -8
- package/dist/docs/plugins/confluent-schema-registry/01-installation.md +12 -4
- package/dist/docs/plugins/confluent-schema-registry/02-plugin-configuration.md +3 -3
- package/dist/docs/plugins/eventbridge/00a-installation.md +21 -21
- package/dist/docs/plugins/eventbridge/01-features.md +3 -3
- package/dist/docs/plugins/eventbridge/03-api.md +5 -5
- package/dist/docs/plugins/eventcatalog-federation/00-introduction.md +6 -6
- package/dist/docs/plugins/eventcatalog-federation/01-installation.md +10 -11
- package/dist/docs/plugins/eventcatalog-federation/04-configuration.md +2 -2
- package/dist/docs/plugins/eventcatalog-federation/05-setup-team-catalog.md +5 -6
- package/dist/docs/plugins/github/00-intro.md +8 -8
- package/dist/docs/plugins/github/01-installation.md +12 -5
- package/dist/docs/plugins/graphql/00-intro.md +8 -8
- package/dist/docs/plugins/graphql/01-installation.md +11 -11
- package/dist/docs/plugins/graphql/02-plugin-configuration.md +3 -4
- package/dist/docs/plugins/graphql/03-features.md +4 -4
- package/dist/docs/plugins/openapi/00-intro.md +8 -8
- package/dist/docs/plugins/openapi/01-installation.md +10 -11
- package/dist/docs/plugins/openapi/02-plugin-configuration.md +7 -6
- package/dist/docs/plugins/openapi/03-features.md +6 -7
- package/dist/docs/tutorial/01-start-here.md +75 -0
- package/dist/docs/tutorial/02-install-eventcatalog.md +98 -0
- package/dist/docs/tutorial/04-add-ownership.md +184 -0
- package/dist/docs/tutorial/04-create-event.md +176 -0
- package/dist/docs/tutorial/05-create-a-domain.md +133 -0
- package/dist/docs/tutorial/05-publish-event.md +82 -0
- package/dist/docs/tutorial/06-consume-event.md +130 -0
- package/dist/docs/tutorial/06-create-a-service.md +99 -0
- package/dist/docs/tutorial/11-visualize-your-catalog.md +105 -0
- package/dist/docs/tutorial/12-build-your-catalog.md +79 -0
- package/dist/docs/tutorial/14-next-steps.md +108 -0
- package/dist/docs/tutorial/_category_.json +12 -0
- package/dist/eventcatalog.cjs +1 -1
- package/dist/eventcatalog.js +5 -5
- package/dist/generate.cjs +1 -1
- package/dist/generate.js +3 -3
- package/dist/utils/cli-logger.cjs +1 -1
- package/dist/utils/cli-logger.js +2 -2
- package/eventcatalog/src/layouts/VerticalSideBarLayout.astro +4 -1
- package/eventcatalog/src/toolkit/layouts/Layout.astro +7 -1
- package/package.json +3 -3
- package/dist/docs/api/03-domain-api.md +0 -440
- package/dist/docs/api/04-service-api.md +0 -414
- package/dist/docs/api/05-command-api.md +0 -365
- package/dist/docs/api/06-event-api.md +0 -364
- package/dist/docs/api/06-query-api.md +0 -362
- package/dist/docs/api/08-channel-api.md +0 -363
- package/dist/docs/api/09-flow-api.md +0 -446
- package/dist/docs/api/10-entity-api.md +0 -330
- package/dist/docs/api/11-data-api.md +0 -273
- package/dist/docs/api/12-data-product-api.md +0 -445
- package/dist/docs/development/components/external-diagram-embeds/05-icepanel.md +0 -68
- package/dist/docs/development/components/external-diagram-embeds/_category_.json +0 -12
- package/dist/docs/development/customization/custom-components/00-what-is-mdx.md +0 -73
- package/dist/docs/development/customization/custom-components/01-introduction.md +0 -28
- package/dist/docs/development/customization/custom-components/02-adding-components.md +0 -145
- package/dist/docs/development/customization/custom-components/03-component-styling.md +0 -27
- package/dist/docs/development/customization/custom-components/04-javascript-components.md +0 -32
- package/dist/docs/development/customization/custom-components/_category_.json +0 -11
- package/dist/docs/development/customization/customize-sidebars/00-application-sidebar.md +0 -85
- package/dist/docs/development/customization/customize-sidebars/_category_.json +0 -11
- package/dist/docs/development/developer-tools/github-action.md +0 -147
- package/dist/docs/development/guides/12-customize-your-sidebar.md +0 -12
- package/dist/docs/development/guides/agents/02-adding-agents.md +0 -152
- package/dist/docs/development/guides/agents/adding-to-agents/_category_.json +0 -10
- package/dist/docs/development/guides/agents/ownership/01-owners.md +0 -67
- package/dist/docs/development/guides/agents/ownership/_category_.json +0 -11
- package/dist/docs/development/guides/agents/versioning-and-lifecycle/01-versioning.md +0 -48
- package/dist/docs/development/guides/agents/versioning-and-lifecycle/02-changelog.md +0 -40
- package/dist/docs/development/guides/agents/versioning-and-lifecycle/03-deprecating.md +0 -41
- package/dist/docs/development/guides/agents/versioning-and-lifecycle/_category_.json +0 -11
- package/dist/docs/development/guides/channels/ownership-and-components/01-owners.md +0 -44
- package/dist/docs/development/guides/channels/ownership-and-components/02-components.md +0 -16
- package/dist/docs/development/guides/channels/ownership-and-components/_category_.json +0 -11
- package/dist/docs/development/guides/channels/versioning-and-lifecycle/01-versioning.md +0 -31
- package/dist/docs/development/guides/channels/versioning-and-lifecycle/02-changelog.md +0 -56
- package/dist/docs/development/guides/channels/versioning-and-lifecycle/_category_.json +0 -11
- package/dist/docs/development/guides/data/01-introduction.md +0 -34
- package/dist/docs/development/guides/data/02-adding-data.md +0 -86
- package/dist/docs/development/guides/data/03a-adding-schemas-to-data-stores.md +0 -73
- package/dist/docs/development/guides/data/ownership-and-components/01-owners.md +0 -45
- package/dist/docs/development/guides/data/ownership-and-components/02-components.md +0 -17
- package/dist/docs/development/guides/data/ownership-and-components/_category_.json +0 -11
- package/dist/docs/development/guides/data/versioning-and-lifecycle/01-versioning.md +0 -32
- package/dist/docs/development/guides/data/versioning-and-lifecycle/02-changelog.md +0 -57
- package/dist/docs/development/guides/data/versioning-and-lifecycle/03-deprecating.md +0 -71
- package/dist/docs/development/guides/data/versioning-and-lifecycle/_category_.json +0 -11
- package/dist/docs/development/guides/data-products/02-adding-data-products.md +0 -157
- package/dist/docs/development/guides/data-products/05-versioning.md +0 -240
- package/dist/docs/development/guides/data-products/06-adding-to-domains.md +0 -52
- package/dist/docs/development/guides/diagrams/01-introduction.md +0 -78
- package/dist/docs/development/guides/diagrams/02-creating-diagrams.md +0 -195
- package/dist/docs/development/guides/diagrams/04-versioning-diagrams.md +0 -204
- package/dist/docs/development/guides/diagrams/05-comparing-diagrams.md +0 -145
- package/dist/docs/development/guides/diagrams/06-diagrams-with-llms.md +0 -165
- package/dist/docs/development/guides/domains/02-creating-domains/_category_.json +0 -11
- package/dist/docs/development/guides/domains/04-versioning-and-changelogs/_category_.json +0 -10
- package/dist/docs/development/guides/domains/05-entities/01-introduction.md +0 -24
- package/dist/docs/development/guides/domains/05-entities/02-adding-entities.md +0 -157
- package/dist/docs/development/guides/domains/05-entities/03-adding-entities-to-domains.md +0 -30
- package/dist/docs/development/guides/domains/05-entities/04-domain-entity-map.md +0 -134
- package/dist/docs/development/guides/flows/01-introduction.md +0 -36
- package/dist/docs/development/guides/flows/02-adding-flows.md +0 -198
- package/dist/docs/development/guides/flows/04-adding-flows-to-services.md +0 -42
- package/dist/docs/development/guides/flows/05-adding-flows-to-domains.md +0 -43
- package/dist/docs/development/guides/flows/06-versioning.md +0 -27
- package/dist/docs/development/guides/flows/07-create-flow-with-ai.md +0 -171
- package/dist/docs/development/guides/messages/01-overview.md +0 -57
- package/dist/docs/development/guides/messages/_category_.json +0 -11
- package/dist/docs/development/guides/messages/commands/02-adding-commands.md +0 -131
- package/dist/docs/development/guides/messages/commands/_category_.json +0 -11
- package/dist/docs/development/guides/messages/common/01-map-to-producers-and-consumers.md +0 -37
- package/dist/docs/development/guides/messages/common/02-adding-schemas.md +0 -58
- package/dist/docs/development/guides/messages/common/03-owners.md +0 -40
- package/dist/docs/development/guides/messages/common/07-components.md +0 -12
- package/dist/docs/development/guides/messages/common/08-shared-messages-across-boundaries.md +0 -70
- package/dist/docs/development/guides/messages/common/_category_.json +0 -11
- package/dist/docs/development/guides/messages/events/02-adding-events.md +0 -130
- package/dist/docs/development/guides/messages/events/_category_.json +0 -11
- package/dist/docs/development/guides/messages/queries/01-introduction.md +0 -25
- package/dist/docs/development/guides/messages/queries/02-adding-queries.md +0 -130
- package/dist/docs/development/guides/owners/teams/01-introduction.md +0 -21
- package/dist/docs/development/guides/owners/teams/02-adding-teams.md +0 -73
- package/dist/docs/development/guides/owners/teams/_category_.json +0 -11
- package/dist/docs/development/guides/owners/users/01-introduction.md +0 -20
- package/dist/docs/development/guides/owners/users/02-adding-users.md +0 -69
- package/dist/docs/development/guides/owners/users/_category_.json +0 -11
- package/dist/docs/development/guides/schemas/01-introduction.md +0 -64
- package/dist/docs/development/guides/services/01-introduction.md +0 -33
- package/dist/docs/development/guides/services/02-adding-services.md +0 -113
- package/dist/docs/development/guides/services/03-creating-external-systems.md +0 -71
- package/dist/docs/development/guides/services/adding-to-services/01-messages.md +0 -229
- package/dist/docs/development/guides/services/adding-to-services/02-datastores.md +0 -77
- package/dist/docs/development/guides/services/adding-to-services/_category_.json +0 -10
- package/dist/docs/development/guides/services/ownership-and-components/_category_.json +0 -11
- package/dist/docs/development/guides/services/versioning-and-lifecycle/_category_.json +0 -11
- /package/dist/docs/development/ask-your-architecture/{04-skills → 05-skills}/01-introduction.md +0 -0
- /package/dist/docs/development/ask-your-architecture/{04-skills → 05-skills}/02-installation.md +0 -0
- /package/dist/docs/development/ask-your-architecture/{05-slack-integration → 06-slack-integration}/01-introduction.md +0 -0
- /package/dist/docs/development/ask-your-architecture/{05-slack-integration → 06-slack-integration}/02-slack-app-setup.md +0 -0
- /package/dist/docs/development/ask-your-architecture/{05-slack-integration → 06-slack-integration}/04-deployment.md +0 -0
- /package/dist/docs/development/ask-your-architecture/{05-slack-integration → 06-slack-integration}/05-usage.md +0 -0
- /package/dist/docs/development/ask-your-architecture/{05-slack-integration → 06-slack-integration}/06-troubleshooting.md +0 -0
- /package/dist/docs/development/guides/{channels → resources/messages/04-message-channels}/09-configuration +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
---
|
|
2
|
-
sidebar_position:
|
|
2
|
+
sidebar_position: 14
|
|
3
3
|
keywords:
|
|
4
4
|
- components
|
|
5
5
|
sidebar_label: OpenAPI
|
|
@@ -9,10 +9,10 @@ description: Component for EventCatalog
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
:::warning
|
|
12
|
-
This component is now deprecated. Please read the frontmatter API documentation [here](/docs/development/guides/
|
|
12
|
+
This component is now deprecated. Please read the frontmatter API documentation [here](/docs/development/guides/resources/schemas/add-specifications-to-services/add-openapi-specifications).
|
|
13
13
|
:::
|
|
14
14
|
|
|
15
|
-
You can add specifications to any service in EventCatalog using the specifications frontmatter API. You can read more about it [here](/docs/development/guides/
|
|
15
|
+
You can add specifications to any service in EventCatalog using the specifications frontmatter API. You can read more about it [here](/docs/development/guides/resources/schemas/add-specifications-to-services/add-openapi-specifications).
|
|
16
16
|
|
|
17
17
|
If you are interested in automating your EventCatalog with OpenAPI files, you can use the [OpenAPI plugin](/docs/plugins/openapi/intro).
|
|
18
18
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
---
|
|
2
|
-
sidebar_position:
|
|
2
|
+
sidebar_position: 15
|
|
3
3
|
keywords:
|
|
4
4
|
- components
|
|
5
5
|
- prompt
|
|
@@ -15,7 +15,7 @@ import AddedIn from '@site/src/components/MDX/AddedIn';
|
|
|
15
15
|
|
|
16
16
|
<AddedIn version="3.32.2" />
|
|
17
17
|
|
|
18
|
-
`<Prompt />` lets you embed ready-to-use AI prompts directly in your documentation pages. Readers can
|
|
18
|
+
`<Prompt />` lets you embed ready-to-use AI prompts directly in your documentation pages. Readers can copy the prompt to their clipboard or open it straight in Cursor with one click.
|
|
19
19
|
|
|
20
20
|
Place the prompt text as the slot content and configure the label and actions via props.
|
|
21
21
|
|
|
@@ -58,10 +58,6 @@ Use `actions={["copy"]}` (the default) when you only need clipboard support. Add
|
|
|
58
58
|
|
|
59
59
|
Both actions derive their text from the slot content. HTML tags are stripped automatically, so plain text is always passed to the clipboard and the Cursor deep-link.
|
|
60
60
|
|
|
61
|
-
### Inspect the prompt
|
|
62
|
-
|
|
63
|
-
Every prompt card includes a **Show prompt** control. Expanding the card reveals the exact prompt text that will be copied or sent to Cursor.
|
|
64
|
-
|
|
65
61
|
### Use the icon prop
|
|
66
62
|
|
|
67
63
|
Pass any [Lucide](https://lucide.dev/icons/) icon name to the `icon` prop. The component normalises the value to PascalCase internally, so `"bot-message-square"`, `"bot_message_square"`, and `"Bot Message Square"` all resolve to the same icon.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
---
|
|
2
|
-
sidebar_position:
|
|
2
|
+
sidebar_position: 16
|
|
3
3
|
keywords:
|
|
4
4
|
- components
|
|
5
5
|
- remote schema
|
|
@@ -10,7 +10,7 @@ title: RemoteSchema
|
|
|
10
10
|
description: Component for fetching and rendering remote schemas in EventCatalog
|
|
11
11
|
---
|
|
12
12
|
|
|
13
|
-
import
|
|
13
|
+
import PlanBanner from '@site/src/components/MDX/PlanBanner';
|
|
14
14
|
import AddedIn from '@site/src/components/MDX/AddedIn';
|
|
15
15
|
|
|
16
16
|
<AddedIn version="2.52.0" />
|
|
@@ -47,7 +47,9 @@ The `<RemoteSchema/>` component only works in Server-Side Rendering (SSR) mode.
|
|
|
47
47
|
/>
|
|
48
48
|
```
|
|
49
49
|
|
|
50
|
-
|
|
50
|
+
### Fetching from Private APIs
|
|
51
|
+
|
|
52
|
+
<PlanBanner plan="Scale" />
|
|
51
53
|
|
|
52
54
|
For private APIs requiring authentication, you can provide headers:
|
|
53
55
|
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
---
|
|
2
|
+
sidebar_position: 1
|
|
3
|
+
sidebar_label: Introduction
|
|
4
|
+
title: Write your own components
|
|
5
|
+
description: Learn when and why to create custom components in EventCatalog.
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
import ProjectTree from '@site/src/components/MDX/ProjectTree';
|
|
9
|
+
|
|
10
|
+
EventCatalog is powered by [Astro](https://docs.astro.build/en/basics/astro-components/). This means you can create your own components and use them inside your catalog pages.
|
|
11
|
+
|
|
12
|
+
Custom components are useful when you want to reuse the same block of UI or logic across services, events, domains, teams, and custom documentation pages.
|
|
13
|
+
|
|
14
|
+
For example, you can create components for:
|
|
15
|
+
|
|
16
|
+
- service health cards
|
|
17
|
+
- ownership summaries
|
|
18
|
+
- links to runbooks or dashboards
|
|
19
|
+
- API status panels
|
|
20
|
+
- scorecards
|
|
21
|
+
- custom diagrams
|
|
22
|
+
- metadata from another system
|
|
23
|
+
|
|
24
|
+
## What you will create
|
|
25
|
+
|
|
26
|
+
In this section, we will create a small component, render it in a service page, pass catalog data into it, fetch data from another system, and add simple browser behavior.
|
|
27
|
+
|
|
28
|
+
By the end, you will have the main patterns you need to build your own reusable components.
|
|
29
|
+
|
|
30
|
+
## Component types
|
|
31
|
+
|
|
32
|
+
EventCatalog supports two types of custom component:
|
|
33
|
+
|
|
34
|
+
- `.astro` components for reusable UI, JavaScript, data fetching, and dynamic rendering
|
|
35
|
+
- `.mdx` components for reusable Markdown content
|
|
36
|
+
|
|
37
|
+
Most custom components should be `.astro` files. They give you the most flexibility and match how EventCatalog renders built-in components.
|
|
38
|
+
|
|
39
|
+
## Where components live
|
|
40
|
+
|
|
41
|
+
Create custom components in the `components` directory at the root of your catalog.
|
|
42
|
+
|
|
43
|
+
<ProjectTree
|
|
44
|
+
items={[
|
|
45
|
+
{
|
|
46
|
+
name: 'my-catalog',
|
|
47
|
+
type: 'folder',
|
|
48
|
+
defaultOpen: true,
|
|
49
|
+
children: [
|
|
50
|
+
{
|
|
51
|
+
name: 'components',
|
|
52
|
+
type: 'folder',
|
|
53
|
+
defaultOpen: true,
|
|
54
|
+
children: [{ name: 'service-summary.astro', highlight: true }],
|
|
55
|
+
},
|
|
56
|
+
{ name: 'services', type: 'folder' },
|
|
57
|
+
{ name: 'events', type: 'folder' },
|
|
58
|
+
{ name: 'eventcatalog.config.js' },
|
|
59
|
+
],
|
|
60
|
+
},
|
|
61
|
+
]}
|
|
62
|
+
/>
|
|
63
|
+
|
|
64
|
+
You can import these components into any MDX page using the `@catalog/components` alias.
|
|
65
|
+
|
|
66
|
+
```tsx title="/services/OrderService/index.mdx"
|
|
67
|
+
import ServiceSummary from '@catalog/components/service-summary.astro';
|
|
68
|
+
|
|
69
|
+
<ServiceSummary />
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
:::tip
|
|
73
|
+
Astro has its own component model. If you want to go deeper, read the [Astro components documentation](https://docs.astro.build/en/basics/astro-components/).
|
|
74
|
+
:::
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
---
|
|
2
|
+
sidebar_position: 2
|
|
3
|
+
sidebar_label: Create your first component
|
|
4
|
+
title: Create your first component
|
|
5
|
+
description: Create a small reusable component and render it in a catalog page.
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
In this guide, we will create a simple component and add it to a service page.
|
|
9
|
+
|
|
10
|
+
## Create the component
|
|
11
|
+
|
|
12
|
+
Create a new file in your catalog.
|
|
13
|
+
|
|
14
|
+
```txt title="File"
|
|
15
|
+
/components/service-note.astro
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
Add the component markup.
|
|
19
|
+
|
|
20
|
+
```jsx title="/components/service-note.astro"
|
|
21
|
+
---
|
|
22
|
+
const { title = 'Service note' } = Astro.props;
|
|
23
|
+
---
|
|
24
|
+
|
|
25
|
+
<aside class="not-prose rounded-lg border border-gray-200 bg-gray-50 p-4 dark:border-gray-800 dark:bg-gray-900">
|
|
26
|
+
<p class="m-0 text-sm font-semibold text-gray-900 dark:text-gray-100">{title}</p>
|
|
27
|
+
<p class="mb-0 mt-2 text-sm text-gray-600 dark:text-gray-300">
|
|
28
|
+
This note is rendered from a custom EventCatalog component.
|
|
29
|
+
</p>
|
|
30
|
+
</aside>
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
The `not-prose` class keeps the documentation page typography from changing the spacing and styles inside your component.
|
|
34
|
+
|
|
35
|
+
## Add it to a page
|
|
36
|
+
|
|
37
|
+
Open one of your service pages and import the component.
|
|
38
|
+
|
|
39
|
+
```markdown title="/services/OrderService/index.mdx"
|
|
40
|
+
---
|
|
41
|
+
id: OrderService
|
|
42
|
+
name: Order Service
|
|
43
|
+
version: 0.0.1
|
|
44
|
+
summary: Handles customer orders.
|
|
45
|
+
---
|
|
46
|
+
|
|
47
|
+
import ServiceNote from '@catalog/components/service-note.astro';
|
|
48
|
+
|
|
49
|
+
# Order Service
|
|
50
|
+
|
|
51
|
+
<ServiceNote title="About this service" />
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
## Check the page
|
|
55
|
+
|
|
56
|
+
Start your catalog and open the service page.
|
|
57
|
+
|
|
58
|
+
```bash
|
|
59
|
+
npm run dev
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
You should see the custom note rendered inside the service documentation.
|
|
63
|
+
|
|
64
|
+
<div className="not-prose my-8 flex flex-col items-center gap-2">
|
|
65
|
+
<img src="/img/docs/custom-components/first-component.png" alt="Custom service note component rendered in EventCatalog" className="rounded-lg border border-gray-200 shadow-sm dark:border-gray-800" />
|
|
66
|
+
<span className="text-center text-sm italic text-gray-500 dark:text-gray-400">A custom component rendered inside an EventCatalog service page.</span>
|
|
67
|
+
</div>
|
|
68
|
+
|
|
69
|
+
:::tip
|
|
70
|
+
Start small. Once you can render one component, the same pattern works for richer cards, tables, status panels, and diagrams.
|
|
71
|
+
:::
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
---
|
|
2
|
+
sidebar_position: 3
|
|
3
|
+
sidebar_label: Pass data into components
|
|
4
|
+
title: Pass data into components
|
|
5
|
+
description: Pass props, frontmatter, variables, and config data into custom components.
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
Components become more useful when they can render data from the page they are used on.
|
|
9
|
+
|
|
10
|
+
## Use props
|
|
11
|
+
|
|
12
|
+
Props are values passed into the component when you render it.
|
|
13
|
+
|
|
14
|
+
```jsx title="/components/service-owner.astro"
|
|
15
|
+
---
|
|
16
|
+
const { team } = Astro.props;
|
|
17
|
+
---
|
|
18
|
+
|
|
19
|
+
<p class="not-prose text-sm">
|
|
20
|
+
Owned by <strong>{team}</strong>
|
|
21
|
+
</p>
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
Render the component from a catalog page.
|
|
25
|
+
|
|
26
|
+
```tsx title="/services/OrderService/index.mdx"
|
|
27
|
+
import ServiceOwner from '@catalog/components/service-owner.astro';
|
|
28
|
+
|
|
29
|
+
<ServiceOwner team="Commerce Platform" />
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
## Use frontmatter
|
|
33
|
+
|
|
34
|
+
Every EventCatalog resource page has frontmatter. You can pass that data into your component.
|
|
35
|
+
|
|
36
|
+
```markdown title="/services/OrderService/index.mdx"
|
|
37
|
+
---
|
|
38
|
+
id: OrderService
|
|
39
|
+
name: Order Service
|
|
40
|
+
version: 0.0.1
|
|
41
|
+
summary: Handles customer orders.
|
|
42
|
+
---
|
|
43
|
+
|
|
44
|
+
import ServiceSummary from '@catalog/components/service-summary.astro';
|
|
45
|
+
|
|
46
|
+
<ServiceSummary name={frontmatter.name} summary={frontmatter.summary} />
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
Then read those props in your component.
|
|
50
|
+
|
|
51
|
+
```jsx title="/components/service-summary.astro"
|
|
52
|
+
---
|
|
53
|
+
const { name, summary } = Astro.props;
|
|
54
|
+
---
|
|
55
|
+
|
|
56
|
+
<section class="not-prose rounded-lg border border-gray-200 p-4 dark:border-gray-800">
|
|
57
|
+
<h2 class="m-0 text-lg font-semibold">{name}</h2>
|
|
58
|
+
<p class="mb-0 mt-2 text-sm text-gray-600 dark:text-gray-300">{summary}</p>
|
|
59
|
+
</section>
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
## Use page variables
|
|
63
|
+
|
|
64
|
+
You can export variables from an MDX page and pass them into a component.
|
|
65
|
+
|
|
66
|
+
```tsx title="/services/OrderService/index.mdx"
|
|
67
|
+
import ServiceStatus from '@catalog/components/service-status.astro';
|
|
68
|
+
|
|
69
|
+
export const status = 'Stable';
|
|
70
|
+
|
|
71
|
+
<ServiceStatus status={status} />
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
## Use catalog config
|
|
75
|
+
|
|
76
|
+
You can import values from `eventcatalog.config.js` using `@config`.
|
|
77
|
+
|
|
78
|
+
```jsx title="/components/catalog-name.astro"
|
|
79
|
+
---
|
|
80
|
+
import config from '@config';
|
|
81
|
+
---
|
|
82
|
+
|
|
83
|
+
<span>{config.title}</span>
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
Use this when a component needs shared catalog settings, organization names, or other global values.
|
|
@@ -0,0 +1,191 @@
|
|
|
1
|
+
---
|
|
2
|
+
sidebar_position: 4
|
|
3
|
+
sidebar_label: Fetch data
|
|
4
|
+
title: Fetch data in components
|
|
5
|
+
description: Fetch build-time, runtime, or browser data from custom EventCatalog components.
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
Custom components can fetch data from other systems. This is useful when your documentation needs to show information from tools such as internal platforms, service catalogs, monitoring systems, observability platforms, on-call tools, custom registries, schema registries, or deployment platforms.
|
|
9
|
+
|
|
10
|
+
Astro components can use `await fetch()` in the component frontmatter. EventCatalog is powered by Astro, so the same pattern works in custom EventCatalog components.
|
|
11
|
+
|
|
12
|
+
## Fetch and render data
|
|
13
|
+
|
|
14
|
+
This example fetches a random user and renders their name and location.
|
|
15
|
+
|
|
16
|
+
```jsx title="/components/random-user.astro"
|
|
17
|
+
---
|
|
18
|
+
const response = await fetch('https://randomuser.me/api/');
|
|
19
|
+
const data = await response.json();
|
|
20
|
+
const randomUser = data.results[0];
|
|
21
|
+
---
|
|
22
|
+
|
|
23
|
+
<article class="not-prose rounded-lg border border-gray-200 p-4 dark:border-gray-800">
|
|
24
|
+
<p class="m-0 text-sm font-semibold text-gray-900 dark:text-gray-100">
|
|
25
|
+
{randomUser.name.first} {randomUser.name.last}
|
|
26
|
+
</p>
|
|
27
|
+
<p class="mb-0 mt-2 text-sm text-gray-600 dark:text-gray-300">
|
|
28
|
+
{randomUser.location.city}, {randomUser.location.country}
|
|
29
|
+
</p>
|
|
30
|
+
</article>
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
Use the component in a catalog page.
|
|
34
|
+
|
|
35
|
+
```tsx title="/services/OrderService/index.mdx"
|
|
36
|
+
import RandomUser from '@catalog/components/random-user.astro';
|
|
37
|
+
|
|
38
|
+
<RandomUser />
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
The same pattern can be used to render data from systems your team already uses.
|
|
42
|
+
|
|
43
|
+
For example, you might fetch:
|
|
44
|
+
|
|
45
|
+
- a service owner from an internal platform API
|
|
46
|
+
- a support rotation from an on-call tool
|
|
47
|
+
- a maturity score from a scorecard system
|
|
48
|
+
- repository metadata from GitHub
|
|
49
|
+
- deployment metadata from your platform
|
|
50
|
+
|
|
51
|
+
## Static builds
|
|
52
|
+
|
|
53
|
+
By default, EventCatalog builds a static website.
|
|
54
|
+
|
|
55
|
+
In a static build, `fetch()` calls in Astro component frontmatter run when the catalog is built. The fetched data is written into the generated HTML.
|
|
56
|
+
|
|
57
|
+
This means:
|
|
58
|
+
|
|
59
|
+
- the data is captured at build time
|
|
60
|
+
- the page will not refetch that data for every viewer
|
|
61
|
+
- the page updates when you rebuild and redeploy the catalog
|
|
62
|
+
- a failed API request can fail the build unless you handle the error
|
|
63
|
+
|
|
64
|
+
Static fetching works well for documentation data that does not need to change every time someone opens the page.
|
|
65
|
+
|
|
66
|
+
```jsx title="/components/service-score.astro"
|
|
67
|
+
---
|
|
68
|
+
const { service } = Astro.props;
|
|
69
|
+
|
|
70
|
+
let score = 'Unknown';
|
|
71
|
+
|
|
72
|
+
try {
|
|
73
|
+
const response = await fetch(`https://platform.example.com/services/${service}/score`);
|
|
74
|
+
const data = await response.json();
|
|
75
|
+
score = data.score;
|
|
76
|
+
} catch {
|
|
77
|
+
score = 'Unavailable';
|
|
78
|
+
}
|
|
79
|
+
---
|
|
80
|
+
|
|
81
|
+
<span class="not-prose rounded-md border border-gray-200 px-2 py-1 text-sm dark:border-gray-800">
|
|
82
|
+
Score: {score}
|
|
83
|
+
</span>
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
Use this pattern when the data can be slightly stale and tied to your documentation release process.
|
|
87
|
+
|
|
88
|
+
## SSR builds
|
|
89
|
+
|
|
90
|
+
EventCatalog can also run in [SSR mode](/docs/development/deployment/build-ssr-mode).
|
|
91
|
+
|
|
92
|
+
In SSR mode, pages are rendered by a server. Astro frontmatter fetches run at runtime instead of only during the static build.
|
|
93
|
+
|
|
94
|
+
This means:
|
|
95
|
+
|
|
96
|
+
- the data can be fresher
|
|
97
|
+
- the request can use server-side environment variables
|
|
98
|
+
- the catalog needs a running server
|
|
99
|
+
- slow APIs can slow down the page unless you cache or handle failures
|
|
100
|
+
|
|
101
|
+
SSR mode is a better fit when the component needs private or frequently changing data.
|
|
102
|
+
|
|
103
|
+
You can enable server output in `eventcatalog.config.js`.
|
|
104
|
+
|
|
105
|
+
```js title="/eventcatalog.config.js"
|
|
106
|
+
export default {
|
|
107
|
+
output: 'server',
|
|
108
|
+
};
|
|
109
|
+
```
|
|
110
|
+
|
|
111
|
+
Read more about [EventCatalog static and server output](/docs/development/getting-started/develop-and-build#eventcatalog-static-vs-server-output).
|
|
112
|
+
|
|
113
|
+
## Private APIs and API keys
|
|
114
|
+
|
|
115
|
+
If the API requires a token, keep the token on the server.
|
|
116
|
+
|
|
117
|
+
For static builds, the token can be available in your build environment. The fetch runs during the build, and only the rendered result is included in the generated HTML. You can store secrets in your `.env` file or deployment environment variables. Read more about [configuring environment variables](/docs/development/getting-started/configuration-overview#configuring-environment-variables).
|
|
118
|
+
|
|
119
|
+
```jsx title="/components/internal-service-score.astro"
|
|
120
|
+
---
|
|
121
|
+
const { service } = Astro.props;
|
|
122
|
+
|
|
123
|
+
const response = await fetch(`https://platform.example.com/services/${service}/score`, {
|
|
124
|
+
headers: {
|
|
125
|
+
Authorization: `Bearer ${process.env.PLATFORM_API_TOKEN}`,
|
|
126
|
+
},
|
|
127
|
+
});
|
|
128
|
+
|
|
129
|
+
const data = await response.json();
|
|
130
|
+
---
|
|
131
|
+
|
|
132
|
+
<span class="not-prose rounded-md border border-gray-200 px-2 py-1 text-sm dark:border-gray-800">
|
|
133
|
+
Score: {data.score}
|
|
134
|
+
</span>
|
|
135
|
+
```
|
|
136
|
+
|
|
137
|
+
For SSR builds, the token is read by the server at runtime.
|
|
138
|
+
|
|
139
|
+
:::caution
|
|
140
|
+
Do not render API keys into the page, pass them to client-side scripts, or expose them through props that end up in HTML.
|
|
141
|
+
:::
|
|
142
|
+
|
|
143
|
+
If the request must happen in the browser, do not call private APIs directly with a secret. Use a server-side endpoint, proxy, or SSR component that keeps the token on the server.
|
|
144
|
+
|
|
145
|
+
## Browser fetching
|
|
146
|
+
|
|
147
|
+
Use browser fetching when the data should update after the page loads and does not require a private secret.
|
|
148
|
+
|
|
149
|
+
```jsx title="/components/live-status.astro"
|
|
150
|
+
---
|
|
151
|
+
const { endpoint } = Astro.props;
|
|
152
|
+
---
|
|
153
|
+
|
|
154
|
+
<div data-service-status data-endpoint={endpoint} class="not-prose rounded-lg border border-gray-200 p-4 text-sm dark:border-gray-800">
|
|
155
|
+
Loading status...
|
|
156
|
+
</div>
|
|
157
|
+
|
|
158
|
+
<script>
|
|
159
|
+
const elements = document.querySelectorAll('[data-service-status]');
|
|
160
|
+
|
|
161
|
+
elements.forEach(async (element) => {
|
|
162
|
+
const endpoint = element.getAttribute('data-endpoint');
|
|
163
|
+
|
|
164
|
+
try {
|
|
165
|
+
const response = await fetch(endpoint);
|
|
166
|
+
const data = await response.json();
|
|
167
|
+
element.textContent = `Status: ${data.status}`;
|
|
168
|
+
} catch {
|
|
169
|
+
element.textContent = 'Status unavailable';
|
|
170
|
+
}
|
|
171
|
+
});
|
|
172
|
+
</script>
|
|
173
|
+
```
|
|
174
|
+
|
|
175
|
+
Use the component in a page.
|
|
176
|
+
|
|
177
|
+
```tsx title="/services/OrderService/index.mdx"
|
|
178
|
+
import LiveStatus from '@catalog/components/live-status.astro';
|
|
179
|
+
|
|
180
|
+
<LiveStatus endpoint="https://status.example.com/order-service.json" />
|
|
181
|
+
```
|
|
182
|
+
|
|
183
|
+
## Which pattern should you use?
|
|
184
|
+
|
|
185
|
+
Use static build fetching when the data can be part of the generated documentation.
|
|
186
|
+
|
|
187
|
+
Use SSR fetching when the data should be fresh at request time or needs private server-side credentials.
|
|
188
|
+
|
|
189
|
+
Use browser fetching when the data is public and should update after the page loads.
|
|
190
|
+
|
|
191
|
+
For more examples, read the [Astro data fetching documentation](https://docs.astro.build/en/guides/data-fetching/).
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
---
|
|
2
|
+
sidebar_position: 5
|
|
3
|
+
sidebar_label: Style components
|
|
4
|
+
title: Style components
|
|
5
|
+
description: Style custom EventCatalog components with Tailwind CSS.
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
EventCatalog includes Tailwind CSS. You can use Tailwind classes inside your custom components.
|
|
9
|
+
|
|
10
|
+
```jsx title="/components/service-card.astro"
|
|
11
|
+
---
|
|
12
|
+
const { name, summary } = Astro.props;
|
|
13
|
+
---
|
|
14
|
+
|
|
15
|
+
<article class="not-prose rounded-lg border border-gray-200 bg-white p-4 shadow-sm dark:border-gray-800 dark:bg-gray-950">
|
|
16
|
+
<h2 class="m-0 text-base font-semibold text-gray-900 dark:text-gray-100">{name}</h2>
|
|
17
|
+
<p class="mb-0 mt-2 text-sm leading-6 text-gray-600 dark:text-gray-300">{summary}</p>
|
|
18
|
+
</article>
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
Use the component from a catalog page.
|
|
22
|
+
|
|
23
|
+
```tsx title="/services/OrderService/index.mdx"
|
|
24
|
+
import ServiceCard from '@catalog/components/service-card.astro';
|
|
25
|
+
|
|
26
|
+
<ServiceCard name={frontmatter.name} summary={frontmatter.summary} />
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
## Keep components readable
|
|
30
|
+
|
|
31
|
+
Custom components usually sit inside documentation pages, so keep them simple.
|
|
32
|
+
|
|
33
|
+
- Use small, focused components.
|
|
34
|
+
- Prefer readable text over dense layouts.
|
|
35
|
+
- Support light and dark mode.
|
|
36
|
+
- Avoid large custom layouts unless the component needs them.
|
|
37
|
+
|
|
38
|
+
## Use local styles when needed
|
|
39
|
+
|
|
40
|
+
Astro components can include a `<style>` block.
|
|
41
|
+
|
|
42
|
+
```jsx title="/components/status-pill.astro"
|
|
43
|
+
---
|
|
44
|
+
const { status } = Astro.props;
|
|
45
|
+
---
|
|
46
|
+
|
|
47
|
+
<span class="not-prose status-pill">{status}</span>
|
|
48
|
+
|
|
49
|
+
<style>
|
|
50
|
+
.status-pill {
|
|
51
|
+
border: 1px solid var(--ifm-color-emphasis-300);
|
|
52
|
+
border-radius: 999px;
|
|
53
|
+
display: inline-flex;
|
|
54
|
+
font-size: 0.875rem;
|
|
55
|
+
padding: 0.125rem 0.5rem;
|
|
56
|
+
}
|
|
57
|
+
</style>
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
Use Tailwind for most styling, and local CSS when a component needs a small custom rule.
|