小编The*_*ino的帖子

嵌套列表的父元素是否为粗体?

我目前正在使用sphinx创建有关我正在处理的python项目的完整文档。两种输出格式是HTML和Latex / PDF。

每当我创建一个嵌套列表时,父元素在html页面和PDF中都会显示为粗体

例如:

#. aaaa
#. bbbb
    1. b1
    2. b2
Run Code Online (Sandbox Code Playgroud)

渲染:

  1. 一种
  2. bbbb
    1. 11
    2. 22

在网上找到的所有嵌套列表示例中,情况并非如此。

有什么方法可以配置Sphinx使其父元素不加粗?

我正在使用Sphinx v1.2.3。这是我的conf.py:

    # -- General configuration ------------------------------------------------

autodoc_member_order = "bysource"



# If your documentation needs a minimal Sphinx version, state it here.
#needs_sphinx = '1.0'

# Add any Sphinx extension module names here, as strings. They can be
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
# ones.
extensions = [
    'sphinx.ext.autodoc',
    'sphinx.ext.doctest',
    'sphinxjp.themes.basicstrap',
    'sphinx.ext.pngmath'
] …
Run Code Online (Sandbox Code Playgroud)

html python latex restructuredtext python-sphinx

4
推荐指数
1
解决办法
475
查看次数

标签 统计

html ×1

latex ×1

python ×1

python-sphinx ×1

restructuredtext ×1