mirror of
https://github.com/borgbackup/borg.git
synced 2024-11-09 13:33:55 +03:00
fix API generation
properly generate the module name
This commit is contained in:
parent
ff04a654ab
commit
2f9bdfe96b
3
setup.py
3
setup.py
@ -189,7 +189,8 @@ Borg Backup API documentation
|
||||
""")
|
||||
for mod in glob('borg/*.py') + glob('borg/*.pyx'):
|
||||
print("examining module %s" % mod)
|
||||
if "/_" not in mod:
|
||||
mod = mod.replace('.pyx', '').replace('.py', '').replace('/', '.')
|
||||
if "._" not in mod:
|
||||
doc.write("""
|
||||
.. automodule:: %s
|
||||
:members:
|
||||
|
Loading…
Reference in New Issue
Block a user