Skip to content

Commit 8489f0c

Browse files
committed
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.
2 parents 938ec63 + ff2a350 commit 8489f0c

File tree

8 files changed

+32
-4
lines changed

8 files changed

+32
-4
lines changed

bigint/src/lib.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,10 @@
6969
//! # fn main() {
7070
//! # }
7171
//! ```
72+
#![doc(html_logo_url = "https://rust-num.github.io/num/rust-logo-128x128-blk-v2.png",
73+
html_favicon_url = "https://rust-num.github.io/num/favicon.ico",
74+
html_root_url = "https://rust-num.github.io/num/",
75+
html_playground_url = "http://play.integer32.com/")]
7276

7377
#[cfg(any(feature = "rand", test))]
7478
extern crate rand;

complex/src/lib.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@
99
// except according to those terms.
1010

1111
//! Complex numbers.
12+
#![doc(html_logo_url = "https://rust-num.github.io/num/rust-logo-128x128-blk-v2.png",
13+
html_favicon_url = "https://rust-num.github.io/num/favicon.ico",
14+
html_root_url = "https://rust-num.github.io/num/",
15+
html_playground_url = "http://play.integer32.com/")]
1216

1317
extern crate num_traits as traits;
1418

integer/src/lib.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@
99
// except according to those terms.
1010

1111
//! Integer trait and functions.
12+
#![doc(html_logo_url = "https://rust-num.github.io/num/rust-logo-128x128-blk-v2.png",
13+
html_favicon_url = "https://rust-num.github.io/num/favicon.ico",
14+
html_root_url = "https://rust-num.github.io/num/",
15+
html_playground_url = "http://play.integer32.com/")]
1216

1317
extern crate num_traits as traits;
1418

iter/src/lib.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@
99
// except according to those terms.
1010

1111
//! External iterators for generic mathematics
12+
#![doc(html_logo_url = "https://rust-num.github.io/num/rust-logo-128x128-blk-v2.png",
13+
html_favicon_url = "https://rust-num.github.io/num/favicon.ico",
14+
html_root_url = "https://rust-num.github.io/num/",
15+
html_playground_url = "http://play.integer32.com/")]
1216

1317
extern crate num_traits as traits;
1418
extern crate num_integer as integer;

macros/src/lib.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@
99
// except according to those terms.
1010

1111
#![feature(plugin_registrar, rustc_private)]
12+
#![doc(html_logo_url = "https://rust-num.github.io/num/rust-logo-128x128-blk-v2.png",
13+
html_favicon_url = "https://rust-num.github.io/num/favicon.ico",
14+
html_root_url = "https://rust-num.github.io/num/",
15+
html_playground_url = "http://play.integer32.com/")]
1216

1317
extern crate syntax;
1418
extern crate syntax_ext;

rational/src/lib.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@
99
// except according to those terms.
1010

1111
//! Rational numbers
12+
#![doc(html_logo_url = "https://rust-num.github.io/num/rust-logo-128x128-blk-v2.png",
13+
html_favicon_url = "https://rust-num.github.io/num/favicon.ico",
14+
html_root_url = "https://rust-num.github.io/num/",
15+
html_playground_url = "http://play.integer32.com/")]
1216

1317
#[cfg(feature = "rustc-serialize")]
1418
extern crate rustc_serialize;

src/lib.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,10 @@
5252
//! ```
5353
//!
5454
//! [newt]: https://en.wikipedia.org/wiki/Methods_of_computing_square_roots#Babylonian_method
55-
#![doc(html_logo_url = "http://rust-num.github.io/num/rust-logo-128x128-blk-v2.png",
56-
html_favicon_url = "http://rust-num.github.io/num/favicon.ico",
57-
html_root_url = "http://rust-num.github.io/num/",
58-
html_playground_url = "http://play.rust-lang.org/")]
55+
#![doc(html_logo_url = "https://rust-num.github.io/num/rust-logo-128x128-blk-v2.png",
56+
html_favicon_url = "https://rust-num.github.io/num/favicon.ico",
57+
html_root_url = "https://rust-num.github.io/num/",
58+
html_playground_url = "http://play.integer32.com/")]
5959

6060
extern crate num_traits;
6161
extern crate num_integer;

traits/src/lib.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@
99
// except according to those terms.
1010

1111
//! Numeric traits for generic mathematics
12+
#![doc(html_logo_url = "https://rust-num.github.io/num/rust-logo-128x128-blk-v2.png",
13+
html_favicon_url = "https://rust-num.github.io/num/favicon.ico",
14+
html_root_url = "https://rust-num.github.io/num/",
15+
html_playground_url = "http://play.integer32.com/")]
1216

1317
use std::ops::{Add, Sub, Mul, Div, Rem};
1418

0 commit comments

Comments
 (0)