跳转到主要内容

"details" 指令用于Sphinx

项目描述

details 指令用于Sphinx

它使 details 指令作为一个元素来表示HTML输出中的 <details> 元素。在其他输出格式中,它将被转换为简单的段落。

## 安装

通过pip安装包 ` $ pip install sphinxcontrib-details-directive `

并将 sphinxcontrib.details.directive 添加到conf.py中的扩展列表。 ` extensions = ['sphinxcontrib.details.directive'] `

## 指令

details

details 指令创建一个包含以下内容的 <details>

 .. details:: summary of the detail block

    description of the details block.
    blah blah blah

It will be rendered with ``<details>`` tag in HTML output.  On the other hand, for
other output formats, it will be rendered as mere paragraphs.

``:open:`` flag is allowed to indicate the details block is opened by default.

项目详情


下载文件

为您的平台下载文件。如果您不确定选择哪个,请了解更多关于 安装包 的信息。

源分布

构建版本

sphinxcontrib_details_directive-0.1.0-py2.py3-none-any.whl (10.7 kB 查看哈希值)

上传于 Python 2 Python 3

由以下支持