Skip to content

Commit 340ea0e

Browse files
authored
Merge pull request #2747 from destroyerofbuilds/docs/webhook/gitlab
docs(webhook): adding GitLab doc to webhooks
2 parents c327589 + 12f7706 commit 340ea0e

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

docs/webhooks.rst

+13-1
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,18 @@ your docs whenever you push updates:
4040
If you ever need to manually set the webhook on Bitbucket,
4141
you can point it at ``https://readthedocs.org/bitbucket``.
4242

43+
GitLab
44+
---------
45+
46+
If your project is hosted on GitLab, you can easily add a hook that will rebuild
47+
your docs whenever you push updates.
48+
49+
* Go to the "Settings" page for your project
50+
* Click "Integrations"
51+
* In the "URL" section, enter ``https://readthedocs.org/gitlab``
52+
* Leave the default "Push events" selected
53+
* Click "Add Webhook"
54+
4355
Others
4456
------
4557

@@ -53,7 +65,7 @@ The following parameters available to customize the behavior of custom webhooks:
5365
* ``'version_slug'``: The build version to trigger build for (defaults to ``'latest'``)
5466

5567
Example::
56-
68+
5769
$ curl -X POST --data "version_slug=$VERSION" https://readthedocs.org/build/$PROJECT_NAME
5870

5971
You could make this part of a hook using Git_, Subversion_, Mercurial_, or

0 commit comments

Comments
 (0)