|
113 | 113 | # -- Options for theme development ------------------------------------------- |
114 | 114 | # Make sure these are all set to the default values. |
115 | 115 |
|
116 | | -html_js_files = [] |
117 | 116 | html_context: Dict[str, Any] = {} |
118 | 117 | # html_show_sphinx = False |
119 | 118 | # html_show_copyright = False |
|
123 | 122 | if RTD_TESTING or "FURO_RTD_TESTING" in os.environ: |
124 | 123 | del html_theme_options["footer_icons"] |
125 | 124 |
|
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 | | - ] |
130 | 125 | 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", |
133 | 127 | ] |
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") |
142 | 130 |
|
143 | 131 | FONT_AWESOME_TESTING = False |
144 | 132 | if FONT_AWESOME_TESTING: |
|
0 commit comments