docs: use PNG instead of JPEG for diagrams

Graphviz on Alpine doesn't support JPG
This commit is contained in:
Khue Doan 2022-02-02 09:02:15 +07:00
parent 09a044443f
commit ede47ff895
4 changed files with 4 additions and 4 deletions

2
.gitignore vendored
View File

@ -3,8 +3,8 @@
book/
*.iso
*.jpg
*.log
*.png
*.tgz
*kubeconfig.yaml
Chart.lock

View File

@ -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

View File

@ -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")

View File

@ -1,6 +1,6 @@
# Provisioning flow
![Provisioning flow](../images/provisioning_flow.jpg)
![Provisioning flow](../images/provisioning_flow.png)
Everything is automated, after you edit the configuration files, you just need to run a single `make` command and it will: