@@ -3,22 +3,35 @@ Customization
33
44.. _plugins :
55
6+ Nox Tasks `links:x `
7+ ---------------------
8+
9+ We have two nox tasks to check links present in our 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+
619Nox Task Plugins
720----------------
821
9- Some Nox task allow for implementing custom hooks to be executed within the Nox workflow.
22+ Some Nox tasks allow for implementing custom hooks to be executed within the Nox workflow.
1023To ensure a predictable environment, plugins should be written to handle exceptions gracefully.
1124If a plugin encounters a critical situation where it cannot continue execution, it should call the ``error ``
1225method on the session object, effectively halting the execution process.
1326This action may have a widespread impact by forcibly stopping execution, potentially affecting other plugins and code paths.
1427
1528.. attention :: Doing a hard exit using ``session.error`` should be an measure of last resort.
1629
17- .. note ::
30+ .. note ::
1831
19- Even though the plugin mechanism utilizes `pluggy <https://pluggy.readthedocs.io/en/stable/ >`_ under the hood, it does
20- not currently support all scenarios and features with which one may be familiar from pytest, or other tools and
21- frameworks based on pluggy. Nevertheless, a look at pluggy's `documentation <https://pluggy.readthedocs.io/en/stable/ >`_
32+ Even though the plugin mechanism utilizes `pluggy <https://pluggy.readthedocs.io/en/stable/ >`_ under the hood, it does
33+ not currently support all scenarios and features with which one may be familiar from pytest, or other tools and
34+ frameworks based on pluggy. Nevertheless, a look at pluggy's `documentation <https://pluggy.readthedocs.io/en/stable/ >`_
2235 can definitely enhance understanding of the hook mechanism.
2336
2437
0 commit comments