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 的哈希值
算法 | 哈希摘要 | |
---|---|---|
SHA256 | f2bd1e02db6bcde66208c8df6d3a2a4efb15ba7a6e8a65ad74ccbd640b012064 |
|
MD5 | f4d8abe916fc9c95c294ec2c8b92e2d6 |
|
BLAKE2b-256 | ad83bbcc25caa798792e0ebd55b839ccb97ff78587f5e9271ea4c5fb2ff25190 |
关闭
sphinxcontrib_getstart_sphinx-1.2.0-py2.py3-none-any.whl 的哈希值
算法 | 哈希摘要 | |
---|---|---|
SHA256 | cd849df08be163d27c45ff9913a7bf6a5f3f1d0d9e5fd9b92ca81e9b88d6609e |
|
MD5 | 25e0064cb28cb1ae0b664727959d59e7 |
|
BLAKE2b-256 | 108eaf2a33510b507335b59cc3bd40a8865d336a4e72d63441d5f68eac4b6725 |