diff options
| author | Michael Howell <michael@notriddle.com> | 2023-09-18 17:48:18 -0700 |
|---|---|---|
| committer | Michael Howell <michael@notriddle.com> | 2023-10-08 20:17:53 -0700 |
| commit | 6d6fa792fffa6e22eec1b30cedee6e8306d0df64 (patch) | |
| tree | 293ffd439cbf85994b1c8f8d912c008e66c8a59b /tests/rustdoc | |
| parent | 957c5db6be09f8def3f7a8297577a6d42e02f7c0 (diff) | |
| download | rust-6d6fa792fffa6e22eec1b30cedee6e8306d0df64.tar.gz rust-6d6fa792fffa6e22eec1b30cedee6e8306d0df64.zip | |
rustdoc: clean up the layout for annotated version numbers
This should result in a layout for the actual standard library,
when built on CI, that looks like this:
_____
/ \ std
| R | 1.74.0-nightly
\_____/
(203c57dbe 2023-09-17)
Having the whole version as one string caused it to flex wrap,
because the sidebar isn't wide enough to fit the whole thing.
Diffstat (limited to 'tests/rustdoc')
| -rw-r--r-- | tests/rustdoc/crate-version-extra.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/rustdoc/crate-version-extra.rs b/tests/rustdoc/crate-version-extra.rs new file mode 100644 index 00000000000..72a2c4ba5f7 --- /dev/null +++ b/tests/rustdoc/crate-version-extra.rs @@ -0,0 +1,7 @@ +// compile-flags: '--crate-version=1.3.37-nightly (203c57dbe 2023-09-17)' + +#![crate_name="foo"] + +// main version next to logo, extra version data below it +// @has 'foo/index.html' '//h2/span[@class="version"]' '1.3.37-nightly' +// @has 'foo/index.html' '//nav[@class="sidebar"]/div[@class="version"]' '(203c57dbe 2023-09-17)' |
