From 92e4ea0e316aa1f145e1cf2505467fac5ce92160 Mon Sep 17 00:00:00 2001 From: Roxedus Date: Thu, 12 Dec 2024 20:23:46 +0100 Subject: [PATCH] Add D2 graph to documentation --- roles/generate-jenkins/templates/DOCUMENTATION.j2 | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/roles/generate-jenkins/templates/DOCUMENTATION.j2 b/roles/generate-jenkins/templates/DOCUMENTATION.j2 index b94206ff..394c53ce 100644 --- a/roles/generate-jenkins/templates/DOCUMENTATION.j2 +++ b/roles/generate-jenkins/templates/DOCUMENTATION.j2 @@ -224,4 +224,14 @@ Containers are configured using parameters passed at runtime (such as those abov {% include "README_SNIPPETS/BUILDING_LOCALLY.j2" | trim %} +{% if init_diagram is defined and init_diagram %} +To help with development, we generate this dependency graph. + +??? info "Init dependency graph" + + ```d2 + {{ init_diagram | indent(4) | trim }} + ``` + +{% endif %} {% include "README_SNIPPETS/VERSIONS.j2" | trim %}