我目前正在使用sphinx创建有关我正在处理的python项目的完整文档。两种输出格式是HTML和Latex / PDF。
每当我创建一个嵌套列表时,父元素在html页面和PDF中都会显示为粗体。
例如:
#. aaaa
#. bbbb
1. b1
2. b2
Run Code Online (Sandbox Code Playgroud)
渲染:
在网上找到的所有嵌套列表示例中,情况并非如此。
有什么方法可以配置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)