mirror of
https://github.com/matrix-org/matrix-spec
synced 2025-12-20 16:38:37 +01:00
Optionally don't delete intermediate rst files
Useful for debugging Hackily hackily implemented :)
This commit is contained in:
parent
6a56c8a965
commit
ad595aea45
|
|
@ -71,10 +71,11 @@ def main():
|
||||||
run_through_template("tmp/howto.rst")
|
run_through_template("tmp/howto.rst")
|
||||||
rst2html("tmp/full_spec.rst", "gen/specification.html")
|
rst2html("tmp/full_spec.rst", "gen/specification.html")
|
||||||
rst2html("tmp/howto.rst", "gen/howtos.html")
|
rst2html("tmp/howto.rst", "gen/howtos.html")
|
||||||
cleanup_env()
|
if "--nodelete" not in sys.argv:
|
||||||
|
cleanup_env()
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
if len(sys.argv) > 1:
|
if len(sys.argv) > 1 and sys.argv[1:] != ["--nodelete"]:
|
||||||
# we accept no args, so they don't know what they're doing!
|
# we accept no args, so they don't know what they're doing!
|
||||||
print "gendoc.py - Generate the Matrix specification as HTML."
|
print "gendoc.py - Generate the Matrix specification as HTML."
|
||||||
print "Usage:"
|
print "Usage:"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue