rust/src/test/rustdoc/auxiliary
Michael Howell 6516f9408e rustdoc: use more precise relative URLS
Instead of using a depth counter and adding "../" to get to the top,
this commit makes rustdoc actually compare the path of what it's
linking from to the path that it's linking to. This makes the resulting
HTML shorter.

Here's a comparison of one of the largest (non-source) files in the
Rust standard library docs (about 4% improvement before gzipping).

    $ wc -c struct.Wrapping.old.html struct.Wrapping.new.html
    2387389 struct.Wrapping.old.html
    2298538 struct.Wrapping.new.html

Most if it can be efficiently gzipped away.

    $ wc -c struct.Wrapping.old.html.gz struct.Wrapping.new.html.gz
    70679 struct.Wrapping.old.html.gz
    70050 struct.Wrapping.new.html.gz

But it also makes a difference in the final DOM size, reducing it from 91MiB to 82MiB.
2021-04-17 09:21:52 -07:00
..
all-item-types.rs Remove licenses 2018-12-25 21:08:33 -07:00
auto-traits.rs Rename optin_builtin_traits to auto_traits 2020-11-23 14:14:06 -08:00
elided-lifetime.rs Cross-crate doc inlining test case for elided lifetime 2020-08-08 01:07:43 +01:00
empty.rs Remove licenses 2018-12-25 21:08:33 -07:00
enum-primitive.rs Moved issue tests to subdirs and normalised names. 2019-03-14 01:00:49 +00:00
extern-impl-trait.rs Remove licenses 2018-12-25 21:08:33 -07:00
extern-links.rs Remove licenses 2018-12-25 21:08:33 -07:00
external-cross-doc.md allow loading external files in documentation 2017-11-21 15:46:49 -06:00
external-cross.rs Remove licenses 2018-12-25 21:08:33 -07:00
external-doc.md allow loading external files in documentation 2017-11-21 15:46:49 -06:00
external-macro-src.rs rustdoc: Don't try to load source files from external crates 2020-04-08 18:35:17 +01:00
inline-default-methods.rs Remove licenses 2018-12-25 21:08:33 -07:00
issue-13698.rs Remove licenses 2018-12-25 21:08:33 -07:00
issue-15318.rs Remove licenses 2018-12-25 21:08:33 -07:00
issue-17476.rs Remove licenses 2018-12-25 21:08:33 -07:00
issue-19190-3.rs Remove licenses 2018-12-25 21:08:33 -07:00
issue-20646.rs Remove licenses 2018-12-25 21:08:33 -07:00
issue-20727.rs Remove licenses 2018-12-25 21:08:33 -07:00
issue-21092.rs Remove licenses 2018-12-25 21:08:33 -07:00
issue-21801.rs Remove licenses 2018-12-25 21:08:33 -07:00
issue-22025.rs Remove licenses 2018-12-25 21:08:33 -07:00
issue-23207-1.rs Remove licenses 2018-12-25 21:08:33 -07:00
issue-23207-2.rs Remove double trailing newlines 2019-04-22 16:57:01 +01:00
issue-26606-macro.rs Remove licenses 2018-12-25 21:08:33 -07:00
issue-27362-aux.rs rustdoc supports const re-exports 2020-04-29 11:52:02 -04:00
issue-28927-1.rs Remove licenses 2018-12-25 21:08:33 -07:00
issue-28927-2.rs Remove licenses 2018-12-25 21:08:33 -07:00
issue-29584.rs Remove licenses 2018-12-25 21:08:33 -07:00
issue-30109-1.rs Remove licenses 2018-12-25 21:08:33 -07:00
issue-34274.rs Update tests for extern block linting 2021-01-13 07:49:16 -05:00
issue-36031.rs Remove licenses 2018-12-25 21:08:33 -07:00
issue-40936.rs Remove licenses 2018-12-25 21:08:33 -07:00
issue-46727.rs Remove licenses 2018-12-25 21:08:33 -07:00
issue-48414.rs Remove licenses 2018-12-25 21:08:33 -07:00
issue-53689.rs Remove licenses 2018-12-25 21:08:33 -07:00
issue-57180.rs Add regression test for issue, apply suggestion to convert to assert_eq 2019-08-28 00:21:30 -04:00
issue-61592.rs Rustdoc render public underscore_imports as Re-exports 2020-12-31 09:07:51 +00:00
issue-73061.rs Replace type_alias_impl_trait by min_type_alias_impl_trait with no actual changes in behaviour 2021-03-15 17:32:43 +00:00
macro_pub_in_module.rs Update test assertions (showcases bug) 2021-01-06 15:13:38 +01:00
masked.rs Remove licenses 2018-12-25 21:08:33 -07:00
mod-stackoverflow.rs Remove licenses 2018-12-25 21:08:33 -07:00
normalize-assoc-item.rs Normalize <X as Y>::T for rustdoc 2020-11-24 14:10:18 -05:00
primitive-doc.rs rustdoc: use more precise relative URLS 2021-04-17 09:21:52 -07:00
primitive-reexport.rs rustdoc: Fix re-exporting primitive types 2020-01-26 21:32:43 +00:00
pub-extern-crate.rs add test for pub extern crate 2019-01-10 21:18:46 -05:00
pub-use-extern-macros.rs Remove licenses 2018-12-25 21:08:33 -07:00
real_gimli.rs Add ui test for 74672 and 76571 2020-09-13 05:27:10 +00:00
realcore.rs Add ui test for 74672 and 76571 2020-09-13 05:27:10 +00:00
reexp-stripped.rs Moved issue tests to subdirs and normalised names. 2019-03-14 01:00:49 +00:00
reexport-check.rs Show summary lines on cross-crate re-exports 2020-10-11 20:27:17 -04:00
rustdoc-default-impl.rs Rename optin_builtin_traits to auto_traits 2020-11-23 14:14:06 -08:00
rustdoc-extern-default-method.rs Remove licenses 2018-12-25 21:08:33 -07:00
rustdoc-extern-method.rs Remove licenses 2018-12-25 21:08:33 -07:00
rustdoc-ffi.rs Remove licenses 2018-12-25 21:08:33 -07:00
rustdoc-impl-parts-crosscrate.rs Use the name "auto traits" everywhere in the compiler 2020-11-24 16:25:43 -08:00
src-links-external.rs Remove licenses 2018-12-25 21:08:33 -07:00
unit-return.rs Remove licenses 2018-12-25 21:08:33 -07:00
unstable-trait.rs Only skip impls of foreign unstable traits 2020-07-19 16:39:20 -04:00
variant-struct.rs Remove licenses 2018-12-25 21:08:33 -07:00