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,7 +293,6 @@ def document_functions(addons_dir, components):
|
|||||||
|
|
||||||
output = os.path.join(wiki_dir, component) + ".md"
|
output = os.path.join(wiki_dir, component) + ".md"
|
||||||
with open(output, "w", encoding="utf-8") as file:
|
with open(output, "w", encoding="utf-8") as file:
|
||||||
for function in components[component]:
|
|
||||||
file.writelines([
|
file.writelines([
|
||||||
"---\n",
|
"---\n",
|
||||||
"layout: wiki\n",
|
"layout: wiki\n",
|
||||||
@ -303,6 +302,8 @@ def document_functions(addons_dir, components):
|
|||||||
"parent: wiki\n",
|
"parent: wiki\n",
|
||||||
"---\n",
|
"---\n",
|
||||||
])
|
])
|
||||||
|
|
||||||
|
for function in components[component]:
|
||||||
file.write(function.document(component))
|
file.write(function.document(component))
|
||||||
|
|
||||||
return errors
|
return errors
|
||||||
|
Loading…
Reference in New Issue
Block a user