Skip to content

Commit fc41536

Browse files
committed
Merge remote-tracking branch 'origin/master' into text-contrast
2 parents 45a38fe + e6edc1c commit fc41536

File tree

15 files changed

+73
-70
lines changed

15 files changed

+73
-70
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
# new-rust-www
2-
> the home of the new rust website
1+
# www.rust-lang.org
2+
> the home of the rust website
33
4-
[![Build Status](https://travis-ci.org/rust-lang/beta.rust-lang.org.svg?token=hHeDp9pQmz9kvsgRNVHy&branch=master)](https://travis-ci.org/rust-lang/beta.rust-lang.org)
4+
[![Build Status](https://travis-ci.org/rust-lang/www.rust-lang.org.svg?branch=master)](https://travis-ci.org/rust-lang/www.rust-lang.org)
55

66
## Development
77

src/data/teams/community/team.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ chat: "Community #general channel on Discord"
55
repo: "https://github.com/rust-community/team"
66
77
leads: [ashleygwilliams]
8-
members: [skade, manishearth, sebasmagri, badboy, oe, technetos, jonathandturner]
8+
members: [skade, manishearth, sebasmagri, badboy, komaeda, technetos, jonathandturner]

src/data/teams/community/teams/rustbridge.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@ name: RustBridge team
33
description: An inclusive educational initiative focused on bringing underrepresented groups into Rust.
44
chat: "Community #rustbridge channel on Discord"
55
repo: "https://github.com/rustbridge/team"
6-
leads: [oe]
6+
leads: [komaeda]
77
members: [ashleygwilliams, technetos, arshiamufti, spacekookie, sebasmagri]

src/data/teams/documentation/team.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ name: Documentation team
33
description: ensuring Rust has fantastic documentation
44
chat: Documentation Team #docs channel on Discord
55
leads: [steveklabnik]
6-
members: [QuietMisdreavus, GuillaumeGomez]
6+
members: [QuietMisdreavus, GuillaumeGomez, frewsxcv]

templates/community/index.hbs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,11 @@
1212
The Rust programming language has many qualities, but Rust’s greatest
1313
strength is the community of people who come together to make working in
1414
Rust a rewarding experience.
15-
1615
</p>
16+
<p>
17+
Stay up to date with the Rust community!
18+
</p>
19+
<a href="https://this-week-in-rust.org/" target="_blank" rel="noopener" class="button button-secondary">This Week in Rust</a>
1720
<p>
1821
We’d like to hear from you! Not sure where or who to ask a question? Want to get involved but aren’t sure how?
1922
The community team is eager to connect you with someone who can help!
@@ -184,7 +187,7 @@
184187
</div>
185188
<div class="mw-67-l mh3-l">
186189
<p>
187-
Increasing Rust’s Reach is a program matches Rust team members from all parts of the project with individuals who are underrepresented in Rust’s community and the tech industry for a partnership of three (3) months, from mid-May to mid-August. Each partnership agrees to a commitment of 3–5 hours per week working on a Rust Project.
190+
Increasing Rust’s Reach is a program that matches Rust team members from all parts of the project with individuals who are underrepresented in Rust’s community and the tech industry for a partnership of three (3) months, from mid-May to mid-August. Each partnership agrees to a commitment of 3–5 hours per week working on a Rust Project.
188191
</p>
189192
<a href="http://reach.rust-lang.org/" target="_blank" rel="noopener"
190193
class="button button-secondary">Visit Website</a>

templates/footer.hbs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@
2424
</div>
2525
<div class="four columns mt3 mt0-l">
2626
<h4>Social</h4>
27-
<a href="https://twitter.com/rustlang" target="_blank" rel="noopener" alt="twitter link"><img src="/static/images/twitter.svg" alt="twitter logo" title="Twitter"/></a>
28-
<a href="https://www.youtube.com/channel/UCaYhcUwRBNscFNUKTjgPFiA" target="_blank" rel="noopener" alt="youtube link"><img style="padding-top: 6px; padding-bottom:6px" src="/static/images/youtube.svg" alt="youtube logo" title="YouTube"/></a>
29-
<a href="https://discord.gg/rust-lang" target="_blank" rel="noopener" alt="discord link"><img src="/static/images/discord.svg" alt="discord logo" title="Discord"/></a>
30-
<a href="https://github.com/rust-lang" target="_blank" rel="noopener" alt="github link"><img src="/static/images/github.svg" alt="github logo" title="GitHub"/></a>
27+
<a href="https://twitter.com/rustlang" target="_blank" rel="noopener"><img src="/static/images/twitter.svg" alt="twitter logo" title="Twitter"/></a>
28+
<a href="https://www.youtube.com/channel/UCaYhcUwRBNscFNUKTjgPFiA" target="_blank" rel="noopener"><img style="padding-top: 6px; padding-bottom:6px" src="/static/images/youtube.svg" alt="youtube logo" title="YouTube"/></a>
29+
<a href="https://discord.gg/rust-lang" target="_blank" rel="noopener"><img src="/static/images/discord.svg" alt="discord logo" title="Discord"/></a>
30+
<a href="https://github.com/rust-lang" target="_blank" rel="noopener"><img src="/static/images/github.svg" alt="github logo" title="GitHub"/></a>
3131
</div>
3232

3333
</div>

templates/index.hbs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
</div>
1919
</header>
2020

21+
{{> edition-banner }}
2122
{{> panels/language-values }}
2223
{{> panels/domains }}
2324
{{> panels/production }}

templates/layout.hbs

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -12,24 +12,24 @@
1212
<meta name="twitter:creator" content="@rustlang">
1313
<meta name="twitter:title" content="{{title}}">
1414
<meta name="twitter:description" content="Empowering everyone to build reliable and efficient software.">
15-
<meta name="twitter:image" content="http://new-rust-www.herokuapp.com/static/images/rust-social.jpg">
15+
<meta name="twitter:image" content="https://www.rust-lang.org/static/images/rust-social.jpg">
1616

1717
<!-- Facebook OpenGraph -->
1818
<meta property="og:title" content="{{title}}" />
1919
<meta property="og:description" content="Empowering everyone to build reliable and efficient software.">
20-
<meta property="og:image" content="http://new-rust-www.herokuapp.com/static/images/rust-social-wide.jpg" />
20+
<meta property="og:image" content="https://www.rust-lang.org/static/images/rust-social-wide.jpg" />
2121
<meta property="og:type" content="website" />
2222
<meta property="og:locale" content="en_US" />
2323

2424
<!-- fonts -->
25-
<link rel="preload" as="font" crossorigin href="/static/fonts/AlfaSlabOne-Regular.ttf">
26-
<link rel="preload" as="font" crossorigin href="/static/fonts/FiraSans-ExtraBold.ttf">
27-
<link rel="preload" as="font" crossorigin href="/static/fonts/FiraSans-ExtraBoldItalic.ttf">
28-
<link rel="preload" as="font" crossorigin href="/static/fonts/FiraSans-Italic.ttf">
29-
<link rel="preload" as="font" crossorigin href="/static/fonts/FiraSans-Italic.ttf">
30-
<link rel="preload" as="font" crossorigin href="/static/fonts/FiraSans-Regular.ttf">
31-
<link rel="preload" as="font" crossorigin href="/static/fonts/FiraSans-SemiBold.ttf">
32-
<link rel="preload" as="font" crossorigin href="/static/fonts/FiraSans-SemiBoldItalic.ttf">
25+
<link rel="preload" as="font" crossorigin href="/static/fonts/woff/AlfaSlabOne-Regular.woff">
26+
<link rel="preload" as="font" crossorigin href="/static/fonts/woff/FiraSans-ExtraBold.woff">
27+
<link rel="preload" as="font" crossorigin href="/static/fonts/woff/FiraSans-ExtraBoldItalic.woff">
28+
<link rel="preload" as="font" crossorigin href="/static/fonts/woff/FiraSans-Italic.woff">
29+
<link rel="preload" as="font" crossorigin href="/static/fonts/woff/FiraSans-Italic.woff">
30+
<link rel="preload" as="font" crossorigin href="/static/fonts/woff/FiraSans-Regular.woff">
31+
<link rel="preload" as="font" crossorigin href="/static/fonts/woff/FiraSans-SemiBold.woff">
32+
<link rel="preload" as="font" crossorigin href="/static/fonts/woff/FiraSans-SemiBoldItalic.woff">
3333

3434
<!-- styles -->
3535
<link rel="stylesheet" href="/static/styles/vendor.css"/>
@@ -47,7 +47,6 @@
4747
<meta name="theme-color" content="#ffffff">
4848
</head>
4949
<body>
50-
{{> edition-banner }}
5150
{{> nav}}
5251
<div id="main-content">
5352
{{~> page}}

templates/learn/get-started.hbs

Lines changed: 20 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -13,27 +13,27 @@
1313
<h2>Installing Rust</h2>
1414
<div class="highlight highlight"></div>
1515
</header>
16-
<h3><code>rustup</code>: the Rust installer and version management tool</h3>
17-
<p>The primary way that folks install Rust is through a tool called <code>rustup</code> which is a Rust installer
16+
<h3>Rustup: the Rust installer and version management tool</h3>
17+
<p>The primary way that folks install Rust is through a tool called Rustup, which is a Rust installer
1818
and version management tool.</p>
1919
{{> tools/rustup }}
2020
<br /><br />
2121
<a href="/tools/install" class="button button-secondary">Learn more about installation</a>
2222
<hr />
23-
<h3><code>cargo</code>: the Rust build tool and package manager</h3>
24-
<p>When you install <code>rustup</code> you’ll also get the latest stable version of the Rust build tool and
25-
package manager, also known as <code>cargo</code>. <code>cargo</code> does lots of things:</p>
23+
<h3>Cargo: the Rust build tool and package manager</h3>
24+
<p>When you install Rustup you’ll also get the latest stable version of the Rust build tool and
25+
package manager, also known as Cargo. Cargo does lots of things:</p>
2626
<ul>
2727
<li>build your project with <code>cargo build</code></li>
2828
<li>run your project with <code>cargo run</code></li>
2929
<li>test your project with <code>cargo test</code></li>
30-
<li>build documentaiton for your project with <code>cargo doc</code></li>
30+
<li>build documentation for your project with <code>cargo doc</code></li>
3131
<li>publish a library to <a href="https://crates.io" target="_blank" rel="noopener">crates.io</a> with <code>cargo publish</code></li>
3232
</ul>
33-
<p>To test that you have Rust and <code>cargo</code> installed, you can run this in your terminal of choice:</p>
33+
<p>To test that you have Rust and Cargo installed, you can run this in your terminal of choice:</p>
3434
<p><code>cargo --version</code></p>
3535
<a href="https://doc.rust-lang.org/cargo/index.html" target="_blank" rel="noopener" class="button button-secondary">Read
36-
the cargo book</a>
36+
the cargo book</a>
3737
<hr />
3838
<h3>Other tools</h3>
3939
<p>Rust support is available in many editors:</p>
@@ -50,8 +50,7 @@
5050
<h2>Generating a new project</h2>
5151
<div class="highlight"></div>
5252
</header>
53-
<p>Let’s write a small application with our new Rust development environment. To start, we’ll use <code>cargo</code>
54-
to
53+
<p>Let’s write a small application with our new Rust development environment. To start, we’ll use Cargo to
5554
make a new project for us. In your terminal of choice run:</p>
5655
<p><code>cargo new hello-rust</code></p>
5756
<p>This will generate a new directory called <code>hello-rust</code> with the following files:</p>
@@ -64,6 +63,15 @@
6463
<p><code>Cargo.toml</code> is the manifest file for Rust. It’s where you keep metadata for your project, as well as
6564
dependencies.</p>
6665
<p><code>src/main.rs</code> is where we’ll write our application code.</p>
66+
<hr/>
67+
<p><code>cargo new</code> generates a "Hello, world!" project for us! We can run this program by moving into the new directory that we made and running this in our terminal:</p>
68+
<p><code>cargo run</code></p>
69+
<p>You should see this in your terminal:</p>
70+
<p><pre><code>$ cargo run
71+
Compiling hello-rust v0.1.0 (/Users/ag_dubs/rust/hello-rust)
72+
Finished dev [unoptimized + debuginfo] target(s) in 1.34s
73+
Running `target/debug/hello-rust`
74+
Hello, world!</code></pre><p>
6775
</div>
6876
</section>
6977

@@ -84,7 +92,7 @@ ferris-says = "0.1"</code></pre>
8492
</p>
8593
<p>Now we can run:</p>
8694
<p><code>cargo build</code></p>
87-
<p>...and <code>cargo</code>will install our dependency for us.</p>
95+
<p>...and Cargo will install our dependency for us.</p>
8896
<p>You’ll see that running this command created a new file for us, <code>Cargo.lock</code>. This file is a log of
8997
the exact versions of the dependencies we are using locally.</p>
9098
<p>To use this dependency, we can open <code>main.rs</code>, remove everything that’s in there (it’s just another
@@ -165,4 +173,4 @@ fn main() {
165173
</section>
166174
{{> tools/install-script }}
167175
{{/inline}}
168-
{{~> (parent)~}}
176+
{{~> (parent)~}}

templates/panels/get-involved.hbs

Lines changed: 19 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -4,37 +4,28 @@
44
<h2>Get involved</h2>
55
<div class="highlight">
66
</header>
7-
<div class="row">
8-
<div class="eight columns" id="contrubite-code">
9-
<div class="row media">
10-
<div class="six columns" id="read-rust">
11-
<h3>Read Rust</h3>
12-
<p>We love documentation! Take a look at the books available online, as well as key blog posts and user
13-
guides.</p>
14-
<a href="learn" class="button button-secondary">Read the book</a>
15-
</div>
16-
<div class="six columns" id="watch-rust">
17-
<h3>Watch Rust</h3>
18-
<p>The Rust community has a dedicated YouTube channel collecting a huge range of presentations and
19-
tutorials.</p>
20-
<a href="https://www.youtube.com/channel/UCaYhcUwRBNscFNUKTjgPFiA" class="button button-secondary">Watch the Videos</a>
21-
</div>
7+
<div class="row media">
8+
<div class="six columns" id="read-rust">
9+
<h3>Read Rust</h3>
10+
<p>We love documentation! Take a look at the books available online, as well as key blog posts and user guides.</p>
11+
<a href="learn" class="button button-secondary">Read the book</a>
2212
</div>
23-
<div class="pt3">
24-
<h3>Contribute code</h3>
25-
<p>
26-
Rust is truly a community effort, and we welcome contribution from hobbyists and production users, from
27-
newcomers and seasoned professionals. Come help us make the Rust experience even better!
28-
</p>
29-
<a href="https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md" class="button button-secondary" target="_blank" rel="noopener">
30-
Read Contribution Guide
31-
</a>
13+
<div class="six columns" id="watch-rust">
14+
<h3>Watch Rust</h3>
15+
<p>The Rust community has a dedicated YouTube channel collecting a huge range of presentations and
16+
tutorials.</p>
17+
<a href="https://www.youtube.com/channel/UCaYhcUwRBNscFNUKTjgPFiA" class="button button-secondary">Watch the Videos</a>
3218
</div>
3319
</div>
34-
<div class="four columns" id="upcoming-events">
35-
<h3>Upcoming events</h3>
36-
<iframe class="twelve columns" title="rust community calendar" src="https://calendar.google.com/calendar/embed?showTitle=0&amp;showPrint=0&amp;showTabs=0&amp;showCalendars=0&amp;mode=AGENDA&amp;height=400&amp;wkst=1&amp;bgcolor=%23FFFFFF&amp;src=apd9vmbc22egenmtu5l6c5jbfc%40group.calendar.google.com&amp;color=%23691426&amp;ctz=Europe%2FMadrid"
37-
style="border-width:0" height="400" frameborder="0" scrolling="no"></iframe>
20+
<div class="pt3">
21+
<h3>Contribute code</h3>
22+
<p>
23+
Rust is truly a community effort, and we welcome contribution from hobbyists and production users, from
24+
newcomers and seasoned professionals. Come help us make the Rust experience even better!
25+
</p>
26+
<a href="https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md" class="button button-secondary" target="_blank" rel="noopener">
27+
Read Contribution Guide
28+
</a>
3829
</div>
3930
</div>
4031
</div>

templates/panels/production.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<div class="description">
88
<p class="lh-copy f2">
99
Hundreds of companies around the world are using Rust in production
10-
today for fast, low resource, cross-platform solutions. Software you know
10+
today for fast, low-resource, cross-platform solutions. Software you know
1111
and love, like <a href="https://hacks.mozilla.org/2017/08/inside-a-super-fast-css-engine-quantum-css-aka-stylo/" target="_blank" rel="noopener">Firefox</a>, <a href="https://blogs.dropbox.com/tech/2016/06/lossless-compression-with-brotli/" target="_blank" rel="noopener">Dropbox</a>, and <a href="https://blog.cloudflare.com/cloudflare-workers-as-a-serverless-rust-platform/" target="_blank" rel="noopener">Cloudflare</a>, uses Rust. <strong>From startups to large
1212
corporations, from embedded devices to scalable web services, Rust is a great fit.</strong>
1313
</p>

templates/what/cli/code-inputs.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@ struct Cli {
55
file: String,
66
/// Number of lines to read
77
#[structopt(short = "n")]
8-
num: i32,
8+
num: usize,
99
}

templates/what/cli/code-main.hbs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
use quicli::prelude::*;
2+
use structopt::StructOpt;
23

34
fn main() -> CliResult {
4-
let args = Cli::from_args()?:
5+
let args = Cli::from_args()?;
56
read_file(&args.file)?
67
.lines()
78
.take(args.count)

templates/what/cli/maintainable.hbs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
out these “what if” situations before you even run your
1919
program.
2020
</p>
21-
<a href="https://doc.rust-lang.org/book/2018-edition/ch09-00-error-handling.html" target="_blank" rel="noopener" class="button button-secondary">
21+
<a href="https://doc.rust-lang.org/book/ch09-00-error-handling.html" target="_blank" rel="noopener" class="button button-secondary">
2222
Rust’s error handling
2323
</a>
2424
</article>
@@ -33,7 +33,7 @@
3333
features, refactor your application with the confidence that
3434
you aren’t breaking anything.
3535
</p>
36-
<a href="https://doc.rust-lang.org/book/2018-edition/ch12-03-improving-error-handling-and-modularity.html" target="_blank" rel="noopener" class="button button-secondary">
36+
<a href="https://doc.rust-lang.org/book/ch12-03-improving-error-handling-and-modularity.html" target="_blank" rel="noopener" class="button button-secondary">
3737
Refactoring Rust
3838
</a>
3939
</article>

templates/what/networking/production.hbs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
compile time. Its low footprint and high performance, complemented by guaranteed memory safety
5050
and rock-solid error handling make it perfect for writing security critical and complex
5151
business logic for our backend. The ultra-high stability means that our Rust applications are
52-
the last past of our stack we ever have to worry about. We have been running a almost 100% Rust
52+
the last part of our stack we ever have to worry about. We have been running a almost 100% Rust
5353
backend in production since end of 2015 and it has never failed us so far!
5454
</blockquote>
5555
<p class="attribution">
@@ -60,4 +60,4 @@
6060
</div>
6161
</div>
6262
</div>
63-
</section>
63+
</section>

0 commit comments

Comments
 (0)