Skip to content

Commit 2021cb2

Browse files
authored
Merge pull request #2043 from rust-lang/master
Deploy
2 parents 10b857b + a7b4b72 commit 2021cb2

File tree

17 files changed

+49
-27
lines changed

17 files changed

+49
-27
lines changed

.github/dependabot.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ updates:
44
- package-ecosystem: cargo
55
directory: "/"
66
schedule:
7-
interval: weekly
7+
interval: monthly
88
groups:
99
all:
1010
patterns:

Cargo.lock

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

locales/en-US/learn.ftl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ learn-generating-steps = <p>Let’s write a small application with our new Rust
108108
{ $tree }
109109
<p><code>Cargo.toml</code> is the manifest file for Rust. It’s where you keep metadata for your project, as well as dependencies.</p>
110110
<p><code>src/main.rs</code> is where we’ll write our application code.</p>
111-
<hr class="get-started-hr" />
111+
<hr class="white-hr" />
112112
<p>The <code>cargo new</code> step generated 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>
113113
<p><code>cargo run</code></p>
114114
<p>You should see this in your terminal:</p>

locales/es/learn.ftl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ learn-generating-steps =
8383
{ $tree }
8484
<p><code>Cargo.toml</code> es el archivo de manifiesto de Rust. Es donde mantenemos los metadatos del proyecto, así como la declaración de dependencias.</p>
8585
<p><code>src/main.rs</code> es donde escribimos el código de nuestra aplicación.</p>
86-
<hr class="get-started-hr" />
86+
<hr class="white-hr" />
8787
<p><code>cargo new</code> genera un proyecto de "Hello, world" para nosotros. Podemos ejecutar el programa si nos movemos al nuevo directorio recién creado ejecutando en tu terminal:</p>
8888
<p><code>cargo run</code></p>
8989
<p>Deberías ver esto en tu terminal:</p>

locales/fr/learn.ftl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ learn-generating-steps =
8383
{ $tree }
8484
<p><code>Cargo.toml</code> est le fichier manifeste de Rust. C'est là que vous gardez les métadonnées pour votre projet, ainsi que les dépendances.</p>
8585
<p><code>src/main.rs</code> est l'endroit où vous écrirez le code de notre application.</p>
86-
<hr class="get-started-hr" />
86+
<hr class="white-hr" />
8787
<p><code>cargo new</code> génère pour nous un projet "Hello, world!". Nous pouvons exécuter ce programme en nous déplaçant dans le nouveau répertoire que nous avons créé et en exécutant ceci dans notre terminal :</p>
8888
<p><code>cargo run</code></p>
8989
<p>Vous devriez voir ceci dans votre terminal :</p>

locales/it/learn.ftl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ learn-generating-steps =
8383
{ $tree }
8484
<p><code>Cargo.toml</code> è il manifest per i progetti Rust. Contiene i metadati, così come l'elenco delle dipendenze.</p>
8585
<p><code>src/main.rs</code> il file che conterrà il codice della nostra applicazione.</p>
86-
<hr class="get-started-hr" />
86+
<hr class="white-hr" />
8787
<p><code>cargo new</code> crea un progetto del tipo "Hello, world!"! Possiamo eseguire questo programma scendendo nella directory che abbiamo appena creato e poi lanciare:</p>
8888
<p><code>cargo run</code></p>
8989
<p>Questo l'output che dovrebbe apparire sulla console:</p>

locales/ja/learn.ftl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ learn-generating-steps =
8383
{ $tree }
8484
<p><code>Cargo.toml</code>はRust用のマニフェストファイルです。プロジェクトのメタデータに加え依存関係も記録されます。</p>
8585
<p><code>src/main.rs</code>がアプリケーションのコードを書く場所です。</p>
86-
<hr class="get-started-hr" />
86+
<hr class="white-hr" />
8787
<p><code>cargo new</code>は「Hello, world!」プロジェクトを生成します!ターミナルで作成した新しいディレクトリに移動し、以下を実行することでこのプログラムを実行できます:</p>
8888
<p><code>cargo run</code></p>
8989
<p>以下の出力が得られるはずです:</p>

locales/pl/learn.ftl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ learn-generating-steps =
8383
{ $tree }
8484
<p><code>Cargo.toml</code> to plik manifestowy projektu Rust. Jest to miejsce, w którym trzymane są metadane dotyczące naszego projektu oraz jego zależności w postaci rozmaitych bibliotek kodu.</p>
8585
<p><code>src/main.rs</code> to plik, w którym będziemy pisać nasz program.</p>
86-
<hr class="get-started-hr" />
86+
<hr class="white-hr" />
8787
<p><code>cargo new</code> tworzy dla nas domyślny projekt "Hello, world!". Możemy uruchomić tak powstałą aplikację, wchodząc w katalog projektu i uruchamiając następujące polecenie:</p>
8888
<p><code>cargo run</code></p>
8989
<p>Na ekranie powinniśmy zobaczyć:</p>

locales/pt-BR/learn.ftl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ learn-generating-steps =
8383
{ $tree }
8484
<p><code>Cargo.toml</code> é o manifesto de um projeto Rust. Aqui você encontra todos os metadados do projeto, assim como as declarações de dependência.</p>
8585
<p><code>src/main.rs</code> é onde nos vamos escrever nossa aplicação.</p>
86-
<hr class="get-started-hr" />
86+
<hr class="white-hr" />
8787
<p><code>cargo new</code> gera um projeto "Hello, world!" para você! Você pode executar esse programa entrando no diretório recém criado e executando o seguinte no seu terminal:</p>
8888
<p><code>cargo run</code></p>
8989
<p>Você deveria ver a seguinte saída no terminal:</p>

locales/ru/learn.ftl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ learn-generating-steps =
8383
{ $tree }
8484
<p><code>Cargo.toml</code> - это файл манифеста. Здесь хранятся метаданные вашего проекта, такие как описание.</p>
8585
<p>В файле <code>src/main.rs</code> вы пишете код приложения.</p>
86-
<hr class="get-started-hr" />
86+
<hr class="white-hr" />
8787
<p><code>cargo new</code> создал для нас проект "Hello, world!". Для запуска этой программы мы перейдём в директорию, которая была создана, и запустим в терминале:</p>
8888
<p><code>cargo run</code></p>
8989
<p>Вы должны увидеть следующее:</p>

locales/tr/learn.ftl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ learn-generating-steps =
8080
{ $tree }
8181
<p><code>Cargo.toml</code>, Rust için manifesto dosyasıdır. Burası projenizin metaverisini sakladığınız yer olmakla birlikte, bağımlılıkların da belirtildiği yerdir.</p>
8282
<p>Uygulama kodunuzun bulunduğu yer ise <code>src/main.rs</code>'dir.</p>
83-
<hr class="get-started-hr" />
83+
<hr class="white-hr" />
8484
<p><code>cargo new</code>, bizim için yeni bir "Merhaba, dünya!" projesi oluşturur! Bu programı yeni bir dizine taşıyıp, aşağıdaki kodla uçbirimimizde çalıştırabiliriz:</p>
8585
<p><code>cargo run</code></p>
8686
<p>Uçbiriminizde şu çıktıyı almanız gerekmektedir:</p>

locales/zh-CN/learn.ftl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ learn-generating-steps =
8787
{ $tree }
8888
<p><code>Cargo.toml</code> 为 Rust 的清单文件。其中包含了项目的元数据和依赖库。</p>
8989
<p><code>src/main.rs</code> 为编写应用代码的地方。</p>
90-
<hr class="get-started-hr" />
90+
<hr class="white-hr" />
9191
<p><code>cargo new</code> 会生成一个新的“Hello, world!”项目!我们可以进入新创建的目录中,执行下面的命令来运行此程序:</p>
9292
<p><code>cargo run</code></p>
9393
<p>您应该会在终端中看到如下内容:</p>

locales/zh-TW/learn.ftl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ learn-generating-steps =
8383
{ $tree }
8484
<p><code>Cargo.toml</code> 是 Rust 的 manifest 檔案,它是保存專案 metadata 與相依套件資訊的地方。</p>
8585
<p><code>src/main.rs</code> 是我們要編寫程式碼的地方。</p>
86-
<hr class="get-started-hr" />
86+
<hr class="white-hr" />
8787
<p><code>cargo new</code> 會為我們產生一個「Hello, world!」的專案!我們可以移動到這個新的目錄並在我們的終端機上執行:</p>
8888
<p><code>cargo run</code></p>
8989
<p>您應該會在終端機上看到以下訊息:</p>

src/styles/app.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -531,7 +531,7 @@ blockquote::before {
531531
width: 80%;
532532
}
533533

534-
.get-started-hr {
534+
.white-hr {
535535
background-color: white;
536536
height: 1px;
537537
border: 0px;

static/scripts/tools-install.js

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,8 +157,23 @@ function set_up_cycle_button() {
157157
function fill_in_bug_report_values() {
158158
var nav_plat = document.getElementById("nav-plat");
159159
var nav_app = document.getElementById("nav-app");
160+
var report_link = document.getElementById("report-unknown-platform-link");
160161
nav_plat.textContent = navigator.platform;
161162
nav_app.textContent = navigator.appVersion;
163+
var issue_template = `\
164+
<!--
165+
PLEASE do not open an issue if you are using Android!
166+
167+
The Rust toolchain does not run and can't be installed on Android.
168+
169+
If you are on desktop, go ahead and open this issue.
170+
-->
171+
172+
navigator.platform: \`${navigator.platform}\`
173+
navigator.appVersion: \`${navigator.appVersion}\`
174+
175+
The website did not recognize the platform I'm on, so I am unable to install rustup.`;
176+
report_link.href = "https://github.com/rust-lang/www.rust-lang.org/issues/new?title=Unrecognized%20platform&body=" + encodeURIComponent(issue_template);
162177
}
163178

164179
var override_map = new Map ([

templates/components/tools/rustup.html.hbs

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,15 +33,22 @@
3333
</div>
3434
</div>
3535
<br/>
36-
<a href="https://github.com/rust-lang/www.rust-lang.org/issues/new?title=Unrecognized%20platform&body=navigator.platform%3A%20_please%20fill%20out_%0Anavigator.appVersion%3A%20_please%20fill%20out_%0A%0AThe%20website%20did%20not%20recognize%20the%20platform%20I%27m%20on%2C%20so%20I%20am%20unable%20to%20install%20rustup." class="button button-secondary">{{fluent "tools-rustup-report"}}</a>
37-
<hr/>
36+
<!-- This href is overwritten with a better template in static/scripts/tools-install.js -->
37+
<a
38+
href="https://github.com/rust-lang/www.rust-lang.org/issues/new"
39+
id="report-unknown-platform-link"
40+
class="button button-secondary"
41+
>
42+
{{fluent "tools-rustup-report"}}
43+
</a>
44+
<hr class="white-hr" />
3845
<div>
3946
<p>
4047
{{fluent "tools-rustup-manual-unixy"}}
4148
</p>
4249
<code class="db w-100">curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh</code>
4350
</div>
44-
<hr>
51+
<hr class="white-hr" />
4552
<div>
4653
<p>
4754
{{fluent "tools-rustup-manual-windows"}}
@@ -55,7 +62,7 @@
5562
</p>
5663
<pre><code class="db w-100">curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh</code></pre>
5764
</div>
58-
<hr>
65+
<hr class="white-hr" />
5966
<div>
6067
<p>
6168
{{fluent "tools-rustup-manual-default-windows"}}

templates/learn/get-started.html.hbs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
</header>
1616
<p>{{fluent "learn-play"}}</p>
1717
<a href="https://play.rust-lang.org/" class="button button-secondary">{{fluent "learn-play-button"}}</a>
18-
<hr class="get-started-hr" />
18+
<hr class="white-hr" />
1919

2020
<h3>{{fluent "learn-install-rustup-header"}}</h3>
2121
<p>{{fluent "learn-install-rustup"}}</p>
@@ -25,12 +25,12 @@
2525
<p>{{#fluent "learn-install-rustup-update"}}{{#fluentparam "update-command"}}<code>rustup update</code>{{/fluentparam}}{{/fluent}}</p>
2626
<br />
2727
<a href="{{baseurl}}/tools/install" class="button button-secondary">{{fluent "learn-install-rustup-button"}}</a>
28-
<hr class="get-started-hr" />
28+
<hr class="white-hr" />
2929

3030
<h3>{{fluent "learn-install-cargo-header"}}</h3>
3131
{{fluent "learn-install-cargo"}}
3232
<a href="https://doc.rust-lang.org/cargo/index.html" class="button button-secondary">{{fluent "learn-install-cargo-button"}}</a>
33-
<hr class="get-started-hr" />
33+
<hr class="white-hr" />
3434

3535
<h3>{{fluent "learn-install-other"}}</h3>
3636
<p>{{fluent "learn-install-editors"}}</p>

0 commit comments

Comments
 (0)