nix: remove texlive dependencies from postgrest-docs-render

This commit is contained in:
Laurence Isla
2024-06-26 11:33:04 -05:00
parent 295b00f360
commit d458114f33
3 changed files with 0 additions and 123 deletions
-28
View File
@@ -10,34 +10,6 @@ You can go download erd from https://github.com/BurntSushi/erd/releases and then
The fonts used belong to the GNU FreeFont family. You can download them here: http://ftp.gnu.org/gnu/freefont/
## LaTeX
The schema structure diagram is done with LaTeX. You can use a GUI like https://www.mathcha.io/editor to create the .tex file.
Then use this command to generate the png file.
```bash
postgrest-docs-render
```
LaTeX is used because it's a tweakable plain text format.
You can install the full latex suite with `nix`:
```
nix-env -iA texlive.combined.scheme-full
```
To tweak the file with a live reload environment use:
```bash
# open the pdf(zathura used as an example)
zathura db.pdf &
# live reload with entr
echo db.tex | entr pdflatex --shell-escape -halt-on-error db.tex
```
## UML
The UML diagrams are created with https://plantuml.com/.