-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Callback plugins: show type, render indexes of callback plugins per t…
…ype (#90) * Show callback type, and render callback type indexes. * Undo changes necessary for #65. * Update tests. * Improve callback docs. * Apply suggestions from code review Co-authored-by: Sandra McCann <samccann@redhat.com> Co-authored-by: Sandra McCann <samccann@redhat.com>
- Loading branch information
1 parent
022c6b6
commit 0b0e44c
Showing
17 changed files
with
265 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
minor_changes: | ||
- "Show callback plugin type on callback plugin pages. Also write callback indexes by callback plugin type (https://github.com/ansible-community/antsibull-docs/issues/89, https://github.com/ansible-community/antsibull-docs/pull/90)." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
src/antsibull_docs/data/docsite/list_of_callback_plugins.rst.j2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
{# | ||
Copyright (c) Ansible Project | ||
GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt) | ||
SPDX-License-Identifier: GPL-3.0-or-later | ||
#} | ||
|
||
:orphan: | ||
|
||
.. _list_of_@{ callback_type }@_callback_plugins: | ||
|
||
Index of all @{ callback_type | capitalize }@ Callback Plugins | ||
=============@{ '=' * (callback_type | length) }@================= | ||
|
||
See :ref:`list_of_callback_plugins` for the list of *all* callback plugins. | ||
|
||
{% for collection_name, plugins in per_collection_plugins.items() | sort %} | ||
@{ collection_name }@ | ||
@{ '-' * (collection_name | length) }@ | ||
|
||
{% for plugin_name, plugin_desc in plugins.items() | sort %} | ||
* :ref:`@{ collection_name }@.@{ plugin_name }@ <ansible_collections.@{ collection_name }@.@{ plugin_name }@_callback>` -- @{ plugin_desc | rst_ify }@ | ||
{% endfor %} | ||
|
||
{% else %} | ||
No public @{ callback_type }@ callback plugin found. | ||
{% endfor %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
tests/functional/baseline-default/collections/callback_index_stdout.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
|
||
:orphan: | ||
|
||
.. _list_of_stdout_callback_plugins: | ||
|
||
Index of all Stdout Callback Plugins | ||
==================================== | ||
|
||
See :ref:`list_of_callback_plugins` for the list of *all* callback plugins. | ||
|
||
ns2.col | ||
------- | ||
|
||
* :ref:`ns2.col.foo <ansible_collections.ns2.col.foo_callback>` -- Foo output | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
tests/functional/baseline-no-breadcrumbs/collections/callback_index_stdout.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
|
||
:orphan: | ||
|
||
.. _list_of_stdout_callback_plugins: | ||
|
||
Index of all Stdout Callback Plugins | ||
==================================== | ||
|
||
See :ref:`list_of_callback_plugins` for the list of *all* callback plugins. | ||
|
||
ns2.col | ||
------- | ||
|
||
* :ref:`ns2.col.foo <ansible_collections.ns2.col.foo_callback>` -- Foo output | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
tests/functional/baseline-use-html-blobs/collections/callback_index_stdout.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
|
||
:orphan: | ||
|
||
.. _list_of_stdout_callback_plugins: | ||
|
||
Index of all Stdout Callback Plugins | ||
==================================== | ||
|
||
See :ref:`list_of_callback_plugins` for the list of *all* callback plugins. | ||
|
||
ns2.col | ||
------- | ||
|
||
* :ref:`ns2.col.foo <ansible_collections.ns2.col.foo_callback>` -- Foo output | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters