diff options
author | Aaron Carlisle <carlisle.b3d@gmail.com> | 2018-08-14 02:07:50 +0300 |
---|---|---|
committer | Aaron Carlisle <carlisle.b3d@gmail.com> | 2018-08-14 03:51:33 +0300 |
commit | 57e63599205f5cba75c119b44d253ed7cc65771d (patch) | |
tree | a328bfedd28e39417334cb1a9dd8b06044faa68f /doc/python_api/sphinx_doc_gen.py | |
parent | 7d8477e0190d2b8b661eebf4e110831f2c3a9805 (diff) |
PyDoc: Remove hack to rename main doc from 'contents' to 'index'
Diffstat (limited to 'doc/python_api/sphinx_doc_gen.py')
-rw-r--r-- | doc/python_api/sphinx_doc_gen.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/doc/python_api/sphinx_doc_gen.py b/doc/python_api/sphinx_doc_gen.py index 2195f49ba1b..b542eb46c9d 100644 --- a/doc/python_api/sphinx_doc_gen.py +++ b/doc/python_api/sphinx_doc_gen.py @@ -1679,7 +1679,7 @@ def write_rst_contents(basepath): ''' Write the rst file of the main page, needed for sphinx (index.html) ''' - filepath = os.path.join(basepath, "contents.rst") + filepath = os.path.join(basepath, "index.rst") file = open(filepath, "w", encoding="utf-8") fw = file.write @@ -1692,7 +1692,6 @@ def write_rst_contents(basepath): # fw("`A PDF version of this document is also available <%s>`_\n" % BLENDER_PDF_FILENAME) fw("This site can be downloaded for offline use `Download the full Documentation (zipped HTML files) <%s>`_\n" % BLENDER_ZIP_FILENAME) - fw("\n") if not EXCLUDE_INFO_DOCS: @@ -2109,8 +2108,6 @@ def main(): shutil.copytree(SPHINX_OUT, REFERENCE_PATH, ignore=shutil.ignore_patterns(*ignores)) - shutil.copy(os.path.join(REFERENCE_PATH, "contents.html"), - os.path.join(REFERENCE_PATH, "index.html")) # zip REFERENCE_PATH basename = os.path.join(ARGS.output_dir, REFERENCE_NAME) |