您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
此仓库已存档。您可以查看文件和克隆,但不能推送或创建工单/合并请求。

123456789101112131415161718
  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()