sphinx/doc/intro.rst

61 lines
2.3 KiB
ReStructuredText
Raw Normal View History

Introduction
============
2008-03-12 16:37:22 -05:00
This is the documentation for the Sphinx documentation builder. Sphinx is a
tool that translates a set of reStructuredText_ source files into various output
formats, automatically producing cross-references, indices etc. That is, if
you have a directory containing a bunch of reST-formatted documents (and
possibly subdirectories of docs in there as well), Sphinx can generate a
nicely-organized arrangement of HTML files (in some other directory) for easy
browsing and navigation. But from the same source, it can also generate a
LaTeX file that you can compile into a PDF version of the documents.
2008-03-18 02:39:40 -05:00
The focus is on hand-written documentation, rather than auto-generated API docs.
Though there is support for that kind of docs as well (which is intended to be
freely mixed with hand-written content), if you need pure API docs have a look
at `Epydoc <http://epydoc.sf.net/>`_, which also understands reST.
2008-03-18 02:39:40 -05:00
2008-09-09 14:24:08 -05:00
Conversion from other systems
-----------------------------
This section is intended to collect helpful hints for those wanting to migrate
to reStructuredText/Sphinx from other documentation systems.
* Gerard Flanagan has written a script to convert pure HTML to reST; it can be
2009-06-10 01:45:22 -05:00
found at `BitBucket
<http://bitbucket.org/djerdo/musette/src/tip/musette/html/html2rest.py>`_.
2008-09-09 14:24:08 -05:00
* For converting the old Python docs to Sphinx, a converter was written which
can be found at `the Python SVN repository
<http://svn.python.org/projects/doctools/converter>`_. It contains generic
code to convert Python-doc-style LaTeX markup to Sphinx reST.
2008-09-09 14:24:08 -05:00
2009-08-04 15:39:17 -05:00
* Marcin Wojdyr has written a script to convert Docbook to reST with Sphinx
markup; it is at `Google Code <http://code.google.com/p/db2rst/>`_.
2008-09-09 14:24:08 -05:00
Use with other systems
----------------------
See the :ref:`pertinent section in the FAQ list <usingwith>`.
Prerequisites
-------------
2008-03-12 16:37:22 -05:00
Sphinx needs at least **Python 2.4** to run. If you like to have source code
highlighting support, you must also install the Pygments_ library, which you can
do via setuptools' easy_install. Sphinx should work with docutils version 0.4
or some (not broken) SVN trunk snapshot.
2008-03-12 16:37:22 -05:00
.. _reStructuredText: http://docutils.sf.net/rst.html
.. _Pygments: http://pygments.org
Usage
-----
2008-03-12 16:37:22 -05:00
See :doc:`tutorial` for an introduction. It also contains links to more
advanced sections in this manual for the topics it discusses.