kestra-io / docs

Documentation for Kestra — an event-driven, language-agnostic orchestration and scheduling platform to manage millions of workflows declaratively in code.
https://kestra.io/docs
68 stars 60 forks source link

Add support to render mermaid diagrams in the docs when using mermaid code snippets #1586

Closed anna-geller closed 1 month ago

anna-geller commented 1 month ago

Issue description

it would be great to render mermaid code snippets as this one: image image

GitHub-flavored markdown supports it by default.

See https://github.com/mermaid-js/mermaid

Example mermaid code you can test it with:

flowchart TD
    A[Namespaces] -->|optionally restrict Permissions| B[Access Binding]
    B -->|grants Permissions| C[User]
    B -->|grants Permissions| D[Group]
    B -->|grants Permissions| E[Service Account]
    F[Roles] -->|define Permissions| B

    C -->|can be Owner or Member| D
    E -->|can be Owner or Member| D
t-chatoyan commented 1 month ago

https://github.com/kestra-io/docs/pull/1587