Skip to content

[Feature]: allow to use mermaid plugin in air-gapped site/offline mode #198

Description

@cboitel

Is your feature request related to a problem?

Currently, when building a site using mermaid diagrams, diagrams are rended by referencing mermaid lib via a CDN, even if building for offline mode.

This means diagrams aren't rendered properly if site is deployed in an air-gapped environment or if offline mode is used.

Describe the solution you'd like

OpenAPI plugin should download mermaid dependency at build time (or allow via a flag to download it). This should also be enabled in offline mode.

Another solution would involve generating SVG's at build time and use them as assets.

Describe alternatives you've considered

Generating svgs from *.mmd files and include svgs in markdown file.

This would render mermaid plugin useless and documentation maintenance heavier

Metadata

Metadata

Assignees

No one assigned

    Labels

    Feature / EnhancementNew feature addition or request/suggestion

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions