Skip to content

Commit 69c962f

Browse files
authored
Merge pull request #1733 from rust-lang/master
Deploy
2 parents e8ca59f + cbea543 commit 69c962f

File tree

10 files changed

+773
-812
lines changed

10 files changed

+773
-812
lines changed

Cargo.lock

Lines changed: 726 additions & 796 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

RustConfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
VERSION=nightly-2021-04-15
1+
VERSION=nightly-2022-10-21

locales/en-US/learn.ftl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ learn-rbe-button = Check out Rust by Example!
1414
translated-rbe = {""}
1515
translated-rbe-button = {""}
1616
17-
learn-use = Grow with Rust
17+
learn-use = Documentation
1818
1919
learn-doc-heading = Read the core documentation
2020
learn-doc = All of this documentation is also available locally using the <code>rustup doc</code> command, which will open up these resources for you in your browser without requiring a network connection!
@@ -119,6 +119,7 @@ learn-dependencies-steps = <p>Let’s add a dependency to our application. You c
119119
<p>In this project, we’ll use a crate called <a href="https://crates.io/crates/ferris-says"><code>ferris-says</code></a>.
120120
<p>In our <code>Cargo.toml</code> file we’ll add this information (that we got from the crate page):</p>
121121
{ $cargotoml }
122+
<p>We can also do this by running <code>cargo add [email protected]</code>.</p>
122123
<p>Now we can run:</p>
123124
<p><code>cargo build</code></p>
124125
<p>...and Cargo will install our dependency for us.</p>

rust-toolchain

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
nightly-2021-04-15
1+
nightly-2022-10-21

src/data/users.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -92,11 +92,6 @@
9292
url: http://calyptech.com
9393
logo: calyptech.png
9494
how: "Used for high performance embedded system components as an alternative to C."
95-
-
96-
name: Cambridge Consultants
97-
url: http://www.cambridgeconsultants.com/
98-
logo: cambridge-consultants.png
99-
how: "<a href='http://blog.cambridgeconsultants.com/wireless-product-development/presentation-mozillas-rust-and-why-we-love-it/'>We are writing and shipping Rust code on projects to our clients</a>."
10095
-
10196
name: Canonical
10297
url: http://www.canonical.com

src/styles/app.scss

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -624,3 +624,33 @@ blockquote::before {
624624
/* Tachyons is missing this class */
625625
max-height: 10rem;
626626
}
627+
628+
.select {
629+
display: inline-block;
630+
position: relative;
631+
}
632+
633+
.select select {
634+
appearance: none;
635+
-webkit-appearance: none;
636+
-moz-appearance: none;
637+
font-size: 1.25rem;
638+
border: $gray 1px solid;
639+
background-color: white;
640+
padding: 2px 6px;
641+
color: $gray;
642+
box-sizing: border-box;
643+
}
644+
645+
.select:after {
646+
content: "";
647+
position: absolute;
648+
top: 50%;
649+
right: 8px;
650+
width: 0;
651+
height: 0;
652+
margin-top: -2px;
653+
border-top: 5px solid $gray;
654+
border-right: 5px solid transparent;
655+
border-left: 5px solid transparent;
656+
}

src/teams.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,7 @@ mod tests {
234234
weight: 0,
235235
}),
236236
github: None,
237+
discord: vec![],
237238
}
238239
}
239240

templates/components/footer.hbs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,12 @@
99
<li><a href="https://users.rust-lang.org">{{fluent "footer-ask"}}</a></li>
1010
</ul>
1111
<div class="languages">
12+
<div class="select">
1213
<label for="language-footer" class="hidden">{{fluent "choose-language"}}</label>
1314
<select id="language-footer">
14-
{{> components/languages-dropdown}}
15+
{{> components/languages-dropdown}}
1516
</select>
17+
</div>
1618
</div>
1719
</div>
1820
<div class="flex flex-column mw8 w-100 measure-wide-l pv2 pv5-m pv2-ns ph4-m ph4-l">

templates/components/nav.hbs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,12 @@
1919
</ul>
2020

2121
<div class=" w-100 w-auto-l flex-none flex justify-center pv4 pv-0-l languages">
22-
<label for="language-nav" class="hidden">{{fluent "choose-language"}}</label>
23-
<select id="language-nav" data-current-lang="{{lang}}">
24-
{{> components/languages-dropdown}}
25-
</select>
22+
<div class="select">
23+
<label for="language-nav" class="hidden">{{fluent "choose-language"}}</label>
24+
<select id="language-nav" data-current-lang="{{lang}}">
25+
{{> components/languages-dropdown}}
26+
</select>
27+
</div>
2628
</div>
2729

2830
</nav>

templates/learn/index.hbs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<div class="highlight"></div>
1414
</header>
1515
<section class="flex flex-column flex-row-l pv0-l">
16-
<div class="flex flex-row flex-column-l justify-between-l mw8 measure-wide-l pb4 pb5-m pb6-ns ph4-l">
16+
<div class="flex flex-row flex-column-l justify-between-l mw8 measure-wide-l pb4 pb5-m pb0-ns ph4-l">
1717
<div class="v-top pl4 pl0-l pt3-l measure-wide-l flex-l flex-column-l flex-auto-l">
1818
<p class="flex-grow-1">{{fluent "learn-book"}}</p>
1919
<div class="buttons">
@@ -22,15 +22,15 @@
2222
</div>
2323
</div>
2424
</div>
25-
<div class="flex flex-row flex-column-l justify-between-l mw8 measure-wide-l pb4 pb5-m pb6-ns ph4-l">
25+
<div class="flex flex-row flex-column-l justify-between-l mw8 measure-wide-l pb4 pb5-m pb0-ns ph4-l">
2626
<div class="v-top pl4 pl0-l pt3-l measure-wide-l flex-l flex-column-l flex-auto-l">
2727
<p class="flex-grow-1">{{fluent "learn-rustlings"}}</p>
2828
<div class="buttons">
2929
<a class="button button-secondary" href="https://github.com/rust-lang/rustlings/">{{fluent "learn-rustlings-button"}}</a>
3030
</div>
3131
</div>
3232
</div>
33-
<div class="flex flex-row flex-column-l justify-between-l mw8 measure-wide-l pb4 pb5-m pb6-ns ph4-l">
33+
<div class="flex flex-row flex-column-l justify-between-l mw8 measure-wide-l pb4 pb5-m pb0-ns ph4-l">
3434
<div class="v-top pl4 pl0-l pt3-l measure-wide-l flex-l flex-column-l flex-auto-l">
3535
<p class="flex-grow-1">{{fluent "learn-rbe"}}</p>
3636
<div class="buttons">

0 commit comments

Comments
 (0)