[Doc-SIG] Including files

David Goodger goodger@python.org
Sun, 01 Dec 2002 10:51:25 -0500


Pearu Peterson wrote:
> What do you think?

The "include" directive is already implemented.  For included
reStructuredText source files use::

    .. include:: file.txt

For literal block inclusions (example code, etc.), use::

    .. include:: module.py
       :literal:

Make sure you're using the latest code from CVS or the snapshot.  See
<http::/docutils.sf.net/spec/rst/directives.html> for details.

-- 
David Goodger  <goodger@python.org>  Open-source projects:
  - Python Docutils: http://docutils.sourceforge.net/
    (includes reStructuredText: http://docutils.sf.net/rst.html)
  - The Go Tools Project: http://gotools.sourceforge.net/