Sphinx扩展,用于包含程序输出
项目描述
https://sphinxcontrib-programoutput2.readthedocs.org
一个 Sphinx 扩展,用于直接将任意命令的输出插入文档中,帮助您保持命令示例的最新性。
安装
从 PyPI 安装此扩展
pip install sphinxcontrib-programoutput2
此扩展需要Sphinx 3.0.0和Python 3.6或更高版本。
用法
只需将此扩展添加到 extensions
extensions = ['sphinxcontrib.programoutput']
现在您有两个新的指令 program-output 和 command-output,用于插入程序的输出。前者仅插入输出
.. program-output:: python -V
输出
Python 3.9.0
后者指令模仿shell会话,旨在显示示例
.. command-output:: python -V
输出
$ python -V Python 3.9.0
请参阅文档获取有关此扩展用法和配置的详细信息。
开发和支持
请参阅文档获取有关支持和开发过程的信息。
项目详情
关闭
sphinxcontrib-programoutput2-2.0a1.tar.gz的哈希值
算法 | 哈希摘要 | |
---|---|---|
SHA256 | aa8e17aaa2c8a43e134217d115b8c38a994c797e1c7e1ff7cce81d0dae104cc8 |
|
MD5 | 6fd1c5ce9996e5be72541620079dfe6f |
|
BLAKE2b-256 | badc9781d6b6c5d958ab1acb63a218af2d6acc23e92cbef460a03d03ec64dffc |
关闭
sphinxcontrib_programoutput2-2.0a1-py3-none-any.whl的哈希值
算法 | 哈希摘要 | |
---|---|---|
SHA256 | 466e6aeeaca10e3dd07582664e42904dfd88329b6c4c4b98dc78715e9b44a0a1 |
|
MD5 | f5aad35109c93368ef36970bb7882fc3 |
|
BLAKE2b-256 | e6db5abb82d6195ecaa3e6f024a2426259ebcb3db62689163a6a47c8a01dda87 |