Skip to content

Commit 390a4ce

Browse files
authored
Merge pull request #6093 from saadmk11/pr-builder-guide
Add PR Builder guide to docs
2 parents 46be597 + 04a15f5 commit 390a4ce

File tree

3 files changed

+53
-0
lines changed

3 files changed

+53
-0
lines changed
Loading
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
Autobuild Documentation for Pull Requests
2+
=========================================
3+
4+
Read the Docs allows autobuilding documentation for pull/merge requests for GitHub or GitLab projects.
5+
This feature is currently available under a :doc:`Feature Flag </guides/feature-flags>`.
6+
So, you can enable this feature by sending us an `email <mailto:[email protected]>`__ including your project URL.
7+
8+
Features
9+
========
10+
11+
- **Build on Pull/Merge Request Event:** We create an external version and trigger a build for that version
12+
when we receive pull/merge request open event from the webhook.
13+
We also trigger a new build when a new commit has been pushed to the Pull/Merge Request.
14+
15+
- **Warning Banner for Pull/Merge Request Documentation:** While building documentation for pull/merge requests
16+
we add a warning banner at the top of those documentations to let the users know that
17+
this documentation was generated from pull/merge requests and is not the main documentation for the project.
18+
19+
- **Send Build Status Notification:** We send build status reports to the status API of the provider (e.g. GitHub, GitLab).
20+
When a build is triggered for a pull/merge request we send build pending notification with the build URL
21+
and after the build has finished we send success notification if the build succeeded without any error
22+
or failure notification if the build failed.
23+
24+
.. figure:: ../_static/images/guides/github-build-status-reporting.gif
25+
:align: center
26+
:alt: GitHub Build Status Reporting for Pull Requests.
27+
:figwidth: 80%
28+
:target: ../_static/images/guides/github-build-status-reporting.gif
29+
30+
GitHub Build Status Reporting for Pull Requests
31+
32+
Troubleshooting
33+
===============
34+
35+
After the feature is enabled on your project if everything does not work as expected,
36+
some common causes might be:
37+
38+
#. Project repository should be from GitHub or GitLab. This feature is only available for GitHub or GitLab.
39+
40+
#. Social Account (GitHub, Gitlab) is not connected with Read the Docs account.
41+
If your project repository provider is GitHub or GitLab you need to make sure
42+
that you Read the Docs account is connected with that providers social account.
43+
You can check this by going to your `profile settings`_.
44+
45+
#. Webhook is not properly setup. You need to make sure your webhook is properly setup
46+
to handle events. You can setup or ``re-sync`` the webhook from you projects admin dashboard.
47+
Learn more about setting up webhooks from our :doc:`Webhook Documentation </webhooks>`.
48+
49+
If you have tried all the above troubleshooting and still getting issues,
50+
please let us know by sending us an `email <mailto:[email protected]>`__.
51+
52+
.. _profile settings: https://readthedocs.org/accounts/social/connections/

docs/guides/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ These guides will help you customize or tune aspects of the Read the Docs build
3232
.. toctree::
3333
:maxdepth: 1
3434

35+
autobuild-docs-for-pull-requests
3536
build-notifications
3637
build-using-too-many-resources
3738
technical-docs-seo-guide

0 commit comments

Comments
 (0)