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:
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):
|
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:
|
||||||
|
|
Loading…
Reference in a new issue