在 ReadTheDocs 上自動構建#

這解釋瞭如何在每次拉取請求合併到其對應的 GitHub 倉庫時,在 ReadtheDocs 上自動重建文件。

使用 ReadTheDocs 服務#

可以在 GitHub 倉庫設定中啟用 Webhooks 和服務,以允許第三方服務(例如 ReadTheDocs)。每當拉取請求合併到 GitHub 倉庫時,ReadTheDocs 服務都會重建專案文件。

新增 ReadTheDocs 服務#

選擇新增服務,並在可用服務輸入框中輸入ReadTheDocs

“服務/新增 ReadTheDocs”視窗將開啟。按下綠色的新增服務按鈕以啟用 ReadTheDocs 服務。

In GitHub, the "Settings" tab of the ipywidgets repository shows that the "ReadTheDocs" service was successfully added to the project. A checkbox with the label "Active" indicates that the service is currently running.

成功#

ReadTheDocs 服務新增成功。該服務將在下一次合併到專案倉庫的拉取請求中生效。

In GitHub, the ipywidgets repository page is open. A banner notification at the top of the page is displayed, reading "Okay, that hook was successfully created."

建立時間:2016 年 1 月 7 日