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>2019-07-04 05:46:52 +0300
committerAaron Carlisle <carlisle.b3d@gmail.com>2019-07-04 05:46:52 +0300
commit66a69fa220118992cb63769b68ea05b17fd919e3 (patch)
treeb0fbbfa6f4a8ee2fc083f661cfda2983e46e2dfc /doc
parentc252fe7a32ab56f1bb052b083e7ceaec0bd5a49f (diff)
API Docs: Theme Options
- Limit Nav depth to 1 - Turn off stick nav - Add canonical_url
Diffstat (limited to 'doc')
-rw-r--r--doc/python_api/sphinx_doc_gen.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/doc/python_api/sphinx_doc_gen.py b/doc/python_api/sphinx_doc_gen.py
index 1ea1da4e03f..cafdefefb20 100644
--- a/doc/python_api/sphinx_doc_gen.py
+++ b/doc/python_api/sphinx_doc_gen.py
@@ -1623,6 +1623,16 @@ def write_sphinx_conf_py(basepath):
fw("html_title = 'Blender %s Python API'\n" % BLENDER_VERSION_DOTS)
fw("html_theme = 'sphinx_rtd_theme'\n")
+ fw("html_theme_options = {\n")
+ fw(" 'canonical_url': 'https://docs.blender.org/api/current/',\n")
+ # fw(" 'analytics_id': '',\n")
+ # fw(" 'collapse_navigation': True,\n")
+ fw(" 'sticky_navigation': False,\n")
+ fw(" 'navigation_depth': 1,\n")
+ # fw(" 'includehidden': True,\n")
+ # fw(" 'titles_only': False\n")
+ fw(" }\n\n")
+
# not helpful since the source is generated, adds to upload size.
fw("html_copy_source = False\n")
fw("html_show_sphinx = False\n")