Skip to content

Commit b186891

Browse files
authored
Merge pull request #9091 from readthedocs/humitos/docs-linkcheck
2 parents 2054da8 + 58dec9f commit b186891

14 files changed

+12
-17
lines changed

.readthedocs.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ build:
1414
os: ubuntu-20.04
1515
tools:
1616
python: "3.8"
17+
jobs:
18+
pre_build:
19+
- sphinx-build -W --keep-going -q -b linkcheck -d _build/doctrees docs/ _build/linkcheck
1720

1821
search:
1922
ranking:

docs/dev/design/in-doc-search-ui.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ The final result may look something like this:
2020

2121
.. figure:: /_static/images/design-docs/in-doc-search-ui/in-doc-search-ui-demo.gif
2222
:align: center
23-
:target: /_static/images/design-docs/in-doc-search-ui/in-doc-search-ui-demo.gif
2423

2524
Short demo
2625

docs/dev/i18n.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ not compile the translation files, so you have to do this after the pull (see
295295
the `Compiling to MO`_ section).
296296

297297
For more information about the ``tx`` command, read the `Transifex client's
298-
help pages <http://help.transifex.com/features/client/>`_.
298+
help pages <https://docs.transifex.com/client/introduction/>`_.
299299

300300

301301
.. note::

docs/dev/install.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,6 @@ For others, the webhook will simply fail to connect when there are new commits t
204204
.. figure:: /_static/images/development/bitbucket-oauth-setup.png
205205
:align: center
206206
:figwidth: 80%
207-
:target: /_static/images/development/bitbucket-oauth-setup.png
208207

209208
Configuring an OAuth consumer for local development on Bitbucket
210209

docs/user/automatic-redirects.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ For example::
2727
docs.readthedocs.io -> docs.readthedocs.io/en/latest/
2828
www.pip-installer.org -> www.pip-installer.org/en/latest/
2929

30-
This only works for the root URL, not for internal pages. It's designed to redirect people from http://pip.readthedocs.io/ to the default version of your documentation, since serving up a 404 here would be a pretty terrible user experience. (If your "develop" branch was designated as your default version, then it would redirect to http://pip.readthedocs.io/en/develop.) But, it's not a universal redirecting solution. So, for example, a link to an internal page like http://pip.readthedocs.io/usage.html doesn't redirect to http://pip.readthedocs.io/en/latest/usage.html.
30+
This only works for the root URL, not for internal pages. It's designed to redirect people from ``http://pip.readthedocs.io/`` to the default version of your documentation, since serving up a 404 here would be a pretty terrible user experience. (If your "develop" branch was designated as your default version, then it would redirect to ``http://pip.readthedocs.io/en/develop``.) But, it's not a universal redirecting solution. So, for example, a link to an internal page like ``http://pip.readthedocs.io/usage.html`` doesn't redirect to ``http://pip.readthedocs.io/en/latest/usage.html``.
3131

32-
The reasoning behind this is that RTD organizes the URLs for docs so that multiple translations and multiple versions of your docs can be organized logically and consistently for all projects that RTD hosts. For the way that RTD views docs, http://pip.readthedocs.io/en/latest/ is the root directory for your default documentation in English, not http://pip.readthedocs.io/. Just like http://pip.readthedocs.io/en/develop/ is the root for your development documentation in English.
32+
The reasoning behind this is that RTD organizes the URLs for docs so that multiple translations and multiple versions of your docs can be organized logically and consistently for all projects that RTD hosts. For the way that RTD views docs, ``http://pip.readthedocs.io/en/latest/`` is the root directory for your default documentation in English, not ``http://pip.readthedocs.io/``. Just like ``http://pip.readthedocs.io/en/develop/`` is the root for your development documentation in English.
3333

3434
Among all the multiple versions of docs, you can choose which is the "default" version for RTD to display, which usually corresponds to the git branch of the most recent official release from your project.
3535

docs/user/faq.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ https://celery.readthedocs.io/projects/kombu/en/latest/
137137

138138
This also works the same for custom domains:
139139

140-
http://docs.celeryproject.org/projects/kombu/en/latest/
140+
http://docs..org/projects/kombu/en/latest/
141141

142142
You can add subprojects in the project admin dashboard.
143143

docs/user/guides/conda.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ with these contents:
134134
You can read more about the :ref:`config-file/v2:build.tools.python` configuration
135135
in our documentation.
136136

