about summary refs log tree commit diff
path: root/src/doc
diff options
context:
space:
mode:
authorMichael Howell <michael@notriddle.com>2023-11-13 15:09:24 -0700
committerMichael Howell <michael@notriddle.com>2023-11-13 16:00:31 -0700
commit29f5d2c1aedc37ec0040504b73e6c9ac5a8c97c1 (patch)
tree6b85f1303cc022dcb95644eb11934e678fa6372a /src/doc
parent85b84504669c6c779fab7b96fbe5b26635067cd1 (diff)
doc: add release notes to standalone doc bundle
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.md14
-rw-r--r--src/doc/rust.css4
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;