diff --git a/build.py b/build.py index 2dae185..2e1bc0d 100755 --- a/build.py +++ b/build.py @@ -3,9 +3,28 @@ from pathlib import Path -from rwx.fs import make_directory, write +from rwx.fs import make_directory, read_file_text, write +from rwx.ps import run if __name__ == "__main__": - out = Path(__file__).parent / "out" / "web" + root = Path(__file__).parent + out = root / "out" / "web" + gv = root / "index.gv" + svg = out / "index.svg" make_directory(out) - write(out / "index.html", "to.rwx.work") + run("dot", str(gv), "-Tsvg", "-o", str(svg)) + text = read_file_text(svg) + write(out / "index.html", f"""\ + +
+ + + +