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
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions app/routes/install.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import Route from '@ember/routing/route';

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

},
});
33 changes: 1 addition & 32 deletions app/templates/install.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -4,36 +4,5 @@
</div>

<p>
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>http://doc.crates.io/</code>&#8230;
</p>

<h2>Only Cargo</h2>

<p>
To install just Cargo, the current recommended installation method is
through the official nightly builds. Note that Cargo will also require that
<a href='http://www.rust-lang.org/'>Rust</a> is already installed on the
system.
</p>

<div id='install-downloads'>
<table>
<tr>
<td class='label'>Linux binaries (.tar.gz)</td>
<td><a href={{linux64}}>64-bit</a></td>
<td><a href={{linux32}}>32-bit</a></td>
</tr>
<tr>
<td class='label'>Mac binaries (.tar.gz)</td>
<td><a href={{mac64}}>64-bit</a></td>
<td><a href={{mac32}}>32-bit</a></td>
</tr>
<tr>
<td class='label'>Windows binaries (.tar.gz)</td>
<td><a href={{win64}}>64-bit</a></td>
<td><a href={{win32}}>32-bit</a></td>
</tr>
</table>
</div>