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
path: root/doc
diff options
context:
space:
mode:
authorAaron Carlisle <carlisle.b3d@gmail.com>2017-06-15 08:41:28 +0300
committerAaron Carlisle <carlisle.b3d@gmail.com>2017-06-15 08:41:28 +0300
commita96030b3da44dc66be861bd05380f5be24a9c1a1 (patch)
tree0aaf8cb4cee033ae67fab5d728c39f2ecbd497b2 /doc
parent44fd84bcc332d31c2c7510675ab6fcfb0bbfdf96 (diff)
PyAPI: Add toctree link on parent page of submodule
Diffstat (limited to 'doc')
-rw-r--r--doc/python_api/rst/gpu.rst8
-rw-r--r--doc/python_api/rst_from_bmesh_opdefines.py2
-rw-r--r--doc/python_api/sphinx_doc_gen.py12
3 files changed, 11 insertions, 11 deletions
diff --git a/doc/python_api/rst/gpu.rst b/doc/python_api/rst/gpu.rst
index 6c38122a573..cf639357a31 100644
--- a/doc/python_api/rst/gpu.rst
+++ b/doc/python_api/rst/gpu.rst
@@ -6,6 +6,13 @@ GPU functions (gpu)
This module provides access to materials GLSL shaders.
+Submodules:
+
+.. toctree::
+ :maxdepth: 1
+
+ gpu.offscreen.rst
+
Intro
=====
@@ -24,7 +31,6 @@ and in the game engine.
Constants
=========
-
GLSL Data Type
--------------
diff --git a/doc/python_api/rst_from_bmesh_opdefines.py b/doc/python_api/rst_from_bmesh_opdefines.py
index cdbed88cc88..d3e4b2a0cfd 100644
--- a/doc/python_api/rst_from_bmesh_opdefines.py
+++ b/doc/python_api/rst_from_bmesh_opdefines.py
@@ -22,7 +22,7 @@
# 'bmesh_opdefines.c' in order to avoid having to add a lot of introspection
# data access into the api.
#
-# The script is stupid becase it makes assumptions about formatting...
+# The script is stupid because it makes assumptions about formatting...
# that each arg has its own line, that comments above or directly after will be __doc__ etc...
#
# We may want to replace this script with something else one day but for now its good enough.
diff --git a/doc/python_api/sphinx_doc_gen.py b/doc/python_api/sphinx_doc_gen.py
index d2c6ade1e25..241929c24d9 100644
--- a/doc/python_api/sphinx_doc_gen.py
+++ b/doc/python_api/sphinx_doc_gen.py
@@ -1729,15 +1729,9 @@ def write_rst_contents(basepath):
fw(" :maxdepth: 1\n\n")
standalone_modules = (
- # mathutils, submodules are in own page
- "mathutils",
- # misc
- "freestyle", "bgl", "blf",
- "gpu", "gpu.offscreen",
- "aud", "bpy_extras",
- "idprop.types",
- # bmesh, submodules are in own page
- "bmesh",
+ # submodules are added in parent page
+ "mathutils", "freestyle", "bgl", "blf", "gpu",
+ "aud", "bpy_extras", "idprop.types", "bmesh",
)
for mod in standalone_modules: