diff --git a/changelogs/fragments/doc_vac_ignore.yml b/changelogs/fragments/doc_vac_ignore.yml new file mode 100644 index 00000000000..6b7eab0a6ab --- /dev/null +++ b/changelogs/fragments/doc_vac_ignore.yml @@ -0,0 +1,2 @@ +bugfixes: + - ansible-doc will now not display version_added_collection under same conditions it does not display version_added. diff --git a/lib/ansible/cli/doc.py b/lib/ansible/cli/doc.py index 07abf32f326..b2e2ed9aa42 100755 --- a/lib/ansible/cli/doc.py +++ b/lib/ansible/cli/doc.py @@ -355,7 +355,7 @@ class DocCLI(CLI, RoleMixin): name = 'ansible-doc' # default ignore list for detailed views - IGNORE = ('module', 'docuri', 'version_added', 'short_description', 'now_date', 'plainexamples', 'returndocs', 'collection') + IGNORE = ('module', 'docuri', 'version_added', 'version_added_collection', 'short_description', 'now_date', 'plainexamples', 'returndocs', 'collection') # Warning: If you add more elements here, you also need to add it to the docsite build (in the # ansible-community/antsibull repo)