Skip to content

Redirect /install to doc.crates.io #1035

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

Merged
merged 1 commit into from
Sep 9, 2017
Merged

Conversation

behnam
Copy link
Contributor

@behnam behnam commented Sep 1, 2017

The content of the install page here is duplicate of cargo's
Installation page/section. Since it's not registry-specific feature,
we better just redirect to the original source.

The content of the page is already merged into http://doc.crates.io/
and is live.

See #1029

@behnam
Copy link
Contributor Author

behnam commented Sep 1, 2017

r? @carols10cents

@steveklabnik
Copy link
Member

We're planning on deprecating doc.crates.io in the near-ish future; I think it's probably a better idea to just move the content over here, and redirect the other way.

@behnam
Copy link
Contributor Author

behnam commented Sep 1, 2017

@steveklabnik I was thinking of updating the redirect later to the "Installation" chapter of the book, whenever the URL is stable. AFAIU, we want to keep that chapter in the Cargo Manual mdbook anyway, and it's easier to keep them in sync if both are in the cargo repo.

What do you think?

@behnam
Copy link
Contributor Author

behnam commented Sep 1, 2017

Uh, and the reason it's redirecting to the homepage of http://doc.crates.io/ is that we don't have a page for "Installation" in the old docs. When we get that specific page, the URL will be refined.

@steveklabnik
Copy link
Member

Ugh you know what, I also got confused with the policies vs install bit here, my bad. Sigh.

What do you think?

Yeah this seems good. Sorry for the noise!

Copy link
Member

@carols10cents carols10cents left a comment

Choose a reason for hiding this comment

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

Just a few questions/suggestions!

Rust comes with Cargo by default, so the easiest way to get Cargo is to
<a href='http://www.rust-lang.org/install.html'>install Rust</a> via
the official binary installers.
Redirecting you to <code>https://crates.io/</code>&#8230;
Copy link
Member

Choose a reason for hiding this comment

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

Shouldn't this say "Redirecting you to http://doc.crates/io"? Since that's where the redirect is actually going...?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Right. Updated.


export default Route.extend({
redirect() {
window.location = 'http://doc.crates.io/';
Copy link
Member

Choose a reason for hiding this comment

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

Should this be https? Or protocol-relative, so just //doc.crates.io?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Unfortunately, https doesn't work on CNAME'd gh-pages, yet. Making this HTTPS or relative would make a false alarm like this:

image

Copy link
Contributor Author

@behnam behnam left a comment

Choose a reason for hiding this comment

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

Thanks! Addressed the comment.

r? @carols10cents


export default Route.extend({
redirect() {
window.location = 'http://doc.crates.io/';
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Unfortunately, https doesn't work on CNAME'd gh-pages, yet. Making this HTTPS or relative would make a false alarm like this:

image

Rust comes with Cargo by default, so the easiest way to get Cargo is to
<a href='http://www.rust-lang.org/install.html'>install Rust</a> via
the official binary installers.
Redirecting you to <code>https://crates.io/</code>&#8230;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Right. Updated.

The content of the `install` page here is duplicate of `cargo`'s
*Installation* page/section. Since it's not *registry*-specific feature,
we better just redirect to the original source.

The content of the page is already merged into <http://doc.crates.io/>
and is live.

Closes <rust-lang#1029>
@carols10cents
Copy link
Member

Much better, thanks!!

bors: r+

bors-voyager bot added a commit that referenced this pull request Sep 9, 2017
1035: Redirect /install to doc.crates.io r=carols10cents

The content of the `install` page here is duplicate of `cargo`'s
*Installation* page/section. Since it's not *registry*-specific feature,
we better just redirect to the original source.

The content of the page is already merged into <http://doc.crates.io/>
and is live.

See <#1029>
@bors-voyager
Copy link
Contributor

bors-voyager bot commented Sep 9, 2017

Build succeeded

@bors-voyager bors-voyager bot merged commit d0084a1 into rust-lang:master Sep 9, 2017
@behnam behnam deleted the install branch September 10, 2017 03:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants