docs(webhook): adding GitLab doc to webhooks

tox-dependencies
Hutson Betts 2017-03-27 10:05:19 -05:00
parent 1f3247c222
commit 12f7706b4e
No known key found for this signature in database
GPG Key ID: A8638F38149311BC
1 changed files with 13 additions and 1 deletions

View File

@ -40,6 +40,18 @@ your docs whenever you push updates:
If you ever need to manually set the webhook on Bitbucket,
you can point it at ``https://readthedocs.org/bitbucket``.
GitLab
---------
If your project is hosted on GitLab, you can easily add a hook that will rebuild
your docs whenever you push updates.
* Go to the "Settings" page for your project
* Click "Integrations"
* In the "URL" section, enter ``https://readthedocs.org/gitlab``
* Leave the default "Push events" selected
* Click "Add Webhook"
Others
------
@ -53,7 +65,7 @@ The following parameters available to customize the behavior of custom webhooks:
* ``'version_slug'``: The build version to trigger build for (defaults to ``'latest'``)
Example::
$ curl -X POST --data "version_slug=$VERSION" https://readthedocs.org/build/$PROJECT_NAME
You could make this part of a hook using Git_, Subversion_, Mercurial_, or