您不能選擇超過 %s 個話題 話題必須以字母或數字為開頭,可包含連接號 ('-') 且最長為 35 個字
此存儲庫已封存,您能瀏覽檔案及複製此存儲庫,但不能推送、建立問題及拉取請求。
 
 
 
 
 
 

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