Beautiful Python documentation using Sphinx

Writing documentation does not have to be a pain and I think Sphinx is a pretty useful tool for creating kick ass documentation.

To get a feel of how Sphinx looks like, take a look at where it's used:

What features does it support?

  • Easy to use markup system (based on reStructuredText)
  • Highly customizable
  • Really good support for Python
  • Export to HTML, LaTeX, PDF (and other formats)
  • Cross-references, code highlighting, hierarchical structure and more...

To get started using Sphinx, simply do following:

sudo easy_install sphinx
sphinx-quickstart

After running sphinx-quickstart you got documentation directories and bam, you can explore Sphinx in greater detail ;-)

Sphinx itself has excellent documentation and I recommend reading it through to get a better feeling about Sphinxes features.

Now I am off to making some more documentation.

Code · Python · Tips 14. Nov 2008
2 comments so far

Neat. And it uses Jinja as templating engine.

I wonder if Markdown syntax can be used with it.

Atamert:
I am pretty sure one could hack this. That said I think using Markdown would limit the possibilities as Markdown is only a markup language, while Jinja is a template language.

Post a comment
Commenting on this post has expired.
© 2000-2009 amix. Powered by Skeletonz.