diff options
| author | Will Crichton <wcrichto@cs.stanford.edu> | 2021-11-02 18:48:07 -0700 |
|---|---|---|
| committer | Will Crichton <wcrichto@cs.stanford.edu> | 2021-11-02 19:10:50 -0700 |
| commit | 4b5e08ad79640d7924dac447024e0d873ce478d3 (patch) | |
| tree | 736a1b897d4af1fb66793abe6b4011a7743d0766 | |
| parent | 6f40fa4353a9075288f74ecc3553010b34c65baa (diff) | |
| download | rust-4b5e08ad79640d7924dac447024e0d873ce478d3.tar.gz rust-4b5e08ad79640d7924dac447024e0d873ce478d3.zip | |
Fix URL for scrape-examples.js in rustdoc page template
| -rw-r--r-- | src/librustdoc/html/templates/page.html | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/librustdoc/html/templates/page.html b/src/librustdoc/html/templates/page.html index cead54412bb..9fafea69145 100644 --- a/src/librustdoc/html/templates/page.html +++ b/src/librustdoc/html/templates/page.html @@ -108,12 +108,12 @@ data-search-js="{{static_root_path | safe}}search{{page.resource_suffix}}.js"> {#- -#} </div> <script src="{{static_root_path | safe}}main{{page.resource_suffix}}.js"></script> {#- -#} - {%- if layout.scrape_examples_extension -%} - <script src="{{static_root_path | safe}}scrape-examples{{page.resource_suffix}}.js"></script> {#- -#} - {%- endif -%} {%- for script in page.static_extra_scripts -%} <script src="{{static_root_path | safe}}{{script}}.js"></script> {#- -#} {% endfor %} + {%- if layout.scrape_examples_extension -%} + <script src="{{page.root_path | safe}}scrape-examples{{page.resource_suffix}}.js"></script> {#- -#} + {%- endif -%} {%- for script in page.extra_scripts -%} <script src="{{page.root_path | safe}}{{script}}.js"></script> {#- -#} {% endfor %} |
