Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron Carlisle <carlisle.b3d@gmail.com>2018-08-14 02:37:41 +0300
committerAaron Carlisle <carlisle.b3d@gmail.com>2018-08-14 03:51:34 +0300
commit34c09bc21e4ff7e8d45c5adbed83a37471d523a9 (patch)
treeebe31b9c212da43abac19c6fc19268e621070124 /doc/python_api/sphinx_doc_gen.py
parenta3cc1fcaf36ef16f21cf87bc51639c631c9c666d (diff)
PyDoc: Various fixes to generation process
Diffstat (limited to 'doc/python_api/sphinx_doc_gen.py')
-rw-r--r--doc/python_api/sphinx_doc_gen.py8
1 files changed, 5 insertions, 3 deletions
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: