Skip to content

Commit

Permalink
Lint and update tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
felixfontein committed Sep 25, 2023
1 parent f3397eb commit e5344fe
Show file tree
Hide file tree
Showing 164 changed files with 169 additions and 167 deletions.
4 changes: 3 additions & 1 deletion src/antsibull_docs/schemas/app_context.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@
DOC_PARSING_BACKEND_CHOICES_F = p.Field("auto", regex="^(auto|ansible-core-2\\.13)$")


DEFAULT_COLLECTION_URL_TRANSFORM = "https://galaxy.ansible.com/ui/repo/published/{namespace}/{name}/"
DEFAULT_COLLECTION_URL_TRANSFORM = (
"https://galaxy.ansible.com/ui/repo/published/{namespace}/{name}/"
)
DEFAULT_COLLECTION_INSTALL_CMD = "ansible-galaxy collection install {namespace}.{name}"


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ ns.col2.bar role -- Bar role
.. Collection note
.. note::
This role is part of the `ns.col2 collection <https://galaxy.ansible.com/ns/col2>`_ (version 0.0.1).
This role is part of the `ns.col2 collection <https://galaxy.ansible.com/ui/repo/published/ns/col2/>`_ (version 0.0.1).

To install it use: :code:`ansible-galaxy collection install ns.col2`.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ ns.col2.foo2 module -- Foo two
.. Collection note
.. note::
This module is part of the `ns.col2 collection <https://galaxy.ansible.com/ns/col2>`_ (version 0.0.1).
This module is part of the `ns.col2 collection <https://galaxy.ansible.com/ui/repo/published/ns/col2/>`_ (version 0.0.1).

To install it, use: :code:`ansible-galaxy collection install ns.col2`.
You need further requirements to be able to use this module,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ ns.col2.foo3 module -- Foo III
.. Collection note
.. note::
This module is part of the `ns.col2 collection <https://galaxy.ansible.com/ns/col2>`_ (version 0.0.1).
This module is part of the `ns.col2 collection <https://galaxy.ansible.com/ui/repo/published/ns/col2/>`_ (version 0.0.1).

To install it, use: :code:`ansible-galaxy collection install ns.col2`.
You need further requirements to be able to use this module,
Expand Down Expand Up @@ -420,7 +420,7 @@ Authors
.. Parsing errors
There were some errors parsing the documentation for this plugin. Please file a bug with the `ns.col2 collection <https://galaxy.ansible.com/ns/col2>`_.
There were some errors parsing the documentation for this plugin. Please file a bug with the `ns.col2 collection <https://galaxy.ansible.com/ui/repo/published/ns/col2/>`_.

The errors were:

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ ns.col2.foo4 module -- Markup reference linting test
.. Collection note
.. note::
This module is part of the `ns.col2 collection <https://galaxy.ansible.com/ns/col2>`_ (version 0.0.1).
This module is part of the `ns.col2 collection <https://galaxy.ansible.com/ui/repo/published/ns/col2/>`_ (version 0.0.1).

To install it, use: :code:`ansible-galaxy collection install ns.col2`.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,4 @@ The errors were:
extra fields not permitted (type=value_error.extra)


File a bug with the `ns.col2 collection <https://galaxy.ansible.com/ns/col2>`_ in order to have it corrected.
File a bug with the `ns.col2 collection <https://galaxy.ansible.com/ui/repo/published/ns/col2/>`_ in order to have it corrected.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ ns2.col.bar filter -- The bar filter
.. Collection note
.. note::
This filter plugin is part of the `ns2.col collection <https://galaxy.ansible.com/ns2/col>`_ (version 2.1.0).
This filter plugin is part of the `ns2.col collection <https://galaxy.ansible.com/ui/repo/published/ns2/col/>`_ (version 2.1.0).

To install it, use: :code:`ansible-galaxy collection install ns2.col`.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ ns2.col.bar test -- Is something a bar
.. Collection note
.. note::
This test plugin is part of the `ns2.col collection <https://galaxy.ansible.com/ns2/col>`_ (version 2.1.0).
This test plugin is part of the `ns2.col collection <https://galaxy.ansible.com/ui/repo/published/ns2/col/>`_ (version 2.1.0).

To install it, use: :code:`ansible-galaxy collection install ns2.col`.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ ns2.col.foo2 module -- Another foo
.. Collection note
.. note::
This module is part of the `ns2.col collection <https://galaxy.ansible.com/ns2/col>`_ (version 2.1.0).
This module is part of the `ns2.col collection <https://galaxy.ansible.com/ui/repo/published/ns2/col/>`_ (version 2.1.0).

To install it, use: :code:`ansible-galaxy collection install ns2.col`.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ ns2.col.foo become -- Use foo \ :ansopt:`ns2.col.foo#become:bar`\
.. Collection note
.. note::
This become plugin is part of the `ns2.col collection <https://galaxy.ansible.com/ns2/col>`_ (version 2.1.0).
This become plugin is part of the `ns2.col collection <https://galaxy.ansible.com/ui/repo/published/ns2/col/>`_ (version 2.1.0).

To install it, use: :code:`ansible-galaxy collection install ns2.col`.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ ns2.col.foo cache -- Foo files \ :ansopt:`ns2.col.foo#cache:bar`\
.. Collection note
.. note::
This cache plugin is part of the `ns2.col collection <https://galaxy.ansible.com/ns2/col>`_ (version 2.1.0).
This cache plugin is part of the `ns2.col collection <https://galaxy.ansible.com/ui/repo/published/ns2/col/>`_ (version 2.1.0).

To install it, use: :code:`ansible-galaxy collection install ns2.col`.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ ns2.col.foo callback -- Foo output \ :ansopt:`ns2.col.foo#callback:bar`\
.. Collection note
.. note::
This callback plugin is part of the `ns2.col collection <https://galaxy.ansible.com/ns2/col>`_ (version 2.1.0).
This callback plugin is part of the `ns2.col collection <https://galaxy.ansible.com/ui/repo/published/ns2/col/>`_ (version 2.1.0).

To install it, use: :code:`ansible-galaxy collection install ns2.col`.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ ns2.col.foo cliconf -- Foo router CLI config
.. Collection note
.. note::
This cliconf plugin is part of the `ns2.col collection <https://galaxy.ansible.com/ns2/col>`_ (version 2.1.0).
This cliconf plugin is part of the `ns2.col collection <https://galaxy.ansible.com/ui/repo/published/ns2/col/>`_ (version 2.1.0).

To install it, use: :code:`ansible-galaxy collection install ns2.col`.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ ns2.col.foo connection -- Foo connection \ :ansopt:`ns2.col.foo#connection:bar`\
.. Collection note
.. note::
This connection plugin is part of the `ns2.col collection <https://galaxy.ansible.com/ns2/col>`_ (version 2.1.0).
This connection plugin is part of the `ns2.col collection <https://galaxy.ansible.com/ui/repo/published/ns2/col/>`_ (version 2.1.0).

To install it, use: :code:`ansible-galaxy collection install ns2.col`.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ ns2.col.foo filter -- The foo filter \ :ansopt:`ns2.col.foo#filter:bar`\
.. Collection note
.. note::
This filter plugin is part of the `ns2.col collection <https://galaxy.ansible.com/ns2/col>`_ (version 2.1.0).
This filter plugin is part of the `ns2.col collection <https://galaxy.ansible.com/ui/repo/published/ns2/col/>`_ (version 2.1.0).

To install it, use: :code:`ansible-galaxy collection install ns2.col`.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ ns2.col.foo inventory -- The foo inventory \ :ansopt:`ns2.col.foo#inventory:bar`
.. Collection note
.. note::
This inventory plugin is part of the `ns2.col collection <https://galaxy.ansible.com/ns2/col>`_ (version 2.1.0).
This inventory plugin is part of the `ns2.col collection <https://galaxy.ansible.com/ui/repo/published/ns2/col/>`_ (version 2.1.0).

To install it, use: :code:`ansible-galaxy collection install ns2.col`.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ ns2.col.foo lookup -- Look up some foo \ :ansopt:`ns2.col.foo#lookup:bar`\
.. Collection note
.. note::
This lookup plugin is part of the `ns2.col collection <https://galaxy.ansible.com/ns2/col>`_ (version 2.1.0).
This lookup plugin is part of the `ns2.col collection <https://galaxy.ansible.com/ui/repo/published/ns2/col/>`_ (version 2.1.0).

To install it, use: :code:`ansible-galaxy collection install ns2.col`.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ ns2.col.foo module -- Do some foo \ :ansopt:`ns2.col.foo#module:bar`\
.. Collection note
.. note::
This module is part of the `ns2.col collection <https://galaxy.ansible.com/ns2/col>`_ (version 2.1.0).
This module is part of the `ns2.col collection <https://galaxy.ansible.com/ui/repo/published/ns2/col/>`_ (version 2.1.0).

To install it, use: :code:`ansible-galaxy collection install ns2.col`.
You need further requirements to be able to use this module,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ ns2.col.foo_redirect module
.. Collection note
.. note::
This redirect is part of the `ns2.col collection <https://galaxy.ansible.com/ns2/col>`_ (version 2.1.0).
This redirect is part of the `ns2.col collection <https://galaxy.ansible.com/ui/repo/published/ns2/col/>`_ (version 2.1.0).

To use it in a playbook, specify: :code:`ns2.col.foo_redirect`.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ ns2.col.foo role -- Foo role
.. Collection note
.. note::
This role is part of the `ns2.col collection <https://galaxy.ansible.com/ns2/col>`_ (version 2.1.0).
This role is part of the `ns2.col collection <https://galaxy.ansible.com/ui/repo/published/ns2/col/>`_ (version 2.1.0).

To install it use: :code:`ansible-galaxy collection install ns2.col`.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ ns2.col.foo shell -- Foo shell \ :ansopt:`ns2.col.foo#shell:bar`\
.. Collection note
.. note::
This shell plugin is part of the `ns2.col collection <https://galaxy.ansible.com/ns2/col>`_ (version 2.1.0).
This shell plugin is part of the `ns2.col collection <https://galaxy.ansible.com/ui/repo/published/ns2/col/>`_ (version 2.1.0).

To install it, use: :code:`ansible-galaxy collection install ns2.col`.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ ns2.col.foo strategy -- Executes tasks in foo
.. Collection note
.. note::
This strategy plugin is part of the `ns2.col collection <https://galaxy.ansible.com/ns2/col>`_ (version 2.1.0).
This strategy plugin is part of the `ns2.col collection <https://galaxy.ansible.com/ui/repo/published/ns2/col/>`_ (version 2.1.0).

To install it, use: :code:`ansible-galaxy collection install ns2.col`.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ ns2.col.foo test -- Is something a foo \ :ansopt:`ns2.col.foo#test:bar`\
.. Collection note
.. note::
This test plugin is part of the `ns2.col collection <https://galaxy.ansible.com/ns2/col>`_ (version 2.1.0).
This test plugin is part of the `ns2.col collection <https://galaxy.ansible.com/ui/repo/published/ns2/col/>`_ (version 2.1.0).

To install it, use: :code:`ansible-galaxy collection install ns2.col`.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ ns2.col.foo vars -- Load foo \ :ansopt:`ns2.col.foo#vars:bar`\
.. Collection note
.. note::
This vars plugin is part of the `ns2.col collection <https://galaxy.ansible.com/ns2/col>`_ (version 2.1.0).
This vars plugin is part of the `ns2.col collection <https://galaxy.ansible.com/ui/repo/published/ns2/col/>`_ (version 2.1.0).

To install it, use: :code:`ansible-galaxy collection install ns2.col`.
You need further requirements to be able to use this vars plugin,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ ns2.col.is_bar test
.. Collection note
.. note::
This redirect is part of the `ns2.col collection <https://galaxy.ansible.com/ns2/col>`_ (version 2.1.0).
This redirect is part of the `ns2.col collection <https://galaxy.ansible.com/ui/repo/published/ns2/col/>`_ (version 2.1.0).

