mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
fix docs on related to remove of core/extras
This commit is contained in:
parent
3ccd014134
commit
b5a63a556d
1 changed files with 4 additions and 2 deletions
|
@ -143,8 +143,11 @@ def list_modules(module_dir, depth=0):
|
||||||
if module_path.endswith('__init__.py'):
|
if module_path.endswith('__init__.py'):
|
||||||
continue
|
continue
|
||||||
category = categories
|
category = categories
|
||||||
mod_path_only = os.path.dirname(module_path[len(module_dir) + 1:])
|
mod_path_only = module_path
|
||||||
# Start at the second directory because we don't want the "vendor"
|
# Start at the second directory because we don't want the "vendor"
|
||||||
|
|
||||||
|
mod_path_only = os.path.dirname(module_path[len(module_dir):])
|
||||||
|
|
||||||
# directories (core, extras)
|
# directories (core, extras)
|
||||||
for new_cat in mod_path_only.split('/')[1:]:
|
for new_cat in mod_path_only.split('/')[1:]:
|
||||||
if new_cat not in category:
|
if new_cat not in category:
|
||||||
|
@ -373,7 +376,6 @@ def process_category(category, categories, options, env, template, outputname):
|
||||||
deprecated = []
|
deprecated = []
|
||||||
core = []
|
core = []
|
||||||
for module in module_map.keys():
|
for module in module_map.keys():
|
||||||
|
|
||||||
if isinstance(module_map[module], dict):
|
if isinstance(module_map[module], dict):
|
||||||
for mod in (m for m in module_map[module].keys() if m in module_info):
|
for mod in (m for m in module_map[module].keys() if m in module_info):
|
||||||
if mod.startswith("_"):
|
if mod.startswith("_"):
|
||||||
|
|
Loading…
Reference in a new issue