Эх сурвалжийг харах

Auto merge of #239 - bluss:doc-root-url, r=cuviper

Add doc(html_root_url) and other doc attrs to each crate

Also update to use https instead of http. This avoids mixed content
degradation on docs.rs.

The doc root URLs are correct as they are, the URL does not include the
crate name itself.
Homu 8 жил өмнө
parent
commit
8489f0c388

+ 4 - 0
bigint/src/lib.rs

@@ -69,6 +69,10 @@
 //! # fn main() {
 //! # fn main() {
 //! # }
 //! # }
 //! ```
 //! ```
+#![doc(html_logo_url = "https://rust-num.github.io/num/rust-logo-128x128-blk-v2.png",
+       html_favicon_url = "https://rust-num.github.io/num/favicon.ico",
+       html_root_url = "https://rust-num.github.io/num/",
+       html_playground_url = "http://play.integer32.com/")]
 
 
 #[cfg(any(feature = "rand", test))]
 #[cfg(any(feature = "rand", test))]
 extern crate rand;
 extern crate rand;

+ 4 - 0
complex/src/lib.rs

@@ -9,6 +9,10 @@
 // except according to those terms.
 // except according to those terms.
 
 
 //! Complex numbers.
 //! Complex numbers.
+#![doc(html_logo_url = "https://rust-num.github.io/num/rust-logo-128x128-blk-v2.png",
+       html_favicon_url = "https://rust-num.github.io/num/favicon.ico",
+       html_root_url = "https://rust-num.github.io/num/",
+       html_playground_url = "http://play.integer32.com/")]
 
 
 extern crate num_traits as traits;
 extern crate num_traits as traits;
 
 

+ 4 - 0
integer/src/lib.rs

@@ -9,6 +9,10 @@
 // except according to those terms.
 // except according to those terms.
 
 
 //! Integer trait and functions.
 //! Integer trait and functions.
+#![doc(html_logo_url = "https://rust-num.github.io/num/rust-logo-128x128-blk-v2.png",
+       html_favicon_url = "https://rust-num.github.io/num/favicon.ico",
+       html_root_url = "https://rust-num.github.io/num/",
+       html_playground_url = "http://play.integer32.com/")]
 
 
 extern crate num_traits as traits;
 extern crate num_traits as traits;
 
 

+ 4 - 0
iter/src/lib.rs

@@ -9,6 +9,10 @@
 // except according to those terms.
 // except according to those terms.
 
 
 //! External iterators for generic mathematics
 //! External iterators for generic mathematics
+#![doc(html_logo_url = "https://rust-num.github.io/num/rust-logo-128x128-blk-v2.png",
+       html_favicon_url = "https://rust-num.github.io/num/favicon.ico",
+       html_root_url = "https://rust-num.github.io/num/",
+       html_playground_url = "http://play.integer32.com/")]
 
 
 extern crate num_traits as traits;
 extern crate num_traits as traits;
 extern crate num_integer as integer;
 extern crate num_integer as integer;

+ 4 - 0
macros/src/lib.rs

@@ -9,6 +9,10 @@
 // except according to those terms.
 // except according to those terms.
 
 
 #![feature(plugin_registrar, rustc_private)]
 #![feature(plugin_registrar, rustc_private)]
+#![doc(html_logo_url = "https://rust-num.github.io/num/rust-logo-128x128-blk-v2.png",
+       html_favicon_url = "https://rust-num.github.io/num/favicon.ico",
+       html_root_url = "https://rust-num.github.io/num/",
+       html_playground_url = "http://play.integer32.com/")]
 
 
 extern crate syntax;
 extern crate syntax;
 extern crate syntax_ext;
 extern crate syntax_ext;

+ 4 - 0
rational/src/lib.rs

@@ -9,6 +9,10 @@
 // except according to those terms.
 // except according to those terms.
 
 
 //! Rational numbers
 //! Rational numbers
+#![doc(html_logo_url = "https://rust-num.github.io/num/rust-logo-128x128-blk-v2.png",
+       html_favicon_url = "https://rust-num.github.io/num/favicon.ico",
+       html_root_url = "https://rust-num.github.io/num/",
+       html_playground_url = "http://play.integer32.com/")]
 
 
 #[cfg(feature = "rustc-serialize")]
 #[cfg(feature = "rustc-serialize")]
 extern crate rustc_serialize;
 extern crate rustc_serialize;

+ 4 - 4
src/lib.rs

@@ -52,10 +52,10 @@
 //! ```
 //! ```
 //!
 //!
 //! [newt]: https://en.wikipedia.org/wiki/Methods_of_computing_square_roots#Babylonian_method
 //! [newt]: https://en.wikipedia.org/wiki/Methods_of_computing_square_roots#Babylonian_method
-#![doc(html_logo_url = "http://rust-num.github.io/num/rust-logo-128x128-blk-v2.png",
-       html_favicon_url = "http://rust-num.github.io/num/favicon.ico",
-       html_root_url = "http://rust-num.github.io/num/",
-       html_playground_url = "http://play.rust-lang.org/")]
+#![doc(html_logo_url = "https://rust-num.github.io/num/rust-logo-128x128-blk-v2.png",
+       html_favicon_url = "https://rust-num.github.io/num/favicon.ico",
+       html_root_url = "https://rust-num.github.io/num/",
+       html_playground_url = "http://play.integer32.com/")]
 
 
 extern crate num_traits;
 extern crate num_traits;
 extern crate num_integer;
 extern crate num_integer;

+ 4 - 0
traits/src/lib.rs

@@ -9,6 +9,10 @@
 // except according to those terms.
 // except according to those terms.
 
 
 //! Numeric traits for generic mathematics
 //! Numeric traits for generic mathematics
+#![doc(html_logo_url = "https://rust-num.github.io/num/rust-logo-128x128-blk-v2.png",
+       html_favicon_url = "https://rust-num.github.io/num/favicon.ico",
+       html_root_url = "https://rust-num.github.io/num/",
+       html_playground_url = "http://play.integer32.com/")]
 
 
 use std::ops::{Add, Sub, Mul, Div, Rem};
 use std::ops::{Add, Sub, Mul, Div, Rem};