mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00: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:
committed by
Alicia Cozine
parent
aedcf9fed7
commit
771a3983d2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user