Skip to content

Commit 4b5e08a

Browse files
committed
Fix URL for scrape-examples.js in rustdoc page template
1 parent 6f40fa4 commit 4b5e08a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: src/librustdoc/html/templates/page.html

+3-3
Original file line numberDiff line numberDiff line change
@@ -108,12 +108,12 @@
108108
data-search-js="{{static_root_path | safe}}search{{page.resource_suffix}}.js"> {#- -#}
109109
</div>
110110
<script src="{{static_root_path | safe}}main{{page.resource_suffix}}.js"></script> {#- -#}
111-
{%- if layout.scrape_examples_extension -%}
112-
<script src="{{static_root_path | safe}}scrape-examples{{page.resource_suffix}}.js"></script> {#- -#}
113-
{%- endif -%}
114111
{%- for script in page.static_extra_scripts -%}
115112
<script src="{{static_root_path | safe}}{{script}}.js"></script> {#- -#}
116113
{% endfor %}
114+
{%- if layout.scrape_examples_extension -%}
115+
<script src="{{page.root_path | safe}}scrape-examples{{page.resource_suffix}}.js"></script> {#- -#}
116+
{%- endif -%}
117117
{%- for script in page.extra_scripts -%}
118118
<script src="{{page.root_path | safe}}{{script}}.js"></script> {#- -#}
119119
{% endfor %}

0 commit comments

Comments
 (0)