Skip to content

Commit c6815b1

Browse files
authored
Merge pull request #138 from kdnakt/translate-playground
translate untranslated lines in playground.md
2 parents 80d19fa + 41a7836 commit c6815b1

File tree

3 files changed

+46
-2
lines changed

3 files changed

+46
-2
lines changed

src/SUMMARY.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -455,4 +455,4 @@
455455
-->
456456
- [周辺情報](meta.md)
457457
- [ドキュメンテーション](meta/doc.md)
458-
- [Playground](meta/playground.md)
458+
- [プレイグラウンド](meta/playground.md)

src/meta.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ everyone. These topics include:
1616
- [Playground][playground]: Integrate the Rust Playground in your documentation.
1717
-->
1818
- [ドキュメンテーション][doc]: Rust付属コマンド`rustdoc`を用いて、ライブラリのドキュメントを生成します。
19-
- [Playpen][playpen]: Integrate the Rust Playpen(also known as the Rust Playground) in your documentation.
19+
- [プレイグラウンド][playground]: あなたのドキュメンテーションにRust Playgroundを組み込めます。
2020

2121
[doc]: meta/doc.md
2222
[playground]: meta/playground.md

src/meta/playground.md

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,82 @@
1+
<!--
12
# Playground
3+
-->
4+
# プレイグラウンド
25

6+
<!--
37
The [Rust Playground](https://play.rust-lang.org/) is a way to experiment with Rust code through a web interface.
8+
-->
9+
[Rust Playground](https://play.rust-lang.org/)では、RustのコードをWebのインターフェースを通じて実験できます。
410

11+
<!--
512
## Using it with `mdbook`
13+
-->
14+
## `mdbook`と組み合わせる
615

16+
<!--
717
In [`mdbook`][mdbook], you can make code examples playable and editable.
18+
-->
19+
[`mdbook`][mdbook]では、コード例を実行・編集可能にできます。
820

921
```rust,editable
1022
fn main() {
1123
println!("Hello World!");
1224
}
1325
```
1426

27+
<!--
1528
This allows the reader to both run your code sample, but also modify and tweak it. The key here is the adding the word `editable` to your codefence block separated by a comma.
29+
-->
30+
これにより、読者はあなたのコード例を実行するだけでなく、変更することもできます。
31+
`editable`という単語をカンマで区切って、あなたのコードブロックに追加するのがキーです。
1632

33+
<!--
1734
````markdown
1835
```rust,editable
1936
//...place your code here
2037
```
2138
````
39+
-->
40+
````markdown
41+
```rust,editable
42+
//...ここにあなたのコードを書きます
43+
```
44+
````
2245

46+
<!--
2347
Additionally, you can add `ignore` if you want `mdbook` to skip your code when it builds and tests.
48+
-->
49+
加えて、`mdbook`がビルドやテストを実行するときに、あなたのコードをスキップさせたい場合は、`ignore`を追加できます。
2450

51+
<!--
2552
````markdown
2653
```rust,editable,ignore
2754
//...place your code here
2855
```
2956
````
57+
-->
58+
````markdown
59+
```rust,editable,ignore
60+
//...ここにあなたのコードを書きます
61+
```
62+
````
3063

64+
<!--
3165
## Using it with docs
66+
-->
67+
## ドキュメントと組み合わせる
3268

69+
<!--
3370
You may have noticed in some of the [official Rust docs][official-rust-docs] a button that says "Run", which opens the code sample up in a new tab in Rust Playground. This feature is enabled if you use the #[doc] attribute called [`html_playground_url`][html-playground-url].
71+
-->
72+
[Rustの公式ドキュメント][official-rust-docs]には、「実行(Run)」ボタンがある場合があります。
73+
クリックすると、新しいタブでRust Playgroundが開き、コード例が表示されます。
74+
この機能は、#[doc]アトリビュートの[`html_playground_url`][html-playground-url]の値で有効化できます。
3475

76+
<!--
3577
### See also:
78+
-->
79+
### 参照
3680

3781
- [The Rust Playground][rust-playground]
3882
- [rust-playground][rust-playground]

0 commit comments

Comments
 (0)