diff --git a/readthedocs/doc_builder/backends/sphinx.py b/readthedocs/doc_builder/backends/sphinx.py index b95b65d2987..2051da8f00f 100644 --- a/readthedocs/doc_builder/backends/sphinx.py +++ b/readthedocs/doc_builder/backends/sphinx.py @@ -52,7 +52,12 @@ else: html_theme = 'sphinx_rtd_theme' html_style = None - html_theme_options = {} + html_theme_options = { + 'github_user': '{{ github_user }}', + 'github_repo': '{{ github_repo }}', + 'github_version': '{{ github_version }}', + 'display_github': {{ display_github }}, + } using_rtd_theme = True # Force theme on setting @@ -87,10 +92,6 @@ 'single_version': {{ project.single_version }}, 'conf_py_path': '{{ conf_py_path }}', 'api_host': '{{ api_host }}', - 'github_user': '{{ github_user }}', - 'github_repo': '{{ github_repo }}', - 'github_version': '{{ github_version }}', - 'display_github': {{ display_github }}, 'READTHEDOCS': True, 'using_theme': (html_theme == "default"), 'new_theme': (html_theme == "sphinx_rtd_theme"),