跳转到主要内容

Sphinx扩展,用于"Sphinx 2nd Edition入门"

项目描述

sphinxcontrib-getstart-sphinx 是一组Sphinx扩展,用于构建Sphinxをはじめよう 第2版 (Getting Started with Sphinx 2nd Edition)

此软件包提供以下扩展:

sphinxcontrib.getstart_sphinx.better_docref

将章节编号附加到每个 :doc: 引用。

sphinxcontrib.getstart_sphinx.column

为备注添加 column 指令。

sphinxcontrib.getstart_sphinx.footnote_relocator

将脚注定义移动到每个章节的底部。

sphinxcontrib.getstart_sphinx.glossary_decorator

使词汇表中的术语加粗。

sphinxcontrib.getstart_sphinx.oreilly_review_table

将Re:VIEW输出中的表格转换为O’Reilly Japan内部工具的原始符号。

用法

要启用此软件包中的所有扩展,请将 sphinxcontrib.getstart_sphinx 添加到您的 extensions 列表中的 conf.py。

extensions = ['sphinxcontrib.getstart_sphinx']

如果您想分别启用特定扩展,请将其名称添加到列表中,如下所示:

extensions = ['sphinxcontrib.getstart_sphinx.better_docref',
              'sphinxcontrib.getstart_sphinx.footnote_relocator']

指令

您可以使用以下指令:

column

一个标记列的指令。它接受列标题作为参数,并且接受列体作为内容块。

示例

.. column:: SphinxとPythonのバージョンの関係

   バージョン1.5以降、Sphinxを動作させるには2.7もしくは3.4以上の
   Pythonが必要です。
   そのため、古いPythonがインストールされるCentOS 6.x系などのディスト
   リビューションでは、最新のSphinxが利用できません。

设置

您可以配置以下设置以安排扩展的行为。

section_numbers:

一个将文档名映射到章节编号文本的字典。这由 better_docref 扩展用于为文档引用构建链接标题。

示例

section_numbers = {
    'ch01': '第1章',
    'ch02': '第2章',
    'ch03': '第3章',
    'ch04': '第4章',
    'ch05': '第5章',
    'ch06': '第6章',
    'appendix/references': '付録A',
    'appendix/builders': '付録B',
    'appendix/quickstart': '付録C',
    'appendix/texlive': '付録D',
    'appendix/make_sh': '付録E',
    'appendix/markdown': '付録F',
    'appendix/community': '付録G',
}

项目详情


下载文件

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

源代码分发

sphinxcontrib-getstart-sphinx-1.2.0.tar.gz (6.9 kB 查看哈希值)

上传时间 源代码

构建分发

sphinxcontrib_getstart_sphinx-1.2.0-py2.py3-none-any.whl (8.8 kB 查看哈希值)

上传时间 Python 2 Python 3

由以下机构支持

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