Initial mermaid class diagram support
This commit is contained in:
@@ -172,6 +172,12 @@ void plantuml::append(const plantuml &r)
|
||||
after.insert(after.end(), r.after.begin(), r.after.end());
|
||||
}
|
||||
|
||||
void mermaid::append(const mermaid &r)
|
||||
{
|
||||
before.insert(before.end(), r.before.begin(), r.before.end());
|
||||
after.insert(after.end(), r.after.begin(), r.after.end());
|
||||
}
|
||||
|
||||
void inheritable_diagram_options::inherit(
|
||||
const inheritable_diagram_options &parent)
|
||||
{
|
||||
|
||||
@@ -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};
|
||||
|
||||
Reference in New Issue
Block a user