Problem/Motivation

For documenting a site, it would be very helpful to have a field available to add to a Content Model Document that supports adding Mermaid diagrams.

Mermaid diagram
- Diagram Title (required)
- Diagram Caption (required)
- diagram (required)
- show copy-able mermaid code (optional)

This should use the same twig template / render array as the module already uses.

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Comments

swirt created an issue. See original summary.

swirt’s picture

While working on this, it made more sense to add this as a separate module. The module Mermaid Diagram Field is now used to make the field available and provides there rendering for all other mermaid diagrams present in the Content Model Documentation module.

This will go out with 1.0.19.

Mermaid Diagram Field is now a dependency. If using composer it should come in automatically, but it will need to be enabled and added to your configuration.

  • swirt committed 9a54fef2 on 1.0.x
    Issue #3392410 by swirt: Add a dependency on mermaid_diagram_field and...
swirt’s picture

Status: Active » Fixed
swirt’s picture

Status: Fixed » Closed (fixed)