[Bf-blender-cvs] [34c09bc21e4] blender2.8: PyDoc: Various fixes to generation process

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


Commit: 34c09bc21e4ff7e8d45c5adbed83a37471d523a9
Author: Aaron Carlisle
Date:   Mon Aug 13 19:37:41 2018 -0400
Branches: blender2.8
https://developer.blender.org/rB34c09bc21e4ff7e8d45c5adbed83a37471d523a9

PyDoc: Various fixes to generation process

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

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 8df0734ea9c..f17d5aa8ec0 100644
--- a/doc/python_api/sphinx_doc_gen.py
+++ b/doc/python_api/sphinx_doc_gen.py
@@ -1622,7 +1622,7 @@ def write_sphinx_conf_py(basepath):
     fw("extensions = ['sphinx.ext.intersphinx']\n\n")
     fw("intersphinx_mapping = {'blender_manual': ('https://docs.blender.org/manual/en/dev/', None)}\n\n")
     fw("project = 'Blender'\n")
-    # fw("master_doc = 'index'\n")
+    fw("master_doc = 'index'\n")
     fw("copyright = u'Blender Foundation'\n")
     fw("version = '%s - API'\n" % BLENDER_VERSION_DOTS)
     fw("release = '%s - API'\n" % BLENDER_VERSION_DOTS)
@@ -1724,7 +1724,8 @@ def write_rst_contents(basepath):
 
     for mod in app_modules:
         if mod not in EXCLUDE_MODULES:
-            fw("   %s\n\n" % mod)
+            fw("   %s\n" % mod)
+    fw("\n")
 
     fw(".. toctree::\n")
     fw("   :maxdepth: 1\n")
@@ -1738,7 +1739,8 @@ def write_rst_contents(basepath):
 
     for mod in standalone_modules:
         if mod not in EXCLUDE_MODULES:
-            fw("   %s\n\n" % mod)
+            fw("   %s\n" % mod)
+    fw("\n")
 
     # special case, this 'bmesh.ops.rst' is extracted from C source
     if "bmesh.ops" not in EXCLUDE_MODULES:



More information about the Bf-blender-cvs mailing list