Differences between revisions 28 and 29
Revision 28 as of 2010-10-18 14:30:48
Size: 4499
Editor: fw
Comment:
Revision 29 as of 2011-11-09 03:38:23
Size: 4704
Editor: ool-45732836
Comment: Added link to the Gouda doc tool in "other documentation processing tools" section
Deletions are marked like this. Additions are marked like this.
Line 52: Line 52:
 * [[http://www.unexpected-vortices.com/sw/gouda/docs/|Gouda]] -- a Python script (which uses Pandoc under the hood) to help make it as simple and easy as possible to write, organize, and publish docs.

Python modules are usually documented using docstrings. You can read a module's docstrings from the Python interactive prompt with the help() function. For example:

import distutils
help(distutils)

The help() function uses Python's standard pydoc module, as does the pydoc command that comes with Python.

The various documentation tools available generally do one of two things:

  • they either process docstrings in some way to make finding/reading documentation on a given module easier (so-called "API documentation tools"), or
  • they have nothing to do with docstrings and instead focus on processing documentation in some way (such as converting your plain text docs into html)

Currently, the Python docs consist of 2 parts:

  • the API docs that you can read using the help() command (pydoc can also provide these as html and even serve them from your local machine), and

  • the manuals/guides/howtos at http://python.org/doc/ which are written in reStructuredText (a plain text format) and processed into various output formats by the Sphinx tool.

When writing documentation for your own modules (either as manuals or docstrings (preferably both)), I suggest you use a plain text markup such as reST or Markdown.

Automatic Python API documentation generation tools

No longer under development

Documentation processing tools

Other projects that can be used to produce API documentation

  • XIST - an XML based extensible HTML generator written in Python.

  • HtmlGen - a Python library for generating HTML documents.

Other documentation processing tools

  • Pandoc -- written in Haskell, this tool can read and write a number of formats (including reST).

  • Gouda -- a Python script (which uses Pandoc under the hood) to help make it as simple and easy as possible to write, organize, and publish docs.


CategoryDocumentation

DocumentationTools (last edited 2023-02-04 13:42:35 by GilOliveira)

Unable to edit the page? See the FrontPage for instructions.