Skip to content

Commit

Permalink
Use proxied_static_path if available (#109)
Browse files Browse the repository at this point in the history
To match the changes from
readthedocs/readthedocs.org#9168
  • Loading branch information
stsewd authored May 16, 2022
1 parent abf2d84 commit 6dfcd43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion readthedocs_ext/readthedocs.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def update_body(app, pagename, templatename, context, doctree):
This is the most reliable way to inject our content into the page.
"""
STATIC_URL = context.get('STATIC_URL', DEFAULT_STATIC_URL)
STATIC_URL = context.get('proxied_static_path', context.get('STATIC_URL', DEFAULT_STATIC_URL))
if app.builder.name == 'readthedocssinglehtmllocalmedia':
if 'html_theme' in context and context['html_theme'] == 'sphinx_rtd_theme':
theme_css = '_static/css/theme.css'
Expand Down

0 comments on commit 6dfcd43

Please sign in to comment.