This commit is contained in:
parent
0987cfe925
commit
3967cf176f
1 changed files with 10 additions and 4 deletions
14
build.py
14
build.py
|
@ -14,12 +14,17 @@ if __name__ == "__main__":
|
|||
make_directory(out)
|
||||
run("dot", str(gv), "-Tsvg", "-o", str(svg))
|
||||
text = read_file_text(svg)
|
||||
write(out / "index.css", """\
|
||||
write(
|
||||
out / "index.css",
|
||||
"""\
|
||||
html {
|
||||
background-color: #202020;
|
||||
}
|
||||
""")
|
||||
write(out / "index.html", f"""\
|
||||
""",
|
||||
)
|
||||
write(
|
||||
out / "index.html",
|
||||
f"""\
|
||||
<!DOCTYPE html>
|
||||
<html><head>
|
||||
|
||||
|
@ -32,4 +37,5 @@ background-color: #202020;
|
|||
{text}
|
||||
|
||||
</body></html>
|
||||
""")
|
||||
""",
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue