mirror of
https://github.com/blender/blender
synced 2026-09-29 04:37:17 +03:00
API Docs: Theme Options
- Limit Nav depth to 1 - Turn off stick nav - Add canonical_url
This commit is contained in:
parent
c252fe7a32
commit
66a69fa220
1 changed files with 10 additions and 0 deletions
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue