Skip to content

Commit 893fefb

Browse files
committed
Move links:x to documentation/index & documentation/troubleshooting
1 parent 5145432 commit 893fefb

File tree

3 files changed

+30
-14
lines changed

3 files changed

+30
-14
lines changed

doc/user_guide/customization.rst

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,6 @@ Customization
33

44
.. _plugins:
55

6-
Nox Tasks `links:x`
7-
---------------------
8-
9-
PTB offers two nox sessions to check hyperlinks in your documentation:
10-
* `links:list` - List all the links within the documentation
11-
* `links:check` - Checks whether all links in the documentation are accessible
12-
13-
`links:check` is run in the CI `checks.yml`. If this step fails in the CI, it will cause
14-
the build to break. Please check the output & manually resolve the issues. There might
15-
be some cases where you need to update your `doc/conf.py` with specific values for the allowed
16-
options for the [Linkcheck Builder](https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-the-linkcheck-builder).
17-
18-
196
Nox Task Plugins
207
----------------
218

doc/user_guide/features/documentation/index.rst

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,27 @@ Building documentation
1010
troubleshooting
1111

1212
In the PTB, we use sphinx to build and validate the contents of a project's
13+
documentation. All documentation is provided in the ``doc`` directory, primarily as
14+
`rst` files. The ``doc/conf.py`` acts as the configuration file for building the
1315
documentation.
1416

15-
< table>
17+
Many of the nox session checks are executed in the ``checks.yml`` so that alterations
18+
in the documentation can be directly attributed (and, if needed, fixed) in the relevant
19+
PR. The final building & serving of the documentation happens in the ``gh-pages.yml``.
20+
21+
+--------------------------+------------------+----------------------------------------+
22+
| Nox session | CI Usage | Action |
23+
+==========================+==================+========================================+
24+
| ``docs:build`` | ``checks.yml`` | Builds the documentation |
25+
+--------------------------+------------------+----------------------------------------+
26+
| ``docs:clean`` | No | Removes the documentation build folder |
27+
+--------------------------+------------------+----------------------------------------+
28+
| ``docs:multiversion`` | ``gh-pages.yml`` | Builds the multiversion documentation |
29+
+--------------------------+------------------+----------------------------------------+
30+
| ``docs:open`` | No | Opens the built documentation |
31+
+--------------------------+------------------+----------------------------------------+
32+
| ``links:check`` | ``checks.yml`` | Checks if all links in the |
33+
| | | documentation are accessible |
34+
+--------------------------+------------------+----------------------------------------+
35+
| ``links:list`` | No | Lists all links in the documentation |
36+
+--------------------------+------------------+----------------------------------------+

doc/user_guide/features/documentation/troubleshooting.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,3 +60,11 @@ of the multiversion documentation, it is likely due to the fact that the unavail
6060
documentation for those versions was not in a compatible format. In other words, there
6161
had not, for those missing versions, been a compatible setup of a Sphinx-based
6262
documentation.
63+
64+
``links:check`` breaks CI build
65+
-------------------------------
66+
``links:check`` is run in the CI ``checks.yml``. If this step fails in the CI, it will
67+
cause the build to break. Please check the output & manually resolve the issues. There
68+
might be some cases where you need to update your ``doc/conf.py`` with specific values
69+
for the allowed options for the
70+
`Linkcheck Builder <https://www.sphinx-doc.org/en/master/usage/configuration.html#options-for-the-linkcheck-builder>`__.

0 commit comments

Comments
 (0)