diff options
| author | bors <bors@rust-lang.org> | 2023-11-19 16:44:55 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2023-11-19 16:44:55 +0000 |
| commit | 290fc68f2d27b67da5fd176965c42c01ea4c57fe (patch) | |
| tree | c488584013cc254010bb94eaed173ef65534db4e /src/doc | |
| parent | 27794f95fdccda6a6ed292f6724b546cff35e13d (diff) | |
| parent | 0bf77206ad8fc72cc5970ced6a2126b07afbddb0 (diff) | |
Auto merge of #117888 - notriddle:notriddle/releases, r=Mark-Simulacrum
doc: add release notes to standalone doc bundle Preview: http://notriddle.com/rustdoc-html-demo-5/release-notes/releases.html This is a workaround for #101714 on top of being a useful addition in its own right. It is intended to change the "canonical URL" for viewing the release notes from GitHub, which is relatively slow, to a pre-rendered HTML file that loads from the same CDN as the standard library docs. It also means you get a copy of the release notes when installing the rust-docs with rustup.
Diffstat (limited to 'src/doc')
| -rw-r--r-- | src/doc/index.md | 14 | ||||
| -rw-r--r-- | src/doc/rust.css | 4 |
2 files changed, 10 insertions, 8 deletions
diff --git a/src/doc/index.md b/src/doc/index.md index 7c97c16c20b..8ad5b427b55 100644 --- a/src/doc/index.md +++ b/src/doc/index.md @@ -4,12 +4,6 @@ nav { display: none; } -body { - font-family: serif; -} -h1, h2, h3, h4, h5, h6 { - font-family: sans-serif; -} h3 { font-size: 1.35rem; } @@ -119,10 +113,14 @@ documentation for your project _and_ all its dependencies in their correct version, and open it in your browser. Add the flag `--document-private-items` to also show items not marked `pub`. -### The Edition Guide +### Rust Version History + +[The Release Notes](releases.html) describes the change history of the Rust +toolchain and language. [The Edition Guide](edition-guide/index.html) describes the Rust editions and -their differences. +their differences. The latest version of the toolchain supports all +historical editions. ### The `rustc` Book diff --git a/src/doc/rust.css b/src/doc/rust.css index d33ab032603..e0bf64c33bc 100644 --- a/src/doc/rust.css +++ b/src/doc/rust.css @@ -1,6 +1,7 @@ /* General structure */ body { + font-family: serif; margin: 0 auto; padding: 0 15px; font-size: 18px; @@ -17,6 +18,9 @@ body { } } +h1, h2, h3, h4, h5, h6 { + font-family: sans-serif; +} h2, h3, h4, h5, h6 { font-weight: 400; line-height: 1.1; |
