Skip to content

Commit 0b30eeb

Browse files
authored
Merge pull request #240 from rust-lang/fix-122
fix(qa): make cta as buttons
2 parents 6a9380e + baea7e3 commit 0b30eeb

File tree

2 files changed

+20
-20
lines changed

2 files changed

+20
-20
lines changed

templates/learn/index.hbs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@
1414
</header>
1515
<div class="row">
1616
<div class="eight columns" id="the-book">
17-
<p>Affectionately nicknamed "the book," <a href="https://doc.rust-lang.org/book/">The Rust Programming
18-
Language</a> will give you an overview of the language from first
17+
<p>Affectionately nicknamed "the book," The Rust Programming
18+
Language will give you an overview of the language from first
1919
principles. You'll build a few projects along the way, and by the
2020
end, you'll have a solid grasp of the language.</p>
21-
<a class="button button-secondary" href="https://doc.rust-lang.org/book/">Read the Book!</a>
21+
<a class="button button-secondary" href="https://doc.rust-lang.org/book/"></a>Read the Book!</a>
2222
<p>If reading multiple hundreds of pages about a language isn't your
23-
style, then <a href="https://doc.rust-lang.org/rust-by-example/">Rust
24-
By Example</a> has you covered. While the book talks about code with
23+
style, then Rust
24+
By Example has you covered. While the book talks about code with
2525
a lot of words, RBE shows off a bunch of code, and keeps the talking
2626
to a minimum. It also includes exercises!</p>
2727
<a class="button button-secondary" href="https://doc.rust-lang.org/book/">Check out Rust by example</a>
@@ -142,19 +142,19 @@
142142
<div class="row">
143143
<div class="four columns book" id="the-reference">
144144
<img src="/static/images/reference.svg" />
145-
<p><a href="https://doc.rust-lang.org/reference/index.html">The Reference</a> is not a formal spec, but is more
145+
<p>The Reference is not a formal spec, but is more
146146
detailed and comprehensive than the book.</p>
147147
<a class="button button-secondary" href="https://doc.rust-lang.org/reference/index.html">Read the reference</a>
148148
</div>
149149
<div class="four columns book" id="rustonomicon">
150150
<img src="/static/images/nomicon.svg" />
151-
<p><a href="https://doc.rust-lang.org/nomicon/index.html">The Rustonomicon</a> is your guidebook to the dark
151+
<p>The Rustonomicon is your guidebook to the dark
152152
arts of unsafe Rust. It's also sometimes called "the 'nomicon."</p>
153153
<a class="button button-secondary" href="https://doc.rust-lang.org/nomicon/index.html">Read the nomicon</a>
154154
</div>
155155
<div class="four columns book" id="the-unstable-book">
156156
<img src="/static/images/unstable.svg" />
157-
<p><a href="https://doc.rust-lang.org/unstable-book/index.html">The Unstable Book</a> has documentation for
157+
<p>The Unstable Book has documentation for
158158
unstable features that you can only use with nightly Rust.</p>
159159
<a class="button button-secondary" href="https://doc.rust-lang.org/unstable-book/index.html">Read the unstable book</a>
160160
</div>

templates/tools/index.hbs

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -130,39 +130,39 @@
130130
<div class="row">
131131
<div class="four columns" id="type-systems">
132132
<h3 class="code-header">
133-
<a href="https://github.com/rust-lang-nursery/rustfmt">
134-
rustfmt
135-
</a>
133+
rustfmt
136134
</h3>
137135
<p>
138136
Rust fmt automatically formats Rust code, making it easier to read,
139137
write, and maintain. And most importantly: never debate spacing or
140138
brace position ever again.
141139
</p>
140+
<a href="https://github.com/rust-lang-nursery/rustfmt"
141+
class="button button-secondary">Go to repo</a>
142142
</div>
143143
<div class="four columns" id="type-systems">
144144
<h3 class="code-header">
145-
<a href="https://github.com/rust-lang-nursery/rust-clippy">
146-
clippy
147-
</a>
145+
clippy
148146
</h3>
149147
<p>
150148
<em>"It looks like you're writing an Iterator."</em> <br> Clippy
151149
helps developers of all experience levels write idiomatic code, and
152150
enforce standards.
153151
</p>
152+
<a href="https://github.com/rust-lang-nursery/rust-clippy"
153+
class="button button-secondary">Go to repo</a>
154154
</div>
155155
<div class="four columns" id="type-systems">
156-
<a href="https://docs.rs/">
157-
<h3 class="code-header">
158-
cargo doc
159-
</h3>
160-
</a>
156+
<h3 class="code-header">
157+
cargo doc
158+
</h3>
161159
<p>
162160
Cargo's doc builder makes it to so no API ever goes undocumented. It's
163161
available locally through <code>cargo doc</code>, and online for
164-
public crates through <a href="https://docs.rs">docs.rs</a>.
162+
public crates through docs.rs.
165163
</p>
164+
<a href="https://docs.rs/"
165+
class="button button-secondary">Go to site</a>
166166
</div>
167167
</div>
168168
</div>

0 commit comments

Comments
 (0)