l_atelier:d2

Ceci est une ancienne révision du document !


D2 permet de créer des schémas via un fichier texte, tel que l'ancêtre Graphviz ou Mermaid. Je l'aime bien, car je le trouve simple, et il fait des schémas assez propre.

.

Exemple de schéma


grid-rows: 6
grid-gap: 20
style.fill: black

NixOS: {
  width: 400
  style.fill: "#5277C3"
  style.stroke: "#7c9ee8"
  style.font-color: white
}

Firewall: {
  width: 400
  style.fill: "#DC143C"
  style.stroke: "#ff4757"
  style.font-color: white
}

Kernel: {
  style.fill: "#E74C3C"
  style.stroke: "#ec7063"
  style.font-color: white
}

SSH: {
  style.fill: "#2C3E50"
  style.stroke: "#34495E"
  style.font-color: white
}

Nginx: {
  style.fill: "#009639"
  style.stroke: "#00b347"
  style.font-color: white
}

"Journald & Files": {
  width: 400
  style.fill: "#6C757D"
  style.stroke: "#95a5a6"
  style.font-color: white
}

Vector: {
  width: 400
  style.fill: "#FF6B35"
  style.stroke: "#ff8c61"
  style.font-color: white
}

Reaction: {
  style.fill: "#9B59B6"
  style.stroke: "#b37fd6"
  style.font-color: white
}

VictoriaMetrics: {
  style.fill: "#F39C12"
  style.stroke: "#f5b041"
  style.font-color: white
}

  • l_atelier/d2.1760255106.txt.gz
  • Dernière modification : 2025/10/12 07:45
  • de badele