@@ -1048,18 +1048,19 @@ The following table gives an overview of the available Nox sessions:
10481048 :class: hypermodern-table
10491049 :widths: auto
10501050
1051- ========================================== ================================= ================== =========
1052- Session Description Python Default
1053- ========================================== ================================= ================== =========
1054- :ref: `coverage <The coverage session >` Report coverage with Coverage.py _ ``3.8 ``
1055- :ref: `docs <The docs session >` Build Sphinx _ documentation ``3.8 ``
1056- :ref: `mypy <The mypy session >` Type-check with mypy _ ``3.6 `` … ``3.8 `` ✓
1057- :ref: `pre-commit <The pre-commit session >` Lint with pre-commit _ ``3.8 `` ✓
1058- :ref: `safety <The safety session >` Scan dependencies with Safety _ ``3.8 `` ✓
1059- :ref: `tests <The tests session >` Run tests with pytest _ ``3.6 `` … ``3.8 `` ✓
1060- :ref: `typeguard <The typeguard session >` Type-check with Typeguard _ ``3.6 `` … ``3.8 `` ✓
1061- :ref: `xdoctest <The xdoctest session >` Run examples with xdoctest _ ``3.6 `` … ``3.8 ``
1062- ========================================== ================================= ================== =========
1051+ ========================================== ===================================== ================== =========
1052+ Session Description Python Default
1053+ ========================================== ===================================== ================== =========
1054+ :ref: `coverage <The coverage session >` Report coverage with Coverage.py _ ``3.8 ``
1055+ :ref: `docs <The docs session >` Build and serve Sphinx _ documentation ``3.8 ``
1056+ :ref: `docs-build <The docs-build session >` Build Sphinx _ documentation ``3.8 `` ✓
1057+ :ref: `mypy <The mypy session >` Type-check with mypy _ ``3.6 `` … ``3.8 `` ✓
1058+ :ref: `pre-commit <The pre-commit session >` Lint with pre-commit _ ``3.8 `` ✓
1059+ :ref: `safety <The safety session >` Scan dependencies with Safety _ ``3.8 `` ✓
1060+ :ref: `tests <The tests session >` Run tests with pytest _ ``3.6 `` … ``3.8 `` ✓
1061+ :ref: `typeguard <The typeguard session >` Type-check with Typeguard _ ``3.6 `` … ``3.8 `` ✓
1062+ :ref: `xdoctest <The xdoctest session >` Run examples with xdoctest _ ``3.6 `` … ``3.8 ``
1063+ ========================================== ===================================== ================== =========
10631064
10641065
10651066.. _The docs session :
@@ -1073,23 +1074,16 @@ Build the documentation using the Nox session ``docs``:
10731074
10741075 $ nox --session=docs
10751076
1076- The docs session runs the command ``sphinx-build ``
1077- to generate the HTML documentation from the Sphinx directory.
1078-
1079- In `interactive mode `__---such
1080- as when invoking Nox from a terminal---sphinx-autobuild _ is used instead.
1081- This tool has several advantages
1082- when you are editing the documentation files:
1083-
1084- __ https://nox.thea.codes/en/stable/usage.html#forcing-non-interactive-behavior
1077+ The docs session runs the command ``sphinx-autobuild `` to generate the HTML documentation from the Sphinx directory.
1078+ This tool has several advantages over ``sphinx-build `` when you are editing the documentation files:
10851079
10861080- It rebuilds the documentation whenever a change is detected.
10871081- It spins up a web server with live reloading.
10881082- It opens the location of the web server in your browser.
10891083
10901084.. _sphinx-autobuild : https://github.com/GaretJax/sphinx-autobuild
10911085
1092- Use the ``-- `` separator to pass additional options to either tool .
1086+ Use the ``-- `` separator to pass additional options.
10931087For example, to treat warnings as errors and run in nit-picky mode:
10941088
10951089.. code :: console
@@ -1099,6 +1093,19 @@ For example, to treat warnings as errors and run in nit-picky mode:
10991093 This Nox session always runs with the current major release of Python.
11001094
11011095
1096+ .. _The docs-build session :
1097+
1098+ The docs-build session
1099+ ----------------------
1100+
1101+ The ``docs-build `` session runs the command ``sphinx-build `` to generate the HTML documentation from the Sphinx directory.
1102+
1103+ This session is meant to be run as a part of automated checks.
1104+ Use the interactive ``docs `` session instead while you're editing the documentation.
1105+
1106+ This Nox session always runs with the current major release of Python.
1107+
1108+
11021109.. _The mypy session :
11031110
11041111The mypy session
@@ -2275,7 +2282,7 @@ __ https://help.github.com/en/actions/automating-your-workflow-with-github-actio
22752282 :ref: `tests <The tests session >` Ubuntu 3.8, 3.7, 3.6
22762283 :ref: `tests <The tests session >` Windows 3.8
22772284 :ref: `tests <The tests session >` macOS 3.8
2278- :ref: `docs <The docs session >` Ubuntu 3.8
2285+ :ref: `docs-build <The docs-build session >` Ubuntu 3.8
22792286 ========================================== ====================== ===============
22802287
22812288The workflow uploads the generated documentation as a `workflow artifact `__.
0 commit comments