diff --git a/readthedocs/doc_builder/templates/doc_builder/conf.py.tmpl b/readthedocs/doc_builder/templates/doc_builder/conf.py.tmpl index 2ad5b885cf1..761afda3097 100644 --- a/readthedocs/doc_builder/templates/doc_builder/conf.py.tmpl +++ b/readthedocs/doc_builder/templates/doc_builder/conf.py.tmpl @@ -132,6 +132,15 @@ if 'html_context' in globals(): else: html_context = context +# Add custom RTD templates +if using_rtd_theme: + if 'templates_path' in globals(): + templates_path.append('{{ template_path }}') + else: + templates_path = [ + '{{ template_path }}', + ] + # Add custom RTD extension if 'extensions' in globals(): # Insert at the beginning because it can interfere diff --git a/readthedocs/templates/sphinx/versions.html b/readthedocs/templates/sphinx/versions.html new file mode 100644 index 00000000000..9abecf29d62 --- /dev/null +++ b/readthedocs/templates/sphinx/versions.html @@ -0,0 +1,12 @@ +{# Template override to avoid adding static version menu into Read the Docs production sites #} +{# Add rst-badge after rst-versions for small badge style. #} +