Skip to content
Snippets Groups Projects
Commit e4292ff9 authored by Peter Lünenschloß's avatar Peter Lünenschloß
Browse files

black

parent af811929
No related branches found
No related tags found
7 merge requests!685Release 2.4,!684Release 2.4,!567Release 2.2.1,!566Release 2.2,!501Release 2.1,!372fix doctest snippets,!369Current documentation
Pipeline #52193 passed with stages
in 4 minutes and 58 seconds
......@@ -137,15 +137,16 @@ def make_doc_module(targetpath, func_dict, doc_mod_structure):
return 0
def makeModuleAPIs(modules, folder_path='moduleAPIs', pck_path='Functions'):
def makeModuleAPIs(modules, folder_path="moduleAPIs", pck_path="Functions"):
f_path = os.path.abspath(folder_path)
for m in modules:
lines = []
lines += [m]
lines += ['='*len(m)]
lines += ['']
lines += [f'.. automodapi:: {pck_path}.{m}']
lines += [' '*3 + ':no-heading:']
lines += ["=" * len(m)]
lines += [""]
lines += [f".. automodapi:: {pck_path}.{m}"]
lines += [" " * 3 + ":no-heading:"]
with open(os.path.join(f_path, f"{pck_path}{m}.rst"), "w") as f:
for l in lines:
f.write(l + "\n")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment