用于插入给定shell命令的stdout的docutils扩展
docutils_shell的Python项目详细描述
这个包定义了shell
指令,
docutils扩展,可以插入任何shell命令的输出
进入你的重组文本标记。
例如,此标记:
.. shell:: hg parent --template {rev} REVISION .. shell:: date "+built on %a %d %b %Y at %X %Z" TIMESTAMP Revision |REVISION|, |TIMESTAMP|
将显示如下内容:
Revision 5, built on Sun 14 Jun 2015 at 13:02:21 CDT
有关详细信息,请参见http://pythonhosted.org/docutils_shell/。