Skip to content

Commit 1d8a9d4

Browse files
committed
Apply Changes from pradyunsg#797
1 parent e2cf436 commit 1d8a9d4

File tree

2 files changed

+3
-24
lines changed

2 files changed

+3
-24
lines changed

docs/_static/readthedocs-dummy.js

Lines changed: 0 additions & 9 deletions
This file was deleted.

docs/conf.py

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,6 @@
113113
# -- Options for theme development -------------------------------------------
114114
# Make sure these are all set to the default values.
115115

116-
html_js_files = []
117116
html_context: Dict[str, Any] = {}
118117
# html_show_sphinx = False
119118
# html_show_copyright = False
@@ -123,22 +122,11 @@
123122
if RTD_TESTING or "FURO_RTD_TESTING" in os.environ:
124123
del html_theme_options["footer_icons"]
125124

126-
html_css_files += [
127-
"https://assets.readthedocs.org/static/css/readthedocs-doc-embed.css",
128-
"https://assets.readthedocs.org/static/css/badge_only.css",
129-
]
130125
html_js_files += [
131-
"readthedocs-dummy.js",
132-
"https://assets.readthedocs.org/static/javascript/readthedocs-doc-embed.js",
126+
"https://raw.githubusercontent.com/readthedocs/addons/main/dist/readthedocs-addons.js",
133127
]
134-
html_context["READTHEDOCS"] = True
135-
html_context["current_version"] = "latest"
136-
html_context["conf_py_path"] = "/docs/"
137-
html_context["display_github"] = True
138-
html_context["github_user"] = "pradyunsg"
139-
html_context["github_repo"] = "furo"
140-
html_context["github_version"] = "main"
141-
html_context["slug"] = "furo"
128+
html_context["current_version"] = os.environ.get("READTHEDOCS_VERSION")
129+
html_context["slug"] = os.environ.get("READTHEDDOCS_PROJECT")
142130

143131
FONT_AWESOME_TESTING = False
144132
if FONT_AWESOME_TESTING:

0 commit comments

Comments
 (0)