You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

build.py 314 B

12345678910111213141516
  1. import sys
  2. import subprocess
  3. def main():
  4. dev = "--dev" in sys.argv
  5. if dev:
  6. program = "sphinx-autobuild"
  7. else:
  8. program = "sphinx-build"
  9. cmd = [program, "-d", "build", "-b", "html", "source", "build/html"]
  10. subprocess.run(cmd, check=True)
  11. if __name__ == "__main__":
  12. main()