Answer the question
In order to leave comments, you need to log in
How to set up automatic documentation generation?
Actually, the question is:
I am currently writing a small project (in Python), I try to document all functions and methods in a similar way:
"""
Generates random secret. Inputs and return are similar to share()'s, except "secret", which is not
in use here.
@param passphrase: password, if you wish to keep your secret totally confidential
@param recipient: recipient's e-mail, if you wish to send him an invitation to see your secret
@param ttl: TTL of your secret, in seconds. Set to one day by default
@type passphrase: string
@type recipient: string
@type ttl: int
@return res: dict
"""
Answer the question
In order to leave comments, you need to log in
For Python, the de facto standard is: Sphinx (http://sphinx.pocoo.org/contents.html)
Before Sphinx, until the release of Python 2.5 , developers used the epydoc generator and, to be honest, some of its features are severely lacking in Sphinx. For example, automatic (i.e. completely, i.e. without additional markup) library API documentation , as well as building dependency graphs between objects . Well, purely subjective, the design and navigation in the old documentation seemed cleaner and easier to me.
Try it, you might like it.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question