mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Fix functions documentation header duplication
This commit is contained in:
parent
5e83add1c7
commit
7c2d6ae72b
@ -293,16 +293,17 @@ def document_functions(addons_dir, components):
|
||||
|
||||
output = os.path.join(wiki_dir, component) + ".md"
|
||||
with open(output, "w", encoding="utf-8") as file:
|
||||
file.writelines([
|
||||
"---\n",
|
||||
"layout: wiki\n",
|
||||
"title: {} Functions\n".format(component_name),
|
||||
"description: List of functions in {} component.\n".format(component_name),
|
||||
"group: functions\n",
|
||||
"parent: wiki\n",
|
||||
"---\n",
|
||||
])
|
||||
|
||||
for function in components[component]:
|
||||
file.writelines([
|
||||
"---\n",
|
||||
"layout: wiki\n",
|
||||
"title: {} Functions\n".format(component_name),
|
||||
"description: List of functions in {} component.\n".format(component_name),
|
||||
"group: functions\n",
|
||||
"parent: wiki\n",
|
||||
"---\n",
|
||||
])
|
||||
file.write(function.document(component))
|
||||
|
||||
return errors
|
||||
|
Loading…
Reference in New Issue
Block a user