[Bf-blender-cvs] [d062c86ed00] blender2.8: PyDoc: Use captions for section headers

Aaron Carlisle noreply at git.blender.org
Tue Aug 14 02:54:03 CEST 2018


Commit: d062c86ed003a9f1bd5a903cfeb11854eb5b3974
Author: Aaron Carlisle
Date:   Mon Aug 13 18:50:58 2018 -0400
Branches: blender2.8
https://developer.blender.org/rBd062c86ed003a9f1bd5a903cfeb11854eb5b3974

PyDoc: Use captions for section headers

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

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 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



More information about the Bf-blender-cvs mailing list