开发者

Using RestructuredText and Sphinx to include a preformatted file

开发者 https://www.devze.com 2022-12-23 12:13 出处:网络
I\'m trying to make this fragment work: Version History --------------- These are the versions over time::

I'm trying to make this fragment work:

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

These are the versions over time::

    .. inclu开发者_如何学Pythonde:: ../../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?


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

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号