From 9ba8fc9c05824cf0923331de667869751184a736 Mon Sep 17 00:00:00 2001 From: Bartek Kryza Date: Sun, 12 Mar 2023 00:13:37 +0100 Subject: [PATCH] Added diagram template docs --- .clang-uml | 14 +------------- docs/Makefile | 1 + docs/README.md | 9 +++++---- src/config/diagram_templates.cc | 2 +- 4 files changed, 8 insertions(+), 18 deletions(-) diff --git a/.clang-uml b/.clang-uml index 5923c9df..0dacf720 100644 --- a/.clang-uml +++ b/.clang-uml @@ -25,16 +25,4 @@ diagrams: package_model_class: include!: uml/package_model_class_diagram.yml include_graph: - include!: uml/include_diagram.yml - include3_diagram_parents_hierarchy: - type: class - include: - parents: [clanguml::config::include_diagram] - namespaces: [clanguml] - relationships: - - inheritance - exclude: - access: [public, protected, private] - plantuml: - before: - - left to right direction \ No newline at end of file + include!: uml/include_diagram.yml \ No newline at end of file diff --git a/docs/Makefile b/docs/Makefile index 7b78c4f5..66ae9e98 100644 --- a/docs/Makefile +++ b/docs/Makefile @@ -28,6 +28,7 @@ toc: $(UPDATE_TOC) include_diagrams.md $(UPDATE_TOC) installation.md $(UPDATE_TOC) interactive_svg_diagrams.md + $(UPDATE_TOC) diagram_templates.md $(UPDATE_TOC) jinja_templates.md $(UPDATE_TOC) package_diagrams.md $(UPDATE_TOC) quick_start.md diff --git a/docs/README.md b/docs/README.md index 9f6a366b..0fb0ae20 100644 --- a/docs/README.md +++ b/docs/README.md @@ -8,10 +8,11 @@ * [Sequence diagrams](./sequence_diagrams.md) * [Package diagrams](./package_diagrams.md) * [Include diagrams](./include_diagrams.md) -* [Comment decorators](./comment_decorators.md) -* [Diagram filters](./diagram_filters.md) -* [Using Jinja templates](./jinja_templates.md) -* [Interactive SVG diagrams using links](./interactive_svg_diagrams.md) + * [Diagram templates](./diagram_templates.md) + * [Comment decorators](./comment_decorators.md) + * [Diagram filters](./diagram_filters.md) + * [Using Jinja templates in diagram configs](./jinja_templates.md) + * [Interactive SVG diagrams using links](./interactive_svg_diagrams.md) * [Configuration file reference](./configuration_file.md) * [Doxygen integration](./doxygen_integration.md) * [Test cases documentation](./test_cases.md) diff --git a/src/config/diagram_templates.cc b/src/config/diagram_templates.cc index 1293eebe..3356b3ae 100644 --- a/src/config/diagram_templates.cc +++ b/src/config/diagram_templates.cc @@ -39,7 +39,7 @@ parents_hierarchy_tmpl: {% endif %} include: parents: [{{ class_name }}] - namespaces: [{{ namespace_names }}] + namespaces: [{{ namespace_name }}] relationships: - inheritance exclude: