Skip to content

Commit 76972df

Browse files
authored
Merge pull request readthedocs#5161 from rexzing/guilabel-reformatting
Docs reformatting with :guilabel:
2 parents a0b59fe + 2ec2bba commit 76972df

12 files changed

+50
-42
lines changed

docs/advertising/ethical-advertising.rst

+4-5
Original file line numberDiff line numberDiff line change
@@ -154,15 +154,14 @@ or a `Supporter <https://readthedocs.org/sustainability/#donations>`_.
154154

155155
Users can opt out of seeing paid advertisements on documentation pages:
156156

157-
* Go to the drop down user menu in the top right of the Read the Docs dashboard and clicking **Settings** (https://readthedocs.org/accounts/edit/).
158-
* On the **Advertising** tab, you can deselect **See paid advertising**.
157+
* Go to the drop down user menu in the top right of the Read the Docs dashboard and clicking :guilabel:`Settings` (https://readthedocs.org/accounts/edit/).
158+
* On the :guilabel:`Advertising` tab, you can deselect **See paid advertising**.
159159

160160
Project owners can also opt out of paid advertisements for their projects.
161161
You can change these options:
162162

163-
* Click on your **Project** page (`/projects/<slug>/`)
164-
* Click the **Admin** dashboard link
165-
* Choose the **Advertising** submenu on the left side
163+
* Go to your **project** page (`/projects/<slug>/`)
164+
* Go to :guilabel:`Admin` > :guilabel:`Advertising`
166165
* Change your advertising settings
167166

168167
Project opt out options include:

docs/canonical.rst

+6-3
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,18 @@ Example
1515

1616
Fabric hosts their docs on Read the Docs.
1717
They mostly use their own domain for them ``http://docs.fabfile.org``.
18-
This means that Google will index both ``http://fabric-docs.readthedocs.io`` and ``http://docs.fabfile.org`` for their documentation.
18+
This means that Google will index both ``http://fabric-docs.readthedocs.io`` and
19+
``http://docs.fabfile.org`` for their documentation.
1920

2021
Fabric will want to set ``http://docs.fabfile.org`` as their canonical URL.
21-
This means that when Google indexes ``http://fabric-docs.readthedocs.io``, it will know that it should really point at ``http://docs.fabfile.org``.
22+
This means that when Google indexes ``http://fabric-docs.readthedocs.io``,
23+
it will know that it should really point at ``http://docs.fabfile.org``.
2224

2325
Enabling
2426
--------
2527

26-
You can set the canonical URL for your project in the Project Admin page. Check your `Domains` tab for the domains that we know about.
28+
You can set the canonical URL for your project in the Project Admin page.
29+
Check your :guilabel:`Admin` > :guilabel:`Domains` page for the domains that we know about.
2730

2831
Implementation
2932
--------------

docs/commercial/custom_domains.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ you can still host with us.
1919
We require two steps from your side:
2020

2121
* Add a CNAME record in your DNS that points to our servers ``<organization-slug>.users.readthedocs.com``
22-
* Set your project's Privacy Level to *Public* from **Project Admin > Advance Settings**.
23-
* Add a Domain in the **Project Admin > Domains** page for your project.
22+
* Set your project's Privacy Level to *Public* from :guilabel:`Admin` > :guilabel:`Advance Settings`.
23+
* Add a Domain in the :guilabel:`Admin` > :guilabel:`Domains` page for your project.
2424

2525
.. note:: The domain that should be used is the actual subdomain that you want your docs served on.
2626
Generally it will be ``docs.projectname.com``.

docs/custom_installs/local_rtd_vm.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ Log into ``http://[VM IP ADDRESS]:[PORT]`` using the django superuser creds and
160160
For a new project
161161
`````````````````
162162

163-
1. Select **<username> > Add Project** from the user menu.
163+
1. Select :guilabel:`<username>` > :guilabel:`Add Project` from the user menu.
164164
2. Click **Manually Import Project**.
165165
3. Provide the following information in the **Project Details** page:
166166

@@ -174,7 +174,7 @@ For a new project
174174
For an existing project
175175
```````````````````````
176176

177-
1. Select **<username> > Projects** from the user menu.
177+
1. Select :guilabel:`<username>` > :guilabel:`Projects` from the user menu.
178178
2. Select the relevant project from the **Projects** list.
179179
3. Select latest from the **Build a version** dropdown.
180180
4. Click **Build**. This will take you to the Builds tab where the progress status is displayed. This may take some time.

docs/guides/build-notifications.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ This makes sure you know when your builds have failed.
99

1010
Take these steps to enable build notifications using email:
1111

12-
* Go to **Admin > Notifications** in your project.
12+
* Go to :guilabel:`Admin` > :guilabel:`Notifications` in your project.
1313
* Fill in the **Email** field under the **New Email Notifications** heading
1414
* Submit the form
1515

@@ -22,7 +22,7 @@ Read the Docs can also send webhooks when builds fail.
2222

2323
Take these steps to enable build notifications using a webhook:
2424

25-
* Go to **Admin > Notifications** in your project.
25+
* Go to :guilabel:`Admin` > :guilabel:`Notifications` in your project.
2626
* Fill in the **URL** field under the **New Webhook Notifications** heading
2727
* Submit the form
2828

docs/guides/environment-variables.rst

+5-3
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,18 @@ All these variables will be exposed to all the commands executed when building y
99

1010
To define an environment variable, you need to
1111

12-
#. Go to your project **Admin > Environment Variables**
12+
#. Go to your project :guilabel:`Admin` > :guilabel:`Environment Variables`
1313
#. Click on "Add Environment Variable" button
1414
#. Input a ``Name`` and ``Value`` (your secret needed here)
1515
#. Click "Save" button
1616

1717
.. note::
1818

19-
Values will never be exposed to users, even to owners of the project. Once you create an environment variable you won't be able to see its value anymore because of security purposes.
19+
Values will never be exposed to users, even to owners of the project.
20+
Once you create an environment variable you won't be able to see its value anymore because of security purposes.
2021

21-
After adding an environment variable from your project's admin, you can access it from your build process using Python, for example:
22+
After adding an environment variable from your project's admin, you can access it from your build process using Python,
23+
for example:
2224

2325
.. code-block:: python
2426

docs/guides/google-analytics.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Enabling Google Analytics on your Project
44
Read the Docs has native support for Google Analytics.
55
You can enable it by:
66

7-
* Going to **Admin > Advanced Settings** in your project.
7+
* Going to :guilabel:`Admin` > :guilabel:`Advanced Settings` in your project.
88
* Fill in the **Analytics code** heading with your Google Tracking ID (example `UA-123456674-1`)
99

1010
Once your documentation rebuilds it will include your Analytics tracking code and start sending data.

docs/guides/wipe-environment.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Docs to create a new fresh one.
1212

1313
Follow these steps to wipe the build environment:
1414

15-
* Go to **Versions**
15+
* Go to :guilabel:`Versions`
1616
* Click on the **Edit** button of the version you want to wipe on the
1717
right side of the page
1818
* Go to the bottom of the page and click the **wipe** link, next to

docs/intro/import-guide.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ Add an optional homepage URL and some tags, and then click **Next**.
4242

4343
Once your project is created, you'll need to manually configure the repository
4444
webhook if you would like to have new changes trigger builds for your
45-
project on Read the Docs. Go to your project's **Integrations** page to
45+
project on Read the Docs. Go to your project's :guilabel:`Admin` > :guilabel:`Integrations` page to
4646
configure a new webhook, or see :ref:`our steps for webhook creation <webhooks:Webhook Creation>`
4747
for more information on this process.
4848

docs/single_version.rst

+7-3
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,17 @@ You can see a live example of this at http://www.contribution-guide.org
1212
Enabling
1313
~~~~~~~~
1414

15-
You can toggle the "Single Version" option on or off for your project in the Project Admin page. Check your `dashboard`_ for a list of your projects.
15+
You can toggle the "Single Version" option on or off for your project in the Project Admin page.
16+
Check your :guilabel:`dashboard` for a list of your projects.
1617

1718
Effects
1819
~~~~~~~
1920

20-
Links generated on Read the Docs will now point to the proper URL. For example, if pip was set as a "Single Version" project, then links to its documentation would point to ``http://pip.readthedocs.io/`` rather than the default ``http://pip.readthedocs.io/en/latest/``.
21+
Links generated on Read the Docs will now point to the proper URL. For example,
22+
if pip was set as a "Single Version" project, then links to its documentation would point to
23+
``http://pip.readthedocs.io/`` rather than the default ``http://pip.readthedocs.io/en/latest/``.
2124

22-
Documentation at ``/<language>/<default_version>/`` will still be served for backwards compatibility reasons. However, our usage of :doc:`canonical` should stop these from being indexed by Google.
25+
Documentation at ``/<language>/<default_version>/`` will still be served for backwards compatibility reasons.
26+
However, our usage of :doc:`canonical` should stop these from being indexed by Google.
2327

2428
.. _dashboard: https://readthedocs.org/dashboard/

docs/versions.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,4 +63,4 @@ This is a banner that appears on the top of every page of your docs that aren't
6363
This banner has a text with a link redirecting the users to the latest version of your docs.
6464

6565
This feature is disabled by default on new projects,
66-
you can enable it in the admin section of your docs (Advanced Settings).
66+
you can enable it in the admin section of your docs (:guilabel:`Admin` > :guilabel:`Advanced Settings`).

docs/webhooks.rst

+18-18
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ a webhook will be set up automatically for your repository. However, if your
3030
project was not imported through a connected account, you may need to
3131
manually configure a webhook for your project.
3232

33-
To manually set up a webhook, click **Add integration** on your project's
34-
**Integrations** Admin dashboard page and select the integration type you'd like
35-
to add. After you have added the integration, you'll see a link to information about the integration.
33+
To manually set up a webhook, go to :guilabel:`Admin` > :guilabel:`Integrations` > :guilabel:`Add integration`
34+
dashboard page and select the integration type you'd like to add.
35+
After you have added the integration, you'll see a link to information about the integration.
3636

3737
As an example, the URL pattern looks like this: *readthedocs.org/api/v2/webhook/<project-name>/<id>/*.
3838

@@ -43,18 +43,20 @@ Use this URL when setting up a new webhook with your provider -- these steps var
4343
GitHub
4444
~~~~~~
4545

46-
* Go to the **Settings** page for your project
47-
* Click **Webhooks** and then **Add webhook**
46+
* Go to the :guilabel:`Settings` page for your project
47+
* Click :guilabel:`Webhooks` > :guilabel:`Add webhook`
4848
* For **Payload URL**, use the URL of the integration on Read the Docs,
49-
found on the project's **Integrations** Admin dashboard page. You may need to prepend *https://* to the URL.
49+
found on the project's :guilabel:`Admin` > :guilabel:`Integrations` page.
50+
You may need to prepend *https://* to the URL.
5051
* For **Content type**, both *application/json* and
5152
*application/x-www-form-urlencoded* work
5253
* Select **Let me select individual events**,
5354
and mark **Pushes**, **Branch or tag creation**, and **Branch or tag deletion** events
5455
* Leave the **Secrets** field black
5556
* Finish by clicking **Add webhook**
5657

57-
You can verify if the webhook is working at the bottom of the GitHub page under **Recent Deliveries**. If you see a Response 200, then the webhook is correctly configured.
58+
You can verify if the webhook is working at the bottom of the GitHub page under **Recent Deliveries**.
59+
If you see a Response 200, then the webhook is correctly configured.
5860
For a 403 error, it's likely that the Payload URL is incorrect.
5961

6062
.. note:: The webhook token, intended for the GitHub **Secret** field, is not yet implemented.
@@ -64,10 +66,9 @@ For a 403 error, it's likely that the Payload URL is incorrect.
6466
Bitbucket
6567
~~~~~~~~~
6668

67-
* Go to the **Settings** page for your project
68-
* Click **Webhooks** and then **Add webhook**
69+
* Go to the :guilabel:`Settings` > :guilabel:`Webhooks` > :guilabel:`Add webhook` page for your project
6970
* For **URL**, use the URL of the integration on Read the Docs,
70-
found on the **Dashboard** > **Admin** > **Integrations** page
71+
found on the :guilabel:`Admin` > :guilabel:`Integrations` page
7172
* Under **Triggers**, **Repository push** should be selected
7273
* Finish by clicking **Save**
7374

@@ -76,10 +77,9 @@ Bitbucket
7677
GitLab
7778
~~~~~~
7879

79-
* Go to the **Settings** page for your project
80-
* Click **Integrations**
80+
* Go to the :guilabel:`Settings` > :guilabel:`Integrations` page for your project
8181
* For **URL**, use the URL of the integration on Read the Docs,
82-
found on the **Dashboard** > **Admin** > **Integrations** page
82+
found on the :guilabel:`Admin` > :guilabel:`Integrations` page
8383
* Leave the default **Push events** selected and mark **Tag push events** also
8484
* Finish by clicking **Add Webhook**
8585

@@ -89,9 +89,9 @@ Using the generic API integration
8989
---------------------------------
9090

9191
For repositories that are not hosted with a supported provider, we also offer a
92-
generic API endpoint for triggering project builds. Similar to webhook
93-
integrations, this integration has a specific URL, found on the project's
94-
**Integrations** Admin dashboard page on readthedocs.org.
92+
generic API endpoint for triggering project builds. Similar to webhook integrations,
93+
this integration has a specific URL, which can be found on the project's **Integrations** dashboard page
94+
(:guilabel:`Admin` > :guilabel:`Integrations`).
9595

9696
Token authentication is required to use the generic endpoint, you will find this
9797
token on the integration details page. The token should be passed in as a
@@ -109,8 +109,8 @@ branches
109109
Default: **latest**
110110

111111
token
112-
The integration token. You'll find this value on the project's
113-
**Integrations** Admin dashboard page.
112+
The integration token found on the project's **Integrations** dashboard page
113+
(:guilabel:`Admin` > :guilabel:`Integrations`).
114114

115115
For example, the cURL command to build the ``dev`` branch, using the token
116116
``1234``, would be::

0 commit comments

Comments
 (0)