Skip to content

Commit 19e9371

Browse files
Merge #1035
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>
2 parents 0053acc + d0084a1 commit 19e9371

File tree

2 files changed

+8
-32
lines changed

2 files changed

+8
-32
lines changed

app/routes/install.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import Route from '@ember/routing/route';
2+
3+
export default Route.extend({
4+
redirect() {
5+
window.location = 'http://doc.crates.io/';
6+
},
7+
});

app/templates/install.hbs

Lines changed: 1 addition & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -4,36 +4,5 @@
44
</div>
55

66
<p>
7-
Rust comes with Cargo by default, so the easiest way to get Cargo is to
8-
<a href='http://www.rust-lang.org/install.html'>install Rust</a> via
9-
the official binary installers.
7+
Redirecting you to <code>http://doc.crates.io/</code>&#8230;
108
</p>
11-
12-
<h2>Only Cargo</h2>
13-
14-
<p>
15-
To install just Cargo, the current recommended installation method is
16-
through the official nightly builds. Note that Cargo will also require that
17-
<a href='http://www.rust-lang.org/'>Rust</a> is already installed on the
18-
system.
19-
</p>
20-
21-
<div id='install-downloads'>
22-
<table>
23-
<tr>
24-
<td class='label'>Linux binaries (.tar.gz)</td>
25-
<td><a href={{linux64}}>64-bit</a></td>
26-
<td><a href={{linux32}}>32-bit</a></td>
27-
</tr>
28-
<tr>
29-
<td class='label'>Mac binaries (.tar.gz)</td>
30-
<td><a href={{mac64}}>64-bit</a></td>
31-
<td><a href={{mac32}}>32-bit</a></td>
32-
</tr>
33-
<tr>
34-
<td class='label'>Windows binaries (.tar.gz)</td>
35-
<td><a href={{win64}}>64-bit</a></td>
36-
<td><a href={{win32}}>32-bit</a></td>
37-
</tr>
38-
</table>
39-
</div>

0 commit comments

Comments
 (0)