To use it in a playbook, specify: :code:`ns2.col.is_bar`.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ ns2.col.sub.foo3 module -- A sub-foo
.. Collection note
.. note::
This module is part of the `ns2.col collection <https://galaxy.ansible.com/ns2/col>`_ (version 2.1.0).
This module is part of the `ns2.col collection <https://galaxy.ansible.com/ui/repo/published/ns2/col/>`_ (version 2.1.0).

To install it, use: :code:`ansible-galaxy collection install ns2.col`.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ ns2.flatcol.foo2 module -- Another foo
.. Collection note
.. note::
This module is part of the `ns2.flatcol collection <https://galaxy.ansible.com/ns2/flatcol>`_.
This module is part of the `ns2.flatcol collection <https://galaxy.ansible.com/ui/repo/published/ns2/flatcol/>`_.

To install it, use: :code:`ansible-galaxy collection install ns2.flatcol`.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ ns2.flatcol.foo module -- Do some foo \ :ansopt:`ns2.flatcol.foo#module:bar`\
.. Collection note
.. note::
This module is part of the `ns2.flatcol collection <https://galaxy.ansible.com/ns2/flatcol>`_.
This module is part of the `ns2.flatcol collection <https://galaxy.ansible.com/ui/repo/published/ns2/flatcol/>`_.

To install it, use: :code:`ansible-galaxy collection install ns2.flatcol`.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ ns.col2.bar role -- Bar role
.. Collection note
.. note::
This role is part of the `ns.col2 collection <https://galaxy.ansible.com/ns/col2>`_ (version 0.0.1).
This role is part of the `ns.col2 collection <https://galaxy.ansible.com/ui/repo/published/ns/col2/>`_ (version 0.0.1).

To install it use: :code:`ansible-galaxy collection install ns.col2`.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ ns.col2.foo2 module -- Foo two
.. Collection note
.. note::
This module is part of the `ns.col2 collection <https://galaxy.ansible.com/ns/col2>`_ (version 0.0.1).
This module is part of the `ns.col2 collection <https://galaxy.ansible.com/ui/repo/published/ns/col2/>`_ (version 0.0.1).

To install it, use: :code:`ansible-galaxy collection install ns.col2`.
You need further requirements to be able to use this module,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ ns.col2.foo3 module -- Foo III
.. Collection note
.. note::
This module is part of the `ns.col2 collection <https://galaxy.ansible.com/ns/col2>`_ (version 0.0.1).
This module is part of the `ns.col2 collection <https://galaxy.ansible.com/ui/repo/published/ns/col2/>`_ (version 0.0.1).

To install it, use: :code:`ansible-galaxy collection install ns.col2`.
You need further requirements to be able to use this module,
Expand Down Expand Up @@ -420,7 +420,7 @@ Authors
.. Parsing errors
There were some errors parsing the documentation for this plugin. Please file a bug with the `ns.col2 collection <https://galaxy.ansible.com/ns/col2>`_.
There were some errors parsing the documentation for this plugin. Please file a bug with the `ns.col2 collection <https://galaxy.ansible.com/ui/repo/published/ns/col2/>`_.

The errors were:

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ ns.col2.foo4 module -- Markup reference linting test
.. Collection note
.. note::
This module is part of the `ns.col2 collection <https://galaxy.ansible.com/ns/col2>`_ (version 0.0.1).
This module is part of the `ns.col2 collection <https://galaxy.ansible.com/ui/repo/published/ns/col2/>`_ (version 0.0.1).

To install it, use: :code:`ansible-galaxy collection install ns.col2`.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,4 @@ The errors were:
extra fields not permitted (type=value_error.extra)


File a bug with the `ns.col2 collection <https://galaxy.ansible.com/ns/col2>`_ in order to have it corrected.
File a bug with the `ns.col2 collection <https://galaxy.ansible.com/ui/repo/published/ns/col2/>`_ in order to have it corrected.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ ns2.col.bar filter -- The bar filter
.. Collection note
.. note::
This filter plugin is part of the `ns2.col collection <https://galaxy.ansible.com/ns2/col>`_ (version 2.1.0).
This filter plugin is part of the `ns2.col collection <https://galaxy.ansible.com/ui/repo/published/ns2/col/>`_ (version 2.1.0).

