docs.dev.hacking.txt Maven / Gradle / Ivy
==========================
Docutils_ Hacker's Guide
==========================
:Author: Lea Wiemann
:Contact: [email protected]
:Revision: $Revision: 7302 $
:Date: $Date: 2012-01-03 20:23:53 +0100 (Die, 03 Jän 2012) $
:Copyright: This document has been placed in the public domain.
:Abstract: This is the introduction to Docutils for all persons who
want to extend Docutils in some way.
:Prerequisites: You have used reStructuredText_ and played around with
the `Docutils front-end tools`_ before. Some (basic) Python
knowledge is certainly helpful (though not necessary, strictly
speaking).
.. _Docutils: http://docutils.sourceforge.net/
.. _reStructuredText: http://docutils.sourceforge.net/rst.html
.. _Docutils front-end tools: ../user/tools.html
.. contents::
Overview of the Docutils Architecture
=====================================
To give you an understanding of the Docutils architecture, we'll dive
right into the internals using a practical example.
Consider the following reStructuredText file::
My *favorite* language is Python_.
.. _Python: http://www.python.org/
Using the ``rst2html.py`` front-end tool, you would get an HTML output
which looks like this::
[uninteresting HTML code removed]
My favorite language is Python.