[Bf-blender-cvs] [fbcb26fb339] master: Pydoc: Add submodule heading to submodule lists

Aaron Carlisle noreply at git.blender.org
Mon Oct 12 00:24:11 CEST 2020


Commit: fbcb26fb33957a8f3231fb5ce186784ac9ccaab6
Author: Aaron Carlisle
Date:   Sun Oct 11 16:09:42 2020 -0400
Branches: master
https://developer.blender.org/rBfbcb26fb33957a8f3231fb5ce186784ac9ccaab6

Pydoc: Add submodule heading to submodule lists

===================================================================

M	doc/python_api/sphinx_doc_gen.py

===================================================================

diff --git a/doc/python_api/sphinx_doc_gen.py b/doc/python_api/sphinx_doc_gen.py
index 29570fedad5..58c399fa484 100644
--- a/doc/python_api/sphinx_doc_gen.py
+++ b/doc/python_api/sphinx_doc_gen.py
@@ -827,7 +827,8 @@ def pymodule2sphinx(basepath, module_name, module, title, module_all_extra):
 
         if submod_ls:
             fw(".. toctree::\n")
-            fw("   :maxdepth: 1\n\n")
+            fw("   :maxdepth: 1\n")
+            fw("   :caption: Submodules\n\n")
 
             for submod_name, submod in submod_ls:
                 submod_name_full = "%s.%s" % (module_name, submod_name)
@@ -1891,6 +1892,7 @@ def write_rst_ops_index(basepath):
         fw(".. module:: bpy.ops\n\n")
         write_example_ref("", fw, "bpy.ops")
         fw(".. toctree::\n")
+        fw("   :caption: Submodules\n")
         fw("   :glob:\n\n")
         fw("   bpy.ops.*\n\n")
         file.close()



More information about the Bf-blender-cvs mailing list