Skip to content

Commit 37b8e43

Browse files
authored
Docs: Relabel howto guides for Git repository configuration (Diátaxis) (#10247)
* WIP: Relabel how-to guides to create a bit more clarity on Git repo guides * Clarify headers and labels for Git repository guides * Rename user/connected-accounts.rst -> user/guides/setup/git-repo-automatic.rst * Rename user/guides/git-integrations.rst -> user/guides/setup/git-repo-manual.rst * Tweak introduction to "How to automatically configure a Git repository" * Use accurate reference * Clarify seealso * Fix additional references that were intended for connecting the account * Add guide contents seem more appropriate * Add "Others" tab so it's clear we also support other providers * nice with these clarifications, thanks for review @ericholscher * Update references that broke after merging main
1 parent 08ed9aa commit 37b8e43

12 files changed

+88
-41
lines changed

docs/dev/install.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -214,8 +214,8 @@ debugging currently.
214214
Configuring connected accounts
215215
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
216216

217-
These are optional steps to setup the :doc:`connected accounts <rtd:connected-accounts>`
218-
(GitHub, GitLab, and Bitbucket) in your development environment.
217+
These are optional steps to setup the :doc:`connected accounts <rtd:guides/connecting-git-account>`
218+
(|git_providers_and|) in your development environment.
219219
This will allow you to login to your local development instance
220220
using your GitHub, Bitbucket, or GitLab credentials
221221
and this makes the process of importing repositories easier.

docs/user/glossary.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -137,4 +137,4 @@ so that you have a reference for how we're using them.
137137
* Git providers have webhooks which are special URLs that Read the Docs can call in order to notify about documentation builds.
138138
* Read the Docs has a unique webhook for each project that the Git provider calls when changes happen in Git.
139139

140-
See also: :doc:`/guides/git-integrations` and :doc:`/build-notifications`
140+
See also: :doc:`/guides/setup/git-repo-manual` and :doc:`/build-notifications`

docs/user/guides/connecting-git-account.rst

+3-3
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,9 @@ Now your connection is ready and you will be able to import and configure Git re
4747

4848
.. seealso::
4949

50-
:doc:`/connected-accounts`
51-
Learn about what a connected account with your Git provider is used for
52-
and the permissions required for connecting accounts.
50+
:doc:`/guides/setup/git-repo-automatic`
51+
Learn how the connected account is used for automatically configuring Git repositories and Read the Docs projects
52+
and which **permissions** that are required from your Git provider.
5353

5454
Removing a connection
5555
---------------------

docs/user/guides/importing-private-repositories.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ Git repositories aren't automatically listed for setups that are not connected t
3131
:align: right
3232
:alt: A cropped screenshot showing the first step of a manual import on |com_brand|.
3333

34-
That is the reason why this guide is an extension of the :doc:`manual Git repository setup </guides/git-integrations>`,
34+
That is the reason why this guide is an extension of the :doc:`manual Git repository setup </guides/setup/git-repo-manual>`,
3535
with the following exception:
3636

3737
#. Go to https://readthedocs.com/dashboard/import/manual/
@@ -134,4 +134,4 @@ Finally, since this is a manual project import:
134134
**Don't forget to add the Read the Docs webhook!**
135135

136136
To automatically trigger new builds on Read the Docs,
137-
you'll need to manually add a webhook, see :doc:`/guides/git-integrations`.
137+
you'll need to manually add a webhook, see :doc:`/guides/setup/git-repo-manual`.

docs/user/guides/pull-requests.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ Build status is not being reported to your Git provider
7474
your account with your Git provider.
7575

7676
.. seealso::
77-
- :ref:`guides/git-integrations:Debugging webhooks`
77+
- :ref:`guides/setup/git-repo-manual:Debugging webhooks`
7878
- :ref:`github-permission-troubleshooting`
7979

8080
.. _OAuth App: https://github.com/settings/applications

docs/user/guides/setup-single-sign-on-github-gitlab-bitbucket.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ User setup
1616
~~~~~~~~~~
1717

1818
Users in your organization must have their GitHub, Bitbucket, or GitLab
19-
:doc:`account connected </connected-accounts>`,
19+
:doc:`account connected </guides/connecting-git-account>`,
2020
otherwise they won't have access to any project on Read the Docs after performing this change.
2121
You can read more about `granting permissions on GitHub`_ in their documentation.
2222

docs/user/connected-accounts.rst renamed to docs/user/guides/setup/git-repo-automatic.rst

+43-14
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,56 @@
1-
How to connect your Git repository
2-
==================================
1+
How to automatically configure a Git repository
2+
===============================================
33

44
In this article, we explain how connecting your Read the Docs account to |git_providers_or|
5-
automatically configures your Git repository and your Read the Docs project.
5+
makes Read the Docs able to automatically configure your imported Git repositories and your Read the Docs projects.
66

77
✅️ Signed up with your Git provider?
88
If you signed up or logged in to Read the Docs with your |git_providers_or|
99
credentials, you're all done. Your account is connected.
10-
The permissions that are granted are :ref:`explained below <connected-accounts:Permissions for connected accounts>`.
11-
⬇️ Signed up with your email address?
10+
11+
The rest of this guide helps to understand how the automatic configuration works.
12+
13+
⏩️️ Signed up with your email address?
1214
If you have signed up to Read the Docs with your email address,
1315
you can add the connection to the Git provider afterwards.
14-
See: :doc:`/guides/connecting-git-account`
16+
You can also add a connection to an additional Git provider this way.
17+
18+
Please follow :doc:`/guides/connecting-git-account` in this case.
19+
20+
Automatic configuration
21+
-----------------------
22+
23+
When your Read the Docs account is connected to |git_providers_or| and you import a Git repository,
24+
the integration will automatically be configured on the Read the Docs project and on your Git repository.
25+
26+
Here is an outline of what happens:
27+
28+
#. A list of repositories that you have access to are automatically listed on Read the Docs' project import.
29+
#. You choose a Git repository from the list (see :doc:`/intro/import-guide`).
30+
#. Data about the repository is now fetched using the account connection and you are asked to confirm the setup.
31+
#. When Read the Docs creates your project,
32+
it automatically sets up an integration with the Git provider,
33+
and creates an incoming webhook whereby Read the Docs is notified of all future changes to commits, branches and tags in the Git repository.
34+
#. Your project's incoming webhook is automatically added to your Git repository's settings using the account connection.
35+
#. Read the Docs also configures your project to use the Git provider's webhook via your account connection,
36+
so your project is ready to enable :doc:`Pull Request builds </guides/pull-requests>`.
37+
38+
After the import,
39+
you can continue to configure the project.
40+
All settings can be modified,
41+
including the ones that were automatically created.
42+
43+
.. TODO: The following is for a feature reference.
1544
16-
If you are going to import repositories from |git_providers_or|,
17-
we recommend that you connect your Read the Docs account to your Git provider.
45+
.. If you are going to import repositories from |git_providers_or|,
46+
.. we recommend that you connect your Read the Docs account to your Git provider.
1847
19-
Connecting your account allows for:
48+
.. Connecting your account allows for:
2049
21-
* Easy import of your repositories.
22-
* Automatic configuration of your repository :doc:`/integrations`.
23-
which allow Read the Docs to build your docs on every change to your repository
24-
* Logging into Read the Docs with your |git_providers_or| credentials.
50+
.. * Easy import of your repositories.
51+
.. * Automatic configuration of your repository :doc:`/integrations`.
52+
.. which allow Read the Docs to build your docs on every change to your repository
53+
.. * Logging into Read the Docs with your |git_providers_or| credentials.
2554
2655
2756
.. seealso::
@@ -51,7 +80,7 @@ By granting Read the Docs the requested permissions,
5180
we are issued a secret OAuth token from your Git provider.
5281

5382
Using the secret token,
54-
we can automatically configure the repository that you select in the :doc:`project import <intro/import-guide>`.
83+
we can automatically configure the repository that you select in the :doc:`project import </intro/import-guide>`.
5584
We also use the token to send back build statuses and preview URLs for :doc:`pull requests </pull-requests>`.
5685

5786
.. _OAuth: https://en.wikipedia.org/wiki/OAuth

docs/user/guides/git-integrations.rst renamed to docs/user/guides/setup/git-repo-manual.rst

+26-8
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
How to manually connect your Git repository
2-
===========================================
1+
How to manually configure a Git repository
2+
==========================================
33

44
In this guide,
5-
you will find the simple steps to manually integrating your Read the Docs project with all Git providers that supports our generic API.
5+
you will find the simple steps to manually integrating your Read the Docs project with all Git providers that support our generic API.
66
This includes most Git providers, for example |git_providers_and|.
77

8-
.. note::
9-
10-
If your account is connected to the provider,
11-
we'll try to setup the integration automatically.
12-
If something fails, you can still setup the integration manually.
8+
.. seealso::
139

10+
:doc:`/guides/setup/git-repo-automatic`
11+
You are now reading the guide to configuring a Git repository manually.
12+
If your Read the Docs account is :doc:`connected to the Git provider </guides/connecting-git-account>`,
13+
we can setup the integration automatically.
1414

1515

1616
..
@@ -32,6 +32,8 @@ This includes most Git providers, for example |git_providers_and|.
3232
Provider-specific instructions
3333
------------------------------
3434

35+
You need to configure your Git provider to call a webhook on Read the Docs.
36+
This will make Read the Docs build your documentation when a new commit, branch or tag is pushed to your repository.
3537

3638
.. tabs::
3739

@@ -110,6 +112,10 @@ Provider-specific instructions
110112

111113
.. _issue #8364: https://github.com/readthedocs/readthedocs.org/issues/8364
112114

115+
.. tab:: Others
116+
117+
Other providers are supported through a generic webhook, see :ref:`webhook-integration-generic`.
118+
113119

114120
Additional integration
115121
----------------------
@@ -125,6 +131,18 @@ As an example, the URL pattern looks like this: ``https://readthedocs.org/api/v2
125131
Use this URL when setting up a new integration with your provider ^^ these steps vary depending on the provider.
126132

127133

134+
.. warning::
135+
136+
Git repositories that are imported manually **do not** have the required setup to send back a **commit status**.
137+
If you need this integration,
138+
you have to :doc:`configure the repository automatically </guides/setup/git-repo-automatic>`.
139+
140+
.. seealso::
141+
142+
:doc:`/guides/build-notifications`
143+
Learn how to add custom build notifications.
144+
145+
128146
.. _webhook-integration-generic:
129147

130148
Using the generic API integration

docs/user/guides/setup/index.rst

+5-5
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ The following how-to guides help you solve common tasks and challenges in the se
66
⏩️ :doc:`Connecting your Read the Docs account to your Git provider </guides/connecting-git-account>`
77
Steps to connect an account on |git_providers_or| with your Read the Docs account.
88

9-
⏩️ :doc:`Connecting your Git repository automatically </connected-accounts>`
9+
⏩️ :doc:`Configuring a Git repository automatically </guides/setup/git-repo-automatic>`
1010
Once your account is connected to your Git provider,
1111
adding and configuring a Git repository **automatically** is possible for |git_providers_and|.
1212

13-
⏩️ :doc:`Connecting your Git repository manually </guides/git-integrations>`
13+
⏩️ :doc:`Configuring a Git repository manually </guides/setup/git-repo-manual>`
1414
If you are connecting a Git repository from another provider (for instance Gitea or Codeberg),
15-
this guide tells you how to add and configure the Webhook **manually**.
15+
this guide tells you how to add and configure the webhook **manually**.
1616

1717
⏩️ :doc:`Managing custom domains </guides/custom-domains>`
1818
Hosting your documentation using your own domain name, such as ``docs.example.com``.
@@ -43,8 +43,8 @@ The following how-to guides help you solve common tasks and challenges in the se
4343
:hidden:
4444

4545
Connecting your Read the Docs account to your Git provider </guides/connecting-git-account>
46-
Connecting your Git repository automatically </connected-accounts>
47-
Connecting your Git repository manually </guides/git-integrations>
46+
Configuring a Git repository automatically </guides/setup/git-repo-automatic>
47+
Configuring a Git repository manually </guides/setup/git-repo-manual>
4848
Managing custom domains </guides/custom-domains>
4949
Managing subprojects </guides/subprojects>
5050
Hiding a version </guides/hiding-a-version>

docs/user/integrations.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ Your version setup is ultimately captured by the :term:`flyout menu`.
6262

6363
.. seealso::
6464

65-
:doc:`/guides/git-integrations`
65+
:doc:`/guides/setup/git-repo-manual`
6666
Information on setting up your Git repository to make Read the Docs automatically build your documentation project.
6767
:doc:`/automation-rules`
6868
Information on setting up your Git repository to make Read the Docs automatically build your documentation project.

docs/user/intro/import-guide.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ For private repositories, please use :doc:`Read the Docs for Business </commerci
1111
Automatically import your docs
1212
------------------------------
1313

14-
If you have :doc:`connected your Read the Docs account <../connected-accounts>` to GitHub, Bitbucket, or GitLab,
14+
If you have :doc:`connected your Read the Docs account </guides/connecting-git-account>` to GitHub, Bitbucket, or GitLab,
1515
you will see a list of your repositories that we are able to import.
1616
To import one of these projects, just click the import
1717
icon next to the repository you'd like to import. This will bring up a form that
@@ -55,7 +55,7 @@ configure a new webhook.
5555

5656
.. seealso::
5757

58-
:doc:`/guides/git-integrations`
58+
:doc:`/guides/setup/git-repo-manual`
5959
Once you have imported your git project, use this guide to manually set up basic and additional *webhook* integration.
6060

6161
.. note::

docs/user/tutorial/index.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ On the authorization page, click the green :guilabel:`Authorize readthedocs` but
8181
that ensure that the workflow is as smooth as possible,
8282
like installing :term:`webhooks <webhook>`.
8383
If you want to learn more,
84-
check out :ref:`connected-accounts:permissions for connected accounts`.
84+
check out :ref:`guides/setup/git-repo-automatic:permissions for connected accounts`.
8585

8686
After that, you will be redirected to Read the Docs,
8787
where you will need to confirm your e-mail and username.

0 commit comments

Comments
 (0)