From d062c86ed003a9f1bd5a903cfeb11854eb5b3974 Mon Sep 17 00:00:00 2001 From: Aaron Carlisle Date: Mon, 13 Aug 2018 18:50:58 -0400 Subject: PyDoc: Use captions for section headers --- doc/python_api/sphinx_doc_gen.py | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'doc') diff --git a/doc/python_api/sphinx_doc_gen.py b/doc/python_api/sphinx_doc_gen.py index fe2279e9671..1be106ad6d6 100644 --- a/doc/python_api/sphinx_doc_gen.py +++ b/doc/python_api/sphinx_doc_gen.py @@ -1723,17 +1723,16 @@ def write_rst_contents(basepath): fw("\n") if not EXCLUDE_INFO_DOCS: - fw(title_string("Blender/Python Documentation", "=", double=True)) - fw(".. toctree::\n") - fw(" :maxdepth: 1\n\n") + fw(" :maxdepth: 1\n) + fw(" :caption: Blender/Python Documentation\n\n") for info, info_desc in INFO_DOCS: fw(" %s <%s>\n\n" % (info_desc, info)) fw("\n") - fw(title_string("Application Modules", "=", double=True)) fw(".. toctree::\n") - fw(" :maxdepth: 1\n\n") + fw(" :maxdepth: 1\n") + fw(" :caption: Application Modules\n") app_modules = ( "bpy.context", # note: not actually a module @@ -1755,9 +1754,9 @@ def write_rst_contents(basepath): if mod not in EXCLUDE_MODULES: fw(" %s\n\n" % mod) - fw(title_string("Standalone Modules", "=", double=True)) fw(".. toctree::\n") - fw(" :maxdepth: 1\n\n") + fw(" :maxdepth: 1\n") + fw(" :caption: Standalone Modules\n\n") standalone_modules = ( # submodules are added in parent page -- cgit v1.2.3