Initial mermaid class diagram support

This commit is contained in:
Bartek Kryza
2023-09-05 00:04:05 +02:00
parent e8235805f8
commit 6822930a12
13 changed files with 1747 additions and 1 deletions

View File

@@ -125,6 +125,22 @@ struct plantuml {
void append(const plantuml &r);
};
/**
* @brief MermaidJS diagram config section
*
* This configuration option can be used to add any MermaidJS directives
* before or after the generated diagram, such as diagram name, or custom
* notes.
*/
struct mermaid {
/*! List of directives to add before diagram */
std::vector<std::string> before;
/*! List of directives to add before diagram */
std::vector<std::string> after;
void append(const mermaid &r);
};
/**
* @brief Definition of diagram template
*/
@@ -430,6 +446,7 @@ struct inheritable_diagram_options {
option<filter> include{"include"};
option<filter> exclude{"exclude"};
option<plantuml> puml{"plantuml", option_inherit_mode::kAppend};
option<struct mermaid> mermaid{"mermaid", option_inherit_mode::kAppend};
option<method_arguments> generate_method_arguments{
"generate_method_arguments", method_arguments::full};
option<bool> group_methods{"group_methods", true};