From da3458becbf67eec4b98e0c949db819c638f62c0 Mon Sep 17 00:00:00 2001 From: Diggory Hardy Date: Tue, 15 Dec 2020 10:03:34 +0000 Subject: [PATCH 1/3] Add HTML redirect --- .github/workflows/gh-pages.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index ad9b0943d4f..e138d24b000 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -21,7 +21,9 @@ jobs: env: RUSTDOCFLAGS: --cfg doc_cfg # --all builds all crates, but with default features for other crates (okay in this case) - run: cargo doc --all --features nightly,serde1,getrandom,small_rng + run: | + cargo doc --all --features nightly,serde1,getrandom,small_rng + echo '' > target/doc/index.html - name: Deploy uses: peaceiris/actions-gh-pages@v3 with: From e9adf451c56d64d2911fe7d6da570ed1094f5a3e Mon Sep 17 00:00:00 2001 From: Diggory Hardy Date: Tue, 15 Dec 2020 10:08:34 +0000 Subject: [PATCH 2/3] Switch documentation links to docs.rs --- Cargo.toml | 2 +- rand_chacha/Cargo.toml | 2 +- rand_core/Cargo.toml | 2 +- rand_distr/Cargo.toml | 2 +- rand_hc/Cargo.toml | 2 +- rand_pcg/Cargo.toml | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 7e151befac8..4db26598282 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -5,7 +5,7 @@ authors = ["The Rand Project Developers", "The Rust Project Developers"] license = "MIT OR Apache-2.0" readme = "README.md" repository = "https://github.com/rust-random/rand" -documentation = "https://rust-random.github.io/rand/" +documentation = "https://docs.rs/rand" homepage = "https://crates.io/crates/rand" description = """ Random number generators and other randomness functionality. diff --git a/rand_chacha/Cargo.toml b/rand_chacha/Cargo.toml index 8d7dcd715e8..41669fed81f 100644 --- a/rand_chacha/Cargo.toml +++ b/rand_chacha/Cargo.toml @@ -5,7 +5,7 @@ authors = ["The Rand Project Developers", "The Rust Project Developers", "The Cr license = "MIT OR Apache-2.0" readme = "README.md" repository = "https://github.com/rust-random/rand" -documentation = "https://rust-random.github.io/rand/rand_chacha/" +documentation = "https://docs.rs/rand_chacha" homepage = "https://crates.io/crates/rand_chacha" description = """ ChaCha random number generator diff --git a/rand_core/Cargo.toml b/rand_core/Cargo.toml index c383b312ab0..5bcad3efa5d 100644 --- a/rand_core/Cargo.toml +++ b/rand_core/Cargo.toml @@ -5,7 +5,7 @@ authors = ["The Rand Project Developers", "The Rust Project Developers"] license = "MIT OR Apache-2.0" readme = "README.md" repository = "https://github.com/rust-random/rand" -documentation = "https://rust-random.github.io/rand/rand_core/" +documentation = "https://docs.rs/rand_core" homepage = "https://crates.io/crates/rand_core" description = """ Core random number generator traits and tools for implementation. diff --git a/rand_distr/Cargo.toml b/rand_distr/Cargo.toml index f61f72beb2f..aa20c165f25 100644 --- a/rand_distr/Cargo.toml +++ b/rand_distr/Cargo.toml @@ -5,7 +5,7 @@ authors = ["The Rand Project Developers"] license = "MIT OR Apache-2.0" readme = "README.md" repository = "https://github.com/rust-random/rand" -documentation = "https://rust-random.github.io/rand/rand_distr/" +documentation = "https://docs.rs/rand_distr" homepage = "https://crates.io/crates/rand_distr" description = """ Sampling from random number distributions diff --git a/rand_hc/Cargo.toml b/rand_hc/Cargo.toml index 4ee7e5af04d..3184b0ee730 100644 --- a/rand_hc/Cargo.toml +++ b/rand_hc/Cargo.toml @@ -5,7 +5,7 @@ authors = ["The Rand Project Developers"] license = "MIT OR Apache-2.0" readme = "README.md" repository = "https://github.com/rust-random/rand" -documentation = "https://rust-random.github.io/rand/rand_hc/" +documentation = "https://docs.rs/rand_hc" homepage = "https://crates.io/crates/rand_hc" description = """ HC128 random number generator diff --git a/rand_pcg/Cargo.toml b/rand_pcg/Cargo.toml index fe4508bae43..426382125e8 100644 --- a/rand_pcg/Cargo.toml +++ b/rand_pcg/Cargo.toml @@ -5,7 +5,7 @@ authors = ["The Rand Project Developers"] license = "MIT OR Apache-2.0" readme = "README.md" repository = "https://github.com/rust-random/rand" -documentation = "https://rust-random.github.io/rand/rand_pcg/" +documentation = "https://docs.rs/rand_pcg" homepage = "https://crates.io/crates/rand_pcg" description = """ Selected PCG random number generators From 1959b1adacc94a3f9887b62c50b1288e3806abea Mon Sep 17 00:00:00 2001 From: Diggory Hardy Date: Tue, 15 Dec 2020 10:13:17 +0000 Subject: [PATCH 3/3] Adjust homepage to point at the book --- Cargo.toml | 2 +- rand_chacha/Cargo.toml | 2 +- rand_core/Cargo.toml | 2 +- rand_distr/Cargo.toml | 2 +- rand_hc/Cargo.toml | 2 +- rand_pcg/Cargo.toml | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 4db26598282..695933dccee 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -6,7 +6,7 @@ license = "MIT OR Apache-2.0" readme = "README.md" repository = "https://github.com/rust-random/rand" documentation = "https://docs.rs/rand" -homepage = "https://crates.io/crates/rand" +homepage = "https://rust-random.github.io/book" description = """ Random number generators and other randomness functionality. """ diff --git a/rand_chacha/Cargo.toml b/rand_chacha/Cargo.toml index 41669fed81f..0a653113d85 100644 --- a/rand_chacha/Cargo.toml +++ b/rand_chacha/Cargo.toml @@ -6,7 +6,7 @@ license = "MIT OR Apache-2.0" readme = "README.md" repository = "https://github.com/rust-random/rand" documentation = "https://docs.rs/rand_chacha" -homepage = "https://crates.io/crates/rand_chacha" +homepage = "https://rust-random.github.io/book" description = """ ChaCha random number generator """ diff --git a/rand_core/Cargo.toml b/rand_core/Cargo.toml index 5bcad3efa5d..a53a1215f46 100644 --- a/rand_core/Cargo.toml +++ b/rand_core/Cargo.toml @@ -6,7 +6,7 @@ license = "MIT OR Apache-2.0" readme = "README.md" repository = "https://github.com/rust-random/rand" documentation = "https://docs.rs/rand_core" -homepage = "https://crates.io/crates/rand_core" +homepage = "https://rust-random.github.io/book" description = """ Core random number generator traits and tools for implementation. """ diff --git a/rand_distr/Cargo.toml b/rand_distr/Cargo.toml index aa20c165f25..919a3825427 100644 --- a/rand_distr/Cargo.toml +++ b/rand_distr/Cargo.toml @@ -6,7 +6,7 @@ license = "MIT OR Apache-2.0" readme = "README.md" repository = "https://github.com/rust-random/rand" documentation = "https://docs.rs/rand_distr" -homepage = "https://crates.io/crates/rand_distr" +homepage = "https://rust-random.github.io/book" description = """ Sampling from random number distributions """ diff --git a/rand_hc/Cargo.toml b/rand_hc/Cargo.toml index 3184b0ee730..403f9f0fb1f 100644 --- a/rand_hc/Cargo.toml +++ b/rand_hc/Cargo.toml @@ -6,7 +6,7 @@ license = "MIT OR Apache-2.0" readme = "README.md" repository = "https://github.com/rust-random/rand" documentation = "https://docs.rs/rand_hc" -homepage = "https://crates.io/crates/rand_hc" +homepage = "https://rust-random.github.io/book" description = """ HC128 random number generator """ diff --git a/rand_pcg/Cargo.toml b/rand_pcg/Cargo.toml index 426382125e8..4a3f90eff94 100644 --- a/rand_pcg/Cargo.toml +++ b/rand_pcg/Cargo.toml @@ -6,7 +6,7 @@ license = "MIT OR Apache-2.0" readme = "README.md" repository = "https://github.com/rust-random/rand" documentation = "https://docs.rs/rand_pcg" -homepage = "https://crates.io/crates/rand_pcg" +homepage = "https://rust-random.github.io/book" description = """ Selected PCG random number generators """