Skip to content

Commit d4b180d

Browse files
authored
Merge pull request #1078 from rust-random/work2
Fix doc links
2 parents 98e220c + 1959b1a commit d4b180d

File tree

7 files changed

+15
-13
lines changed

7 files changed

+15
-13
lines changed

.github/workflows/gh-pages.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@ jobs:
2121
env:
2222
RUSTDOCFLAGS: --cfg doc_cfg
2323
# --all builds all crates, but with default features for other crates (okay in this case)
24-
run: cargo doc --all --features nightly,serde1,getrandom,small_rng
24+
run: |
25+
cargo doc --all --features nightly,serde1,getrandom,small_rng
26+
echo '<meta http-equiv="refresh" content="0; URL=rand/index.html"/>' > target/doc/index.html
2527
- name: Deploy
2628
uses: peaceiris/actions-gh-pages@v3
2729
with:

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ authors = ["The Rand Project Developers", "The Rust Project Developers"]
55
license = "MIT OR Apache-2.0"
66
readme = "README.md"
77
repository = "https://github.com/rust-random/rand"
8-
documentation = "https://rust-random.github.io/rand/"
9-
homepage = "https://crates.io/crates/rand"
8+
documentation = "https://docs.rs/rand"
9+
homepage = "https://rust-random.github.io/book"
1010
description = """
1111
Random number generators and other randomness functionality.
1212
"""

rand_chacha/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ authors = ["The Rand Project Developers", "The Rust Project Developers", "The Cr
55
license = "MIT OR Apache-2.0"
66
readme = "README.md"
77
repository = "https://github.com/rust-random/rand"
8-
documentation = "https://rust-random.github.io/rand/rand_chacha/"
9-
homepage = "https://crates.io/crates/rand_chacha"
8+
documentation = "https://docs.rs/rand_chacha"
9+
homepage = "https://rust-random.github.io/book"
1010
description = """
1111
ChaCha random number generator
1212
"""

rand_core/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ authors = ["The Rand Project Developers", "The Rust Project Developers"]
55
license = "MIT OR Apache-2.0"
66
readme = "README.md"
77
repository = "https://github.com/rust-random/rand"
8-
documentation = "https://rust-random.github.io/rand/rand_core/"
9-
homepage = "https://crates.io/crates/rand_core"
8+
documentation = "https://docs.rs/rand_core"
9+
homepage = "https://rust-random.github.io/book"
1010
description = """
1111
Core random number generator traits and tools for implementation.
1212
"""

rand_distr/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ authors = ["The Rand Project Developers"]
55
license = "MIT OR Apache-2.0"
66
readme = "README.md"
77
repository = "https://github.com/rust-random/rand"
8-
documentation = "https://rust-random.github.io/rand/rand_distr/"
9-
homepage = "https://crates.io/crates/rand_distr"
8+
documentation = "https://docs.rs/rand_distr"
9+
homepage = "https://rust-random.github.io/book"
1010
description = """
1111
Sampling from random number distributions
1212
"""

rand_hc/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ authors = ["The Rand Project Developers"]
55
license = "MIT OR Apache-2.0"
66
readme = "README.md"
77
repository = "https://github.com/rust-random/rand"
8-
documentation = "https://rust-random.github.io/rand/rand_hc/"
9-
homepage = "https://crates.io/crates/rand_hc"
8+
documentation = "https://docs.rs/rand_hc"
9+
homepage = "https://rust-random.github.io/book"
1010
description = """
1111
HC128 random number generator
1212
"""

rand_pcg/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ authors = ["The Rand Project Developers"]
55
license = "MIT OR Apache-2.0"
66
readme = "README.md"
77
repository = "https://github.com/rust-random/rand"
8-
documentation = "https://rust-random.github.io/rand/rand_pcg/"
9-
homepage = "https://crates.io/crates/rand_pcg"
8+
documentation = "https://docs.rs/rand_pcg"
9+
homepage = "https://rust-random.github.io/book"
1010
description = """
1111
Selected PCG random number generators
1212
"""

0 commit comments

Comments
 (0)