mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-25 11:51:26 -07:00
New metadata 1.0 (#22587)
Changes to the metadata format were approved here: https://github.com/ansible/proposals/issues/54 * Update documentation to the new metadata format * Changes to metadata-tool to account for new metadata * Add GPL license header * Add upgrade subcommand to upgrade metadata version * Change default metadata to the new format * Fix exclusion of non-modules from the metadata report * Fix ansible-doc for new module metadata * Exclude metadata version from ansible-doc output * Fix website docs generation for the new metadata * Update metadata schema in valiate-modules test * Update the metadata in all modules to the new version
This commit is contained in:
parent
2be3418a81
commit
eb1214baad
1038 changed files with 4298 additions and 3219 deletions
|
@ -134,6 +134,10 @@ class DocCLI(CLI):
|
|||
doc['plainexamples'] = plainexamples
|
||||
doc['returndocs'] = returndocs
|
||||
doc['metadata'] = metadata
|
||||
if 'metadata_version' in doc['metadata']:
|
||||
del doc['metadata']['metadata_version']
|
||||
if 'version' in doc['metadata']:
|
||||
del doc['metadata']['metadata_version']
|
||||
|
||||
if self.options.show_snippet:
|
||||
text += self.get_snippet_text(doc)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue