mirror of
https://github.com/khuedoan/homelab.git
synced 2025-02-24 21:52:36 +07:00
docs: use PNG instead of JPEG for diagrams
Graphviz on Alpine doesn't support JPG
This commit is contained in:
parent
09a044443f
commit
ede47ff895
2
.gitignore
vendored
2
.gitignore
vendored
@ -3,8 +3,8 @@
|
||||
book/
|
||||
|
||||
*.iso
|
||||
*.jpg
|
||||
*.log
|
||||
*.png
|
||||
*.tgz
|
||||
*kubeconfig.yaml
|
||||
Chart.lock
|
||||
|
@ -10,7 +10,7 @@ diagrams:
|
||||
&& pip3 install -r requirements.txt \
|
||||
&& python3 *.py
|
||||
mkdir -p src/images
|
||||
cp diagrams/*.jpg src/images/
|
||||
cp diagrams/*.png src/images/
|
||||
|
||||
.PHONY: book
|
||||
book: diagrams
|
||||
|
@ -9,7 +9,7 @@ graph_attr = {
|
||||
"pad": "0"
|
||||
}
|
||||
|
||||
with Diagram("Provisioning flow", graph_attr=graph_attr, outformat="jpg", show=False):
|
||||
with Diagram("Provisioning flow", graph_attr=graph_attr, outformat="png", show=False):
|
||||
with Cluster("./metal"):
|
||||
pxe = Docker("PXE server")
|
||||
os = LinuxGeneral(f"Rocky Linux")
|
||||
|
@ -1,6 +1,6 @@
|
||||
# Provisioning flow
|
||||
|
||||

|
||||

|
||||
|
||||
Everything is automated, after you edit the configuration files, you just need to run a single `make` command and it will:
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user