在 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 日