137-
.. _mamba: https://quantstack.net/mamba.html
137+
.. _mamba: https://github.com/mamba-org/mamba
138138
.. _a known issue: https://www.anaconda.com/understanding-and-improving-condas-performance/
139139

140140
Mixing conda and pip packages

docs/user/guides/technical-docs-seo-guide.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,6 @@ In Sphinx, you can customize your meta description using the following Restructu
222222
.. figure:: ../_static/images/guides/google-search-engine-results.png
223223
:align: center
224224
:figwidth: 80%
225-
:target: ../_static/images/guides/google-search-engine-results.png
226225

227226
Google search engine results showing a customized meta description
228227

docs/user/integrations.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ On Read the Docs:
108108
On your Gitea instance:
109109

110110
* Go to the :guilabel:`Settings` > :guilabel:`Webhooks` page for your project on your Gitea instance
111-
* Create a new webhook of type "Gitea"
111+
* Create a new webhook of type "Gitea"
112112
* For **URL**, use the URL of the integration on Read the Docs,
113113
found on the :guilabel:`Admin` > :guilabel:`Integrations` page
114114
* Leave the default **HTTP Method** as POST
@@ -197,7 +197,7 @@ Payload validation
197197

198198
If your project was imported through a connected account,
199199
we create a secret for every integration that offers a way to verify that a webhook request is legitimate.
200-
Currently, `GitHub <https://developer.github.com/webhooks/securing/>`__ and `GitLab <https://docs.gitlab.com/ee/user/project/integrations/webhooks.html#secret-token>`__
200+
Currently, `GitHub <https://developer.github.com/webhooks/securing/>`__ and `GitLab <https://docs.gitlab.com/ee/user/project/integrations/webhooks.html#validate-payloads-by-using-a-secret-token>`__
201201
offer a way to check this.
202202

203203
Troubleshooting

docs/user/intro/getting-started-with-mkdocs.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,15 +54,14 @@ You can make changes to your Markdown files and your docs will automatically reb
5454

5555
.. figure:: /_static/images/first-steps/mkdocs-hello-world.png
5656
:figwidth: 500px
57-
:target: /_static/images/first-steps/mkdocs-hello-world.png
5857
:align: center
5958

6059
Your MkDocs project is built
6160

6261
Once you have your documentation in a public repository such as GitHub, Bitbucket, or GitLab,
6362
you can start using Read the Docs by :doc:`importing your docs </intro/import-guide>`.
6463

65-
.. _install MkDocs: https://www.mkdocs.org/#installation
64+
.. _install MkDocs: https://www.mkdocs.org/user-guide/installation/
6665

6766
.. warning::
6867

docs/user/intro/getting-started-with-sphinx.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@ Open this file in your web browser to see your docs.
6262

6363
.. figure:: /_static/images/first-steps/sphinx-hello-world.png
6464
:figwidth: 500px
65-
:target: /_static/images/first-steps/sphinx-hello-world.png
6665
:align: center
6766

6867
Your Sphinx project is built

docs/user/intro/import-guide.rst

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ these properties, and then click **Next** to
2626
.. figure:: ../_static/images/first-steps/import-a-repository.png
2727
:align: right
2828
:figwidth: 300px
29-
:target: ../_static/images/first-steps/import-a-repository.png
3029

3130
Importing a repository
3231

@@ -60,7 +59,6 @@ for more information on this process.
6059

6160
.. figure:: ../_static/images/first-steps/admin-panel.png
6261
:figwidth: 400px
63-
:target: ../_static/images/first-steps/admin-panel.png
6462

6563

6664
Building your documentation

docs/user/pull-requests.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ Warning banner
3030
:align: center
3131
:alt: GitHub build status reporting for pull requests.
3232
:figwidth: 80%
33-
:target: ../_static/images/guides/github-build-status-reporting.gif
3433

3534
GitHub build status reporting
3635

docs/user/tutorial/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,7 @@ For that, first navigate to your GitHub repository, click on the branch selector
467467
type ``1.0.x``, and click on "Create branch: 1.0.x from 'main'"
468468
(more information `on their documentation`__).
469469

470-
__ https://docs.github.com/en/github/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/creating-and-deleting-branches-within-your-repository
470+
__ https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/creating-and-deleting-branches-within-your-repository
471471

472472
Next, go to your :term:`project home`, click on the :guilabel:`Versions` button,
473473
and under "Active Versions" you will see two entries:

0 commit comments

Comments
 (0)