To install it, use: :code:`ansible-galaxy collection install ns2.col`.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ ns2.col.bar test -- Is something a bar
.. Collection note
.. note::
This test plugin is part of the `ns2.col collection <https://galaxy.ansible.com/ns2/col>`_ (version 2.1.0).
This test plugin is part of the `ns2.col collection <https://galaxy.ansible.com/ui/repo/published/ns2/col/>`_ (version 2.1.0).

To install it, use: :code:`ansible-galaxy collection install ns2.col`.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ ns2.col.foo2 module -- Another foo
.. Collection note
.. note::
This module is part of the `ns2.col collection <https://galaxy.ansible.com/ns2/col>`_ (version 2.1.0).
This module is part of the `ns2.col collection <https://galaxy.ansible.com/ui/repo/published/ns2/col/>`_ (version 2.1.0).

To install it, use: :code:`ansible-galaxy collection install ns2.col`.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ ns2.col.foo become -- Use foo \ :ansopt:`ns2.col.foo#become:bar`\
.. Collection note
.. note::
This become plugin is part of the `ns2.col collection <https://galaxy.ansible.com/ns2/col>`_ (version 2.1.0).
This become plugin is part of the `ns2.col collection <https://galaxy.ansible.com/ui/repo/published/ns2/col/>`_ (version 2.1.0).

To install it, use: :code:`ansible-galaxy collection install ns2.col`.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ ns2.col.foo cache -- Foo files \ :ansopt:`ns2.col.foo#cache:bar`\
.. Collection note
.. note::
This cache plugin is part of the `ns2.col collection <https://galaxy.ansible.com/ns2/col>`_ (version 2.1.0).
This cache plugin is part of the `ns2.col collection <https://galaxy.ansible.com/ui/repo/published/ns2/col/>`_ (version 2.1.0).

To install it, use: :code:`ansible-galaxy collection install ns2.col`.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ ns2.col.foo callback -- Foo output \ :ansopt:`ns2.col.foo#callback:bar`\
.. Collection note
.. note::
This callback plugin is part of the `ns2.col collection <https://galaxy.ansible.com/ns2/col>`_ (version 2.1.0).
This callback plugin is part of the `ns2.col collection <https://galaxy.ansible.com/ui/repo/published/ns2/col/>`_ (version 2.1.0).

To install it, use: :code:`ansible-galaxy collection install ns2.col`.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ ns2.col.foo cliconf -- Foo router CLI config
.. Collection note
.. note::
This cliconf plugin is part of the `ns2.col collection <https://galaxy.ansible.com/ns2/col>`_ (version 2.1.0).
This cliconf plugin is part of the `ns2.col collection <https://galaxy.ansible.com/ui/repo/published/ns2/col/>`_ (version 2.1.0).

To install it, use: :code:`ansible-galaxy collection install ns2.col`.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ ns2.col.foo connection -- Foo connection \ :ansopt:`ns2.col.foo#connection:bar`\
.. Collection note
.. note::
This connection plugin is part of the `ns2.col collection <https://galaxy.ansible.com/ns2/col>`_ (version 2.1.0).
This connection plugin is part of the `ns2.col collection <https://galaxy.ansible.com/ui/repo/published/ns2/col/>`_ (version 2.1.0).

To install it, use: :code:`ansible-galaxy collection install ns2.col`.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ ns2.col.foo filter -- The foo filter \ :ansopt:`ns2.col.foo#filter:bar`\
.. Collection note
.. note::
This filter plugin is part of the `ns2.col collection <https://galaxy.ansible.com/ns2/col>`_ (version 2.1.0).
This filter plugin is part of the `ns2.col collection <https://galaxy.ansible.com/ui/repo/published/ns2/col/>`_ (version 2.1.0).

To install it, use: :code:`ansible-galaxy collection install ns2.col`.

Expand Down
Loading

0 comments on commit e5344fe

Please sign in to comment.