1
0
Fork 0
mirror of https://github.com/borgbackup/borg.git synced 2025-02-12 01:17:25 +00:00

cosmetic: s/api/doc/

This commit is contained in:
Antoine Beaupré 2015-10-08 14:57:32 -04:00
parent 6c5a7733a2
commit 2e9bd5a883

View file

@ -182,15 +182,15 @@ def finalize_options(self):
def run(self): def run(self):
print("auto-generating API documentation") print("auto-generating API documentation")
with open("docs/api.rst", "w") as api: with open("docs/api.rst", "w") as doc:
api.write(""" doc.write("""
Borg Backup API documentation" Borg Backup API documentation"
============================= =============================
""") """)
for mod in glob('borg/*.py') + glob('borg/*.pyx'): for mod in glob('borg/*.py') + glob('borg/*.pyx'):
print("examining module %s" % mod) print("examining module %s" % mod)
if "/_" not in mod: if "/_" not in mod:
api.write(""" doc.write("""
.. automodule:: %s .. automodule:: %s
:members: :members:
:undoc-members: :undoc-members: