Skip to content

Commit

Permalink
Redirect /install to doc.crates.io
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
behnam committed Sep 6, 2017
1 parent be1429c commit a1e664e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 32 deletions.
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/';
},
});
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>https://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>

0 comments on commit a1e664e

Please sign in to comment.