1
0
Fork 0
mirror of https://github.com/borgbackup/borg.git synced 2025-02-07 06:59:38 +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):
print("auto-generating API documentation")
with open("docs/api.rst", "w") as api:
api.write("""
with open("docs/api.rst", "w") as doc:
doc.write("""
Borg Backup API documentation"
=============================
""")
for mod in glob('borg/*.py') + glob('borg/*.pyx'):
print("examining module %s" % mod)
if "/_" not in mod:
api.write("""
doc.write("""
.. automodule:: %s
:members:
:undoc-members: