mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-26 12:21:26 -07:00
add metadata to doc support (#18802)
fix broken module docs change doc AST id extraction to use == instead of in
This commit is contained in:
parent
5628e260f2
commit
cb1888125d
6 changed files with 42 additions and 10 deletions
|
@ -251,7 +251,7 @@ def process_module(module, options, env, template, outputname, module_map, alias
|
|||
print("rendering: %s" % module)
|
||||
|
||||
# use ansible core library to parse out doc metadata YAML and plaintext examples
|
||||
doc, examples, returndocs = module_docs.get_docstring(fname, verbose=options.verbose)
|
||||
doc, examples, returndocs, metadata = module_docs.get_docstring(fname, verbose=options.verbose)
|
||||
|
||||
# crash if module is missing documentation and not explicitly hidden from docs index
|
||||
if doc is None:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue