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

17 行
314 B

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