mirror of
https://github.com/borgbackup/borg.git
synced 2025-02-06 22:43:48 +00:00
cosmetic: s/api/doc/
This commit is contained in:
parent
6c5a7733a2
commit
2e9bd5a883
1 changed files with 3 additions and 3 deletions
6
setup.py
6
setup.py
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue