Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API documentation? #23

Closed
anarcat opened this issue May 22, 2015 · 4 comments
Closed

API documentation? #23

anarcat opened this issue May 22, 2015 · 4 comments
Labels

Comments

@anarcat
Copy link
Contributor

anarcat commented May 22, 2015

attic/borg has very little inline comments, but it would still be very useful to expose the API structure in the official documentation.

in fact, I wonder if it would be useful to spend some time crawling through that source code explaining each file and function so that we could get a better idea of what all the parts are doing...

then the sphinx doc engine could automatically generate nice API graphs that would be walkable.

the way i did that in one of my Python modules is like this:

Monkeysign API documentation
============================

GnuPG API
---------

.. automodule:: monkeysign.gpg
   :members:
   :undoc-members:

CLI Interface
-------------

.. automodule:: monkeysign.cli
   :members:
   :undoc-members:

GTK Interface
-------------

.. may fail if the GTK module isn't available, oh well.
.. automodule:: monkeysign.gtkui
   :members:
   :undoc-members:

it's mostly useful to document APIs, but I think it could be useful for borg as well.

opinions?

@anarcat
Copy link
Contributor Author

anarcat commented May 22, 2015

i can't work on this without uninstalling attic or fixing #24 so i am a little stuck.

@ThomasWaldmann
Copy link
Member

Currently, better don't do global changes, like adding docstrings everywhere. That would just cause a lot of work when I merge all that still-unmerged code from "merge-all" branch.

@anarcat
Copy link
Contributor Author

anarcat commented May 22, 2015 via email

@anarcat
Copy link
Contributor Author

anarcat commented Sep 30, 2015

see #230 for the shims to build with the current docstrings (which isn't much). moving the discussion there.

@anarcat anarcat closed this as completed Sep 30, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants