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)
|
make_directory(out)
|
||||||
run("dot", str(gv), "-Tsvg", "-o", str(svg))
|
run("dot", str(gv), "-Tsvg", "-o", str(svg))
|
||||||
text = read_file_text(svg)
|
text = read_file_text(svg)
|
||||||
write(out / "index.css", """\
|
write(
|
||||||
|
out / "index.css",
|
||||||
|
"""\
|
||||||
html {
|
html {
|
||||||
background-color: #202020;
|
background-color: #202020;
|
||||||
}
|
}
|
||||||
""")
|
""",
|
||||||
write(out / "index.html", f"""\
|
)
|
||||||
|
write(
|
||||||
|
out / "index.html",
|
||||||
|
f"""\
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html><head>
|
<html><head>
|
||||||
|
|
||||||
|
@ -32,4 +37,5 @@ background-color: #202020;
|
||||||
{text}
|
{text}
|
||||||
|
|
||||||
</body></html>
|
</body></html>
|
||||||
""")
|
""",
|
||||||
|
)
|
||||||
|
|
Loading…
Reference in a new issue