diff --git a/docs/configuring.rst b/docs/configuring.rst index eb382a702..0675c5477 100644 --- a/docs/configuring.rst +++ b/docs/configuring.rst @@ -25,6 +25,7 @@ file of this repository, and can be defined in your project's ``conf.py`` via 'prev_next_buttons_location': 'bottom', 'style_external_links': False, 'vcs_pageview_mode': '', + 'versions_menu': True, # Toc options 'collapse_navigation': False, 'sticky_navigation': True, @@ -49,6 +50,7 @@ Base options * ``vcs_pageview_mode`` String. Changes how to view files when using `display_github`, `display_gitlab`, etc. When using Github or Gitlab this can be: `blob` (default), `edit`, or `raw`, on Bitbucket, this can be either: `view` (default) or `edit`. +* ``versions_menu`` Bool. Whether or not to show the bottom left menu listing the versions and links to VCS repository. TOC Options ~~~~~~~~~~~ diff --git a/sphinx_rtd_theme/theme.conf b/sphinx_rtd_theme/theme.conf index 530c1cdc8..4166a9b42 100644 --- a/sphinx_rtd_theme/theme.conf +++ b/sphinx_rtd_theme/theme.conf @@ -16,3 +16,4 @@ display_version = True prev_next_buttons_location = bottom style_external_links = False vcs_pageview_mode = +versions_menu = True diff --git a/sphinx_rtd_theme/versions.html b/sphinx_rtd_theme/versions.html index 4d78287ad..688747c9b 100644 --- a/sphinx_rtd_theme/versions.html +++ b/sphinx_rtd_theme/versions.html @@ -1,4 +1,4 @@ -{% if READTHEDOCS %} +{%- if READTHEDOCS %} {# Add rst-badge after rst-versions for small badge style. #}