mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 21:32:49 +00:00
Doc fragments to plugins (#50172)
* promote doc_fragments into actual plugins change tests hardcoded path to doc fragments avoid sanity in fragments avoid improper testing of doc_fragments also change runner paths fix botmeta updated comment for fragments updated docs
This commit is contained in:
@@ -559,7 +559,7 @@ class PathMapper(object):
|
||||
'units': 'all',
|
||||
}
|
||||
|
||||
if path.startswith('lib/ansible/utils/module_docs_fragments/'):
|
||||
if path.startswith('lib/ansible/plugins/docs_fragments/'):
|
||||
return {
|
||||
'sanity': 'all',
|
||||
}
|
||||
|
||||
@@ -41,9 +41,11 @@ class AnsibleDocTest(SanityMultipleVersion):
|
||||
skip_file = 'test/sanity/ansible-doc/skip.txt'
|
||||
skip_modules = set(read_lines_without_comments(skip_file, remove_blank_lines=True))
|
||||
|
||||
# This should use documentable plugins from constants instead
|
||||
plugin_type_blacklist = set([
|
||||
# not supported by ansible-doc
|
||||
'action',
|
||||
'doc_fragments',
|
||||
'cliconf',
|
||||
'filter',
|
||||
'httpapi',
|
||||
|
||||
@@ -44,7 +44,7 @@ class YamllintTest(SanitySingleVersion):
|
||||
|
||||
[i.path for i in targets.include if os.path.splitext(i.path)[1] == '.py' and
|
||||
os.path.basename(i.path) != '__init__.py' and
|
||||
i.path.startswith('lib/ansible/utils/module_docs_fragments/')],
|
||||
i.path.startswith('lib/ansible/plugins/docs_fragments/')],
|
||||
]
|
||||
|
||||
paths = [sorted(p) for p in paths if p]
|
||||
|
||||
Reference in New Issue
Block a user