Pydoc: Add index and genindex to main index

This commit is contained in:
Aaron Carlisle 2020-10-11 16:54:52 -04:00
parent c95ab2c6f0
commit a38c2dcfe6
1 changed files with 4 additions and 0 deletions

View File

@ -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"))