mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-24 19:31:26 -07:00
Docs: Keep the module index clean (#46155)
A lot of modules have a short_description with a trailing dot even though we don't want trailing dots in the index. This change removes it when creating the document index.
This commit is contained in:
parent
aedcf9fed7
commit
771a3983d2
2 changed files with 3 additions and 2 deletions
|
@ -103,6 +103,7 @@ def read_docstub(filename):
|
|||
capturing = True
|
||||
doc_stub.append(line)
|
||||
|
||||
data = AnsibleLoader(r"".join(doc_stub), file_name=filename).get_single_data()
|
||||
short_description = r''.join(doc_stub).strip().rstrip('.')
|
||||
data = AnsibleLoader(short_description, file_name=filename).get_single_data()
|
||||
|
||||
return data
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue