From 12d76a3116345662715e243001189b62e6d49d0c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20Ricart?= Date: Mon, 3 Mar 2025 11:39:47 +0100 Subject: [PATCH] [ALL] add d2class & first infra diagram --- .forgejo/workflows/test.yml | 8 ++++++++ .gitignore | 1 + source/infra.rst | 16 ++++++++++++++++ 3 files changed, 25 insertions(+) create mode 100644 source/infra.rst diff --git a/.forgejo/workflows/test.yml b/.forgejo/workflows/test.yml index 2740e33..5cecb23 100644 --- a/.forgejo/workflows/test.yml +++ b/.forgejo/workflows/test.yml @@ -29,6 +29,14 @@ jobs: path: nginx-config ref: main + - name: Checkout d2class + uses: actions/checkout@v4 + with: + repository: milka64/d2class + token: ${{ secrets.TOKEN }} + path: d2class + ref: main + - name: "create devices directory" run: 'mkdir source/devices' diff --git a/.gitignore b/.gitignore index b87ac08..2945a8d 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ build source/devices/* oxidized nginx-config +d2class diff --git a/source/infra.rst b/source/infra.rst new file mode 100644 index 0000000..9d4e650 --- /dev/null +++ b/source/infra.rst @@ -0,0 +1,16 @@ +.. d2lang:: + + @../d2class/network.d2 + wan -- home.freebox + wan -- scaleway."mail.0w.tf" + wan -- scaleway.bkp + home: { + freebox -- adama + class: "router" + } + wan: { + shape: image + icon: https://git.0w.tf/milka64/d2class/raw/branch/main/svg/cloud.svg + label.near: bottom-left + } +