Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using RestructuredText and Sphinx to include a preformatted file

I'm trying to make this fragment work:

Version History
---------------

These are the versions over time::

    .. include:: ../../CHANGES.txt 

That is, use the include directive so that a file is included as a block quote. Once inside a block quote, the directive is quoted. I want the contents of the file in a block quote.

Any idea how to do this?

like image 928
Charles Merriam Avatar asked Mar 17 '10 19:03

Charles Merriam


1 Answers

I think the .. literalinclude:: directive should give you what you want.

like image 88
Matti Pastell Avatar answered Oct 04 '22 02:10

Matti Pastell