25개 이상의 토픽을 선택하실 수 없습니다. 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()