Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: fix 404s on docs site via absolute paths #537

Merged
merged 1 commit into from
Apr 15, 2024

Conversation

WillPapper
Copy link
Contributor

Motivation

Currently, the README uses relative paths rather than absolute paths. This leads to 404s in two places:

On https://alloy-rs.github.io/alloy/, where a link to e.g. alloy goes to https://alloy-rs.github.io/alloy/alloy/crates/alloy instead of https://github.com/alloy-rs/alloy/tree/main/crates/alloy

On the Alloy crate at https://github.com/alloy-rs/alloy/tree/main/crates/alloy, where a link to e.g. alloy-signer goes to https://github.com/alloy-rs/alloy/blob/main/crates/alloy/crates/signer instead of https://github.com/alloy-rs/alloy/tree/main/crates/signer

Solution

This commit fixes both of these 404s by switching from relative paths to absolute paths. It also follows the same usage of absolute paths as lib.rs, making the README consistent with the rest of the documentation.

(In addition, a newline was added for consistency with other unordered lists, but that's not really worth commenting on)

PR Checklist

  • Added Tests
  • Added Documentation
  • Breaking changes

Currently, the README uses relative paths rather than absolute paths. This leads to 404s in two places:

On https://alloy-rs.github.io/alloy/, where a link to e.g. alloy goes to https://alloy-rs.github.io/alloy/alloy/crates/alloy instead of https://github.com/alloy-rs/alloy/tree/main/crates/alloy

On the Alloy crate at https://github.com/alloy-rs/alloy/tree/main/crates/alloy, where a link to e.g. alloy-signer goes to https://github.com/alloy-rs/alloy/blob/main/crates/alloy/crates/signer instead of https://github.com/alloy-rs/alloy/tree/main/crates/signer

This commit fixes both of these 404s. It also follows the same usage of absolute paths as lib.rs, making the README consistent with the rest of the documentation

(In addition, a newline was added for consistency with other unordered lists, but that's not really worth commenting on)
Copy link
Member

@onbjerg onbjerg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@onbjerg onbjerg added the documentation Improvements or additions to documentation label Apr 15, 2024
@prestwich prestwich merged commit fe5754c into alloy-rs:main Apr 15, 2024
18 checks passed
ben186 pushed a commit to ben186/alloy that referenced this pull request Jul 27, 2024
Currently, the README uses relative paths rather than absolute paths. This leads to 404s in two places:

On https://alloy-rs.github.io/alloy/, where a link to e.g. alloy goes to https://alloy-rs.github.io/alloy/alloy/crates/alloy instead of https://github.com/alloy-rs/alloy/tree/main/crates/alloy

On the Alloy crate at https://github.com/alloy-rs/alloy/tree/main/crates/alloy, where a link to e.g. alloy-signer goes to https://github.com/alloy-rs/alloy/blob/main/crates/alloy/crates/signer instead of https://github.com/alloy-rs/alloy/tree/main/crates/signer

This commit fixes both of these 404s. It also follows the same usage of absolute paths as lib.rs, making the README consistent with the rest of the documentation

(In addition, a newline was added for consistency with other unordered lists, but that's not really worth commenting on)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants