From efac0540373685d11d5db9752ecfe0803b277155 Mon Sep 17 00:00:00 2001 From: Nikhil Benesch Date: Sun, 24 Mar 2019 22:06:34 -0400 Subject: [PATCH 1/4] doc: use correct body font URLs The CSS for the docs homepage (docs.rust-lang.org) was using the wrong URL for the body font, resulting in the fallback serif font being used, instead of the desired Source Serif Pro fonts. --- src/doc/rust.css | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/doc/rust.css b/src/doc/rust.css index 631f64a11db..a92d4ff54db 100644 --- a/src/doc/rust.css +++ b/src/doc/rust.css @@ -14,19 +14,19 @@ font-family: 'Source Serif Pro'; font-style: normal; font-weight: 400; - src: local('Source Serif Pro'), url("SourceSerifPro-Regular.woff") format('woff'); + src: local('Source Serif Pro'), url("SourceSerifPro-Regular.ttf.woff") format('woff'); } @font-face { font-family: 'Source Serif Pro'; font-style: italic; font-weight: 400; - src: url("Heuristica-Italic.woff") format('woff'); + src: url("SourceSerifPro-It.ttf.woff") format('woff'); } @font-face { font-family: 'Source Serif Pro'; font-style: normal; font-weight: 700; - src: local('Source Serif Pro Bold'), url("SourceSerifPro-Bold.woff") format('woff'); + src: local('Source Serif Pro Bold'), url("SourceSerifPro-Bold.ttf.woff") format('woff'); } @font-face { font-family: 'Source Code Pro'; From 33bc6ad8c008555602fbbdf6907deff6fe729a25 Mon Sep 17 00:00:00 2001 From: Christian Date: Sat, 30 Mar 2019 14:26:54 +0100 Subject: [PATCH 2/4] Added an example that shows how the remainder function on floating point values is computed internally. --- src/libstd/macros.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/libstd/macros.rs b/src/libstd/macros.rs index 0e0292277e1..209d3210f8f 100644 --- a/src/libstd/macros.rs +++ b/src/libstd/macros.rs @@ -240,7 +240,7 @@ macro_rules! eprintln { /// Note that the macro is intended as a debugging tool and therefore you /// should avoid having uses of it in version control for longer periods. /// Use cases involving debug output that should be added to version control -/// are better served by macros such as [`debug!`][debug-log] from the [`log`][log] crate. +/// are better served by macros such as [`debug!`] from the [`log`] crate. /// /// # Stability /// @@ -315,8 +315,8 @@ macro_rules! eprintln { /// file and line whenever it's reached. /// /// [stderr]: https://en.wikipedia.org/wiki/Standard_streams#Standard_error_(stderr) -/// [debug-log]: https://docs.rs/log/*/log/macro.debug.html -/// [log]: https://docs.rs/log/ +/// [`debug`]: https://docs.rs/log/*/log/macro.debug.html +/// [`log`]: https://crates.io/crates/log #[macro_export] #[stable(feature = "dbg_macro", since = "1.32.0")] macro_rules! dbg { From 66e920ea5ca844267d946569fca82b7885904c22 Mon Sep 17 00:00:00 2001 From: Christian Date: Sat, 30 Mar 2019 14:35:51 +0100 Subject: [PATCH 3/4] Added a missing !. --- src/libstd/macros.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libstd/macros.rs b/src/libstd/macros.rs index 209d3210f8f..be4db1f737d 100644 --- a/src/libstd/macros.rs +++ b/src/libstd/macros.rs @@ -315,7 +315,7 @@ macro_rules! eprintln { /// file and line whenever it's reached. /// /// [stderr]: https://en.wikipedia.org/wiki/Standard_streams#Standard_error_(stderr) -/// [`debug`]: https://docs.rs/log/*/log/macro.debug.html +/// [`debug!`]: https://docs.rs/log/*/log/macro.debug.html /// [`log`]: https://crates.io/crates/log #[macro_export] #[stable(feature = "dbg_macro", since = "1.32.0")] From aea5bf55f0b454999c08bcc3b59055a35625d746 Mon Sep 17 00:00:00 2001 From: Bastian Gruber Date: Sat, 30 Mar 2019 19:46:43 +0100 Subject: [PATCH 4/4] Add book.toml with title to unstable-book doc --- src/doc/unstable-book/book.toml | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 src/doc/unstable-book/book.toml diff --git a/src/doc/unstable-book/book.toml b/src/doc/unstable-book/book.toml new file mode 100644 index 00000000000..5534340f0db --- /dev/null +++ b/src/doc/unstable-book/book.toml @@ -0,0 +1,2 @@ +[book] +title = "The Rust Unstable Book"