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.
 
 
 
 
 
 

19 lines
361 B

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