diff --git a/.gitignore b/.gitignore index da8d4e9..a090758 100644 --- a/.gitignore +++ b/.gitignore @@ -4,4 +4,4 @@ source/devices/* oxidized nginx-config d2class -source/d2lang_svg +*d2lang* diff --git a/template/base.rst.j2 b/template/base.rst.j2 index 8e1a2d8..c1c41d9 100644 --- a/template/base.rst.j2 +++ b/template/base.rst.j2 @@ -5,5 +5,15 @@ :os: {{ os["NAME"] }} :version: {{ os["VERSION"] }} +Diagram +======= + +.. d2lang:: + :filename: d2lang/{{ hostname.replace("\n", "") }}.svg + + ...@source/infra.d2 + scaleway.{{ hostname.replace("\n", "").split(".")[0] }}*.style.animated: True + home.{{ hostname.replace("\n", "").split(".")[0] }}*.style.animated: True + {% if extend_exists %}{% include "{hostname}.rst.j2".format(hostname=hostname) %}{% endif %}