-
Notifications
You must be signed in to change notification settings - Fork 2
Fix Sphinx 9 compatibility for CSS and JS asset rendering #25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
d86b503
a8f2895
88c6f4f
0d83965
f0e5c7f
3f2ea65
acda488
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -102,8 +102,12 @@ | |
| HAS_SOURCE: {{ has_source|lower }} | ||
| }; | ||
| </script> | ||
| {%- for scriptfile in script_files %} | ||
| <script type="text/javascript" src="{{ pathto(scriptfile, 1) }}"></script> | ||
| {%- for js in script_files %} | ||
| {%- if js|attr("filename") %} | ||
| {{ js_tag(js) }} | ||
| {%- else %} | ||
| <script type="text/javascript" src="{{ pathto(js, 1) }}"></script> | ||
| {%- endif %} | ||
| {%- endfor %} | ||
|
Comment on lines
+105
to
111
|
||
| <script type="text/javascript" src="{{ pathto('_static/js/copybutton.js', 1) }}"></script> | ||
| <script type="text/javascript" src="{{ pathto('_static/js/wrap_on_dot.js', 1) }}"></script> | ||
|
|
@@ -114,8 +118,12 @@ | |
| <link rel="stylesheet" type="text/css" href="{{ pathto('_static/css/spc-extend.css', 1) }}"> | ||
| <link rel="stylesheet" href="{{ pathto('_static/' + styles[0], 1) }}" type="text/css" > | ||
| <link rel="stylesheet" href="{{ pathto('_static/pygments.css', 1) }}" type="text/css" > | ||
| {%- for cssfile in css_files %} | ||
| <link rel="stylesheet" href="{{ pathto(cssfile, 1) }}" type="text/css" > | ||
| {%- for css in css_files %} | ||
| {%- if css|attr("filename") %} | ||
| {{ css_tag(css) }} | ||
| {%- else %} | ||
| <link rel="stylesheet" href="{{ pathto(css, 1) }}" type="text/css" > | ||
| {%- endif %} | ||
| {%- endfor %} | ||
| {%- endmacro %} | ||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The new 0.7.4 changelog section is missing a “Release date:” line, while all existing releases in this file include one. To keep the changelog consistent (and avoid ambiguity around whether 0.7.4 is actually released), add a release date or explicitly mark the section as unreleased.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Addressed in acda488