|
@@ -584,10 +584,13 @@ class build_api(Command):
|
|
|
print("auto-generating API documentation")
|
|
|
with open("docs/api.rst", "w") as doc:
|
|
|
doc.write("""
|
|
|
+.. IMPORTANT: this file is auto-generated by "setup.py build_api", do not edit!
|
|
|
+
|
|
|
+
|
|
|
API Documentation
|
|
|
=================
|
|
|
""")
|
|
|
- for mod in glob('src/borg/*.py') + glob('src/borg/*.pyx'):
|
|
|
+ for mod in sorted(glob('src/borg/*.py') + glob('src/borg/*.pyx')):
|
|
|
print("examining module %s" % mod)
|
|
|
mod = mod.replace('.pyx', '').replace('.py', '').replace('/', '.')
|
|
|
if "._" not in mod:
|