chore: organize diagrams in different folders

This commit is contained in:
Laurence Isla
2024-06-26 11:33:04 -05:00
parent ecf9d56c91
commit 5acb29ce94
12 changed files with 9 additions and 9 deletions
+4 -4
View File
@@ -5,7 +5,7 @@ The ER diagrams were created with https://github.com/BurntSushi/erd/.
You can go download erd from https://github.com/BurntSushi/erd/releases and then do: You can go download erd from https://github.com/BurntSushi/erd/releases and then do:
```bash ```bash
./erd_static-x86-64 -i film.er -o ../_static/film.png ./erd_static-x86-64 -i ./er/film.er -o ../_static/film.png
``` ```
The fonts used belong to the GNU FreeFont family. You can download them here: http://ftp.gnu.org/gnu/freefont/ The fonts used belong to the GNU FreeFont family. You can download them here: http://ftp.gnu.org/gnu/freefont/
@@ -44,9 +44,9 @@ The UML diagrams are created with https://plantuml.com/.
PlantUML only creates one diagram per file. PlantUML only creates one diagram per file.
That's why we need to create another one for dark mode. That's why we need to create another one for dark mode.
For example, for the file [arch.uml](./arch.uml) there's [arch-dark](./arch-dark.uml) which includes the first one: For example, for the file [uml/arch.uml](uml/arch.uml) there's [uml/dark/arch-dark.uml](uml/dark/arch-dark.uml) which includes the first one:
```bash ```bash
plantuml -tsvg arch.uml -o ../_static plantuml -tsvg uml/arch.uml -o ../../_static
plantuml -tsvg -darkmode arch-dark.uml -o ../_static plantuml -tsvg -darkmode uml/dark/arch-dark.uml -o ../../../_static
``` ```
-3
View File
@@ -1,3 +0,0 @@
@startuml
!include arch.uml
@enduml
+3
View File
@@ -0,0 +1,3 @@
@startuml
!include ../arch.uml
@enduml
+2 -2
View File
@@ -90,8 +90,8 @@ let
${pdflatex}/bin/pdflatex -halt-on-error -output-directory="$tmpdir" db.tex ${pdflatex}/bin/pdflatex -halt-on-error -output-directory="$tmpdir" db.tex
${imagemagick}/bin/convert -density 300 "$tmpdir/db.pdf" ../_static/db.png ${imagemagick}/bin/convert -density 300 "$tmpdir/db.pdf" ../_static/db.png
${plantuml}/bin/plantuml -tsvg arch.uml -o ../_static ${plantuml}/bin/plantuml -tsvg uml/*.uml -o ../../_static
${plantuml}/bin/plantuml -tsvg -darkmode arch-dark.uml -o ../_static ${plantuml}/bin/plantuml -tsvg -darkmode uml/dark/*.uml -o ../../../_static
''; '';
server = server =