diff options
| author | Mazdak Farrokhzad <twingoow@gmail.com> | 2019-04-16 05:14:24 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-04-16 05:14:24 +0200 |
| commit | 426e747b7e64d6b1c1d3bf76a974f2d60e2552f3 (patch) | |
| tree | 8edd28f07018a9ce11451551ad87f2222787b075 /src/test/rustdoc | |
| parent | 9014cfcee4717c6309044bea1831eb4f35f4cb8a (diff) | |
| parent | 1c0e1c10d5c6463147690aba7696a7cbcf2840a1 (diff) | |
| download | rust-426e747b7e64d6b1c1d3bf76a974f2d60e2552f3.tar.gz rust-426e747b7e64d6b1c1d3bf76a974f2d60e2552f3.zip | |
Rollup merge of #59992 - QuietMisdreavus:static-settings-path, r=GuillaumeGomez
rustdoc: use --static-root-path for settings.js At the time i was writing https://github.com/rust-lang/docs.rs/pull/332, i noticed that the `settings.js` file that was being loaded was not being loaded from the `--static-root-path`. This PR fixes that so that users on docs.rs can effectively cache this file.
Diffstat (limited to 'src/test/rustdoc')
| -rw-r--r-- | src/test/rustdoc/static-root-path.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/test/rustdoc/static-root-path.rs b/src/test/rustdoc/static-root-path.rs index 84b32f90c89..2f7c89c5f1e 100644 --- a/src/test/rustdoc/static-root-path.rs +++ b/src/test/rustdoc/static-root-path.rs @@ -12,3 +12,7 @@ pub struct SomeStruct; // @!matches - '"\.\./\.\./source-script\.js"' // @matches - '"\.\./\.\./source-files.js"' // @!matches - '"/cache/source-files\.js"' + +// @has settings.html +// @matches - '/cache/settings\.js' +// @!matches - '\./settings\.js' |
