Skip to content

Commit c1df4bc

Browse files
committed
Add linting check for RST code blocks. Fix code block languages.
1 parent ae1d457 commit c1df4bc

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

antsibull-nox.toml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,15 @@ run_mypy = false
3232

3333
[sessions.docs_check]
3434
validate_collection_refs="all"
35+
codeblocks_restrict_types = [
36+
"ansible-output",
37+
"console",
38+
"yaml",
39+
"yaml+jinja",
40+
]
41+
codeblocks_restrict_type_exact_case = true
42+
codeblocks_allow_without_type = false
43+
codeblocks_allow_literal_blocks = false
3544

3645
[sessions.license_check]
3746

docs/docsite/rst/scenario_guide.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,13 @@ Note that plugins (inventory plugins and connection plugins) are always executed
2424

2525
You can install the Docker SDK for Python for Python 3.6 or later as follows:
2626

27-
.. code-block:: bash
27+
.. code-block:: console
2828
2929
$ pip install docker
3030
3131
For Python 2.7, you need to use a version between 2.0.0 and 4.4.4 since the Python package for Docker removed support for Python 2.7 on 5.0.0. You can install the specific version of the Docker SDK for Python as follows:
3232

33-
.. code-block:: bash
33+
.. code-block:: console
3434
3535
$ pip install 'docker==4.4.4'
3636

0 commit comments

Comments
 (0)