跳转到主要内容

增强Sphinx TocTree,可以将类、函数等显示为章节。

项目描述

增强Sphinx TocTree,可以将类、函数等显示为章节。

文档

Documentation Build Status Docs Check Status

测试

Linux Test Status Windows Test Status macOS Test Status Coverage

PyPI

PyPI - Package Version PyPI - Supported Python Versions PyPI - Supported Implementations PyPI - Wheel

Anaconda

Conda - Package Version Conda - Platform

活动

GitHub last commit GitHub commits since tagged version Maintenance PyPI - Downloads

QA

CodeFactor Grade Flake8 Status mypy status

其他

License GitHub top language Requirements Status

此想法已在 sphinx-doc/sphinx#6316sphinx-doc/sphinx#6435 中提出

您可以在 此项目的文档 中看到 toctree-plus 的实际应用,以及 domdf-python-tools(ReadTheDocs Sphinx主题)和 whey(Furo Sphinx主题)的文档。

安装

toctree_plus 可以从PyPI或Anaconda安装。

使用 pip 安装

$ python -m pip install toctree_plus

使用 conda 安装

  • 首先添加所需通道

$ conda config --add channels https://conda.anaconda.org/conda-forge
$ conda config --add channels https://conda.anaconda.org/domdfcoding
  • 然后安装

$ conda install toctree_plus

通过在 conf.py 文件的 extensions 变量中添加 "sphinxcontrib.toctree_plus" 来启用 toctree_plus

extensions = [
        ...
        "sphinxcontrib.toctree_plus",
        ]

更多信息请参阅 https://sphinx-doc.cn/en/master/usage/extensions/index.html#third-party-extensions

配置

目前只有一个配置选项: toctree_plus_types。该选项确定出现在 toctree 中的指令类型。默认值是 {"class", "function", "method"}

项目详情


下载文件

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

源代码分发

toctree_plus-0.8.0.tar.gz (7.6 kB 查看哈希值)

上传时间: 源代码

构建分发

toctree_plus-0.8.0-py3-none-any.whl (7.9 kB 查看哈希值)

上传时间: Python 3

由以下机构支持

AWS AWS 云计算和安全赞助商 Datadog Datadog 监控 Fastly Fastly CDN Google Google 下载分析 Microsoft Microsoft PSF 赞助商 Pingdom Pingdom 监控 Sentry Sentry 错误日志 StatusPage StatusPage 状态页面