[Bf-blender-cvs] [a38c2dcfe62] master: Pydoc: Add index and genindex to main index

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


Commit: a38c2dcfe62bd49c360fbf30349a5b7f63ae587c
Author: Aaron Carlisle
Date:   Sun Oct 11 16:54:52 2020 -0400
Branches: master
https://developer.blender.org/rBa38c2dcfe62bd49c360fbf30349a5b7f63ae587c

Pydoc: Add index and genindex to main index

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

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 58c399fa484..53d76af4a37 100644
--- a/doc/python_api/sphinx_doc_gen.py
+++ b/doc/python_api/sphinx_doc_gen.py
@@ -1838,6 +1838,10 @@ def write_rst_contents(basepath):
             fw("   %s\n" % mod)
     fw("\n")
 
+    fw(title_string("Indices", "="))
+    fw("* :ref:`genindex`\n")
+    fw("* :ref:`modindex`\n\n")
+
     # special case, this 'bmesh.ops.rst' is extracted from C source
     if "bmesh.ops" not in EXCLUDE_MODULES:
         execfile(os.path.join(SCRIPT_DIR, "rst_from_bmesh_opdefines.py"))



More information about the Bf-blender-cvs mailing list