Skip to content

Commit 273c727

Browse files
committed
updated site
1 parent d51044a commit 273c727

5 files changed

Lines changed: 28 additions & 28 deletions

File tree

2.x/docs/ja/guide/sbt-new.html

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<head>
44
<!-- Book generated using mdBook -->
55
<meta charset="UTF-8">
6-
<title>Creating a new build - The Book of sbt</title>
6+
<title>新しいビルドの作成 - The Book of sbt</title>
77

88

99
<!-- Custom HTML head -->
@@ -208,8 +208,8 @@ <h1 class="menu-title">The Book of sbt</h1>
208208

209209
<div id="content" class="content">
210210
<main>
211-
<h1 id="creating-a-new-build"><a class="header" href="#creating-a-new-build">Creating a new build</a></h1>
212-
<p>To start a new build with <code>sbt</code>, use <code>sbt new</code>.</p>
211+
<h1 id="新しいビルドの作成"><a class="header" href="#新しいビルドの作成">新しいビルドの作成</a></h1>
212+
<p>新しいビルドを作成するには、<code>sbt new</code> を使う。</p>
213213
<pre><code class="language-bash">$ mkdir /tmp/foo
214214
$ cd /tmp/foo
215215
$ sbt new
@@ -231,12 +231,12 @@ <h1 id="creating-a-new-build"><a class="header" href="#creating-a-new-build">Cre
231231
q) quit
232232
Select a template:
233233
</code></pre>
234-
<p>If you select "a", you will be prompted by more questions:</p>
234+
<p>「a」を選択すると、いくつかの質問が追加で表示される:</p>
235235
<pre><code class="language-bash">Select a template: a
236236
Scala version (default: 3.3.0):
237237
Scala Toolkit version (default: 0.2.0):
238238
</code></pre>
239-
<p>Hit return key to select the default values.</p>
239+
<p>リターンキーを押せば、デフォルト値が選択される。</p>
240240
<pre><code>[info] Updated file /private/tmp/bar/project/build.properties: set sbt.version to 1.9.8
241241
[info] welcome to sbt 1.9.8 (Azul Systems, Inc. Java 1.8.0_352)
242242
....
@@ -246,7 +246,7 @@ <h1 id="creating-a-new-build"><a class="header" href="#creating-a-new-build">Cre
246246
sbt:bar&gt; exit
247247
[info] shutting down sbt server
248248
</code></pre>
249-
<p>Here are the files that are created by this template:</p>
249+
<p>以下はこのテンプレートによって作成されたファイルだ:</p>
250250
<pre><code class="language-bash">.
251251
├── build.sbt
252252
├── project
@@ -262,7 +262,7 @@ <h1 id="creating-a-new-build"><a class="header" href="#creating-a-new-build">Cre
262262
│ └── ExampleSuite.scala
263263
└── target
264264
</code></pre>
265-
<p>Let's take a look at the <code>build.sbt</code> file:</p>
265+
<p><code>build.sbt</code> ファイルを見ていこう:</p>
266266
<pre><code class="language-scala">val toolkitV = "0.2.0"
267267
val toolkit = "org.scala-lang" %% "toolkit" % toolkitV
268268
val toolkitTest = "org.scala-lang" %% "toolkit-test" % toolkitV
@@ -271,14 +271,14 @@ <h1 id="creating-a-new-build"><a class="header" href="#creating-a-new-build">Cre
271271
libraryDependencies += toolkit
272272
libraryDependencies += (toolkitTest % Test)
273273
</code></pre>
274-
<p>This is called a <strong>build definition</strong>, and it contains the information sbt needs to compile your project. This is written in <code>.sbt</code> format, a subset of Scala language.</p>
275-
<p>Here's what's in <code>src/main/scala/example/Main.scala</code>:</p>
274+
<p>これは、<strong>ビルド定義</strong>と呼ばれ、sbt がプロジェクトをコンパイルするのに必要な情報が記述されている。これは、<code>.sbt</code> 形式という Scala 言語のサブセットで書かれている。</p>
275+
<p>以下は <code>src/main/scala/example/Main.scala</code> の内容だ:</p>
276276
<pre><code class="language-scala">package example
277277

278278
@main def main(args: String*): Unit =
279279
println(s"Hello ${args.mkString}")
280280
</code></pre>
281-
<p>This is a Hello world template. We can run it from the sbt shell by starting <code>sbt --client</code> and typing <code>run &lt;your_name&gt;</code> inside the shell:</p>
281+
<p>これは、Hello world のテンプレートだ。これを実行するには、<code>sbt --client</code> と打ち込んで sbt シェルを起動して、シェル内から <code>run &lt;名前&gt;</code> と入力する:</p>
282282
<pre><code>$ sbt --client
283283
[info] entering *experimental* thin client - BEEP WHIRR
284284
[info] server was not detected. starting an instance
@@ -290,12 +290,12 @@ <h1 id="creating-a-new-build"><a class="header" href="#creating-a-new-build">Cre
290290
Hello Raj
291291
[success] Total time: 0 s, completed Feb 18, 2024 2:38:10 PM
292292
</code></pre>
293-
<h3 id="giter8-templates"><a class="header" href="#giter8-templates">Giter8 templates</a></h3>
294-
<p>In addition to a few <code>.local</code> templates, <code>sbt new</code> integrates with <a href="https://www.foundweekends.org/giter8/">Giter8</a>, and open templating system that uses GitHub to host templates. For example, <code>scala/scala3.g8</code> is maintained by the Scala team to create a new Scala 3 build:</p>
293+
<h3 id="giter8-テンプレート"><a class="header" href="#giter8-テンプレート">Giter8 テンプレート</a></h3>
294+
<p><code>.local</code> テンプレートもいくつかあるが、基本的に <code>sbt new</code> <a href="https://www.foundweekends.org/giter8/">Giter8</a> と統合して GitHub 上でホスティングされるテンプレートを開く。例えば、<code>scala/scala3.g8</code> Scala チームによりメンテナンスされ、新しい Scala 3 のビルドを作成する:</p>
295295
<pre><code>$ /tmp
296296
$ sbt new scala/scala3.g8
297297
</code></pre>
298-
<p><a href="https://github.com/foundweekends/giter8/wiki/giter8-templates">Giter8 wiki</a> lists over 100 templates that can jump start your new build.</p>
298+
<p><a href="https://github.com/foundweekends/giter8/wiki/giter8-templates">Giter8 wiki</a> では 100 以上のテンプレートが列挙されていて、新しいビルドを手早く作ることができる。</p>
299299

300300
</main>
301301

2.x/docs/ja/print.html

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -776,8 +776,8 @@ <h2 id="buildsbt-dsl-の必要性"><a class="header" href="#buildsbt-dsl-の必
776776
<li><code>Initialized[Task[A]]</code> を用いた<strong>構造的並行性</strong>を提供する。この DSL はいわゆる「直接スタイル」な <code>.value</code> 構文を用いて簡潔にタスクグラフを定義することができる。</li>
777777
<li>プラグインを通して sbt の機能を拡張して、カスタム・タスクや Scala.JS といった言語拡張を行うという強力な権限をコミュニティーに与えている。</li>
778778
</ul>
779-
<div style="break-before: page; page-break-before: always;"></div><h1 id="creating-a-new-build"><a class="header" href="#creating-a-new-build">Creating a new build</a></h1>
780-
<p>To start a new build with <code>sbt</code>, use <code>sbt new</code>.</p>
779+
<div style="break-before: page; page-break-before: always;"></div><h1 id="新しいビルドの作成"><a class="header" href="#新しいビルドの作成">新しいビルドの作成</a></h1>
780+
<p>新しいビルドを作成するには、<code>sbt new</code> を使う。</p>
781781
<pre><code class="language-bash">$ mkdir /tmp/foo
782782
$ cd /tmp/foo
783783
$ sbt new
@@ -799,12 +799,12 @@ <h2 id="buildsbt-dsl-の必要性"><a class="header" href="#buildsbt-dsl-の必
799799
q) quit
800800
Select a template:
801801
</code></pre>
802-
<p>If you select "a", you will be prompted by more questions:</p>
802+
<p>「a」を選択すると、いくつかの質問が追加で表示される:</p>
803803
<pre><code class="language-bash">Select a template: a
804804
Scala version (default: 3.3.0):
805805
Scala Toolkit version (default: 0.2.0):
806806
</code></pre>
807-
<p>Hit return key to select the default values.</p>
807+
<p>リターンキーを押せば、デフォルト値が選択される。</p>
808808
<pre><code>[info] Updated file /private/tmp/bar/project/build.properties: set sbt.version to 1.9.8
809809
[info] welcome to sbt 1.9.8 (Azul Systems, Inc. Java 1.8.0_352)
810810
....
@@ -814,7 +814,7 @@ <h2 id="buildsbt-dsl-の必要性"><a class="header" href="#buildsbt-dsl-の必
814814
sbt:bar&gt; exit
815815
[info] shutting down sbt server
816816
</code></pre>
817-
<p>Here are the files that are created by this template:</p>
817+
<p>以下はこのテンプレートによって作成されたファイルだ:</p>
818818
<pre><code class="language-bash">.
819819
├── build.sbt
820820
├── project
@@ -830,7 +830,7 @@ <h2 id="buildsbt-dsl-の必要性"><a class="header" href="#buildsbt-dsl-の必
830830
│ └── ExampleSuite.scala
831831
└── target
832832
</code></pre>
833-
<p>Let's take a look at the <code>build.sbt</code> file:</p>
833+
<p><code>build.sbt</code> ファイルを見ていこう:</p>
834834
<pre><code class="language-scala">val toolkitV = "0.2.0"
835835
val toolkit = "org.scala-lang" %% "toolkit" % toolkitV
836836
val toolkitTest = "org.scala-lang" %% "toolkit-test" % toolkitV
@@ -839,14 +839,14 @@ <h2 id="buildsbt-dsl-の必要性"><a class="header" href="#buildsbt-dsl-の必
839839
libraryDependencies += toolkit
840840
libraryDependencies += (toolkitTest % Test)
841841
</code></pre>
842-
<p>This is called a <strong>build definition</strong>, and it contains the information sbt needs to compile your project. This is written in <code>.sbt</code> format, a subset of Scala language.</p>
843-
<p>Here's what's in <code>src/main/scala/example/Main.scala</code>:</p>
842+
<p>これは、<strong>ビルド定義</strong>と呼ばれ、sbt がプロジェクトをコンパイルするのに必要な情報が記述されている。これは、<code>.sbt</code> 形式という Scala 言語のサブセットで書かれている。</p>
843+
<p>以下は <code>src/main/scala/example/Main.scala</code> の内容だ:</p>
844844
<pre><code class="language-scala">package example
845845

846846
@main def main(args: String*): Unit =
847847
println(s"Hello ${args.mkString}")
848848
</code></pre>
849-
<p>This is a Hello world template. We can run it from the sbt shell by starting <code>sbt --client</code> and typing <code>run &lt;your_name&gt;</code> inside the shell:</p>
849+
<p>これは、Hello world のテンプレートだ。これを実行するには、<code>sbt --client</code> と打ち込んで sbt シェルを起動して、シェル内から <code>run &lt;名前&gt;</code> と入力する:</p>
850850
<pre><code>$ sbt --client
851851
[info] entering *experimental* thin client - BEEP WHIRR
852852
[info] server was not detected. starting an instance
@@ -858,12 +858,12 @@ <h2 id="buildsbt-dsl-の必要性"><a class="header" href="#buildsbt-dsl-の必
858858
Hello Raj
859859
[success] Total time: 0 s, completed Feb 18, 2024 2:38:10 PM
860860
</code></pre>
861-
<h3 id="giter8-templates"><a class="header" href="#giter8-templates">Giter8 templates</a></h3>
862-
<p>In addition to a few <code>.local</code> templates, <code>sbt new</code> integrates with <a href="https://www.foundweekends.org/giter8/">Giter8</a>, and open templating system that uses GitHub to host templates. For example, <code>scala/scala3.g8</code> is maintained by the Scala team to create a new Scala 3 build:</p>
861+
<h3 id="giter8-テンプレート"><a class="header" href="#giter8-テンプレート">Giter8 テンプレート</a></h3>
862+
<p><code>.local</code> テンプレートもいくつかあるが、基本的に <code>sbt new</code> <a href="https://www.foundweekends.org/giter8/">Giter8</a> と統合して GitHub 上でホスティングされるテンプレートを開く。例えば、<code>scala/scala3.g8</code> Scala チームによりメンテナンスされ、新しい Scala 3 のビルドを作成する:</p>
863863
<pre><code>$ /tmp
864864
$ sbt new scala/scala3.g8
865865
</code></pre>
866-
<p><a href="https://github.com/foundweekends/giter8/wiki/giter8-templates">Giter8 wiki</a> lists over 100 templates that can jump start your new build.</p>
866+
<p><a href="https://github.com/foundweekends/giter8/wiki/giter8-templates">Giter8 wiki</a> では 100 以上のテンプレートが列挙されていて、新しいビルドを手早く作ることができる。</p>
867867
<div style="break-before: page; page-break-before: always;"></div><h1 id="sbt-components"><a class="header" href="#sbt-components">sbt components</a></h1>
868868
<h2 id="sbt-runner"><a class="header" href="#sbt-runner">sbt runner</a></h2>
869869
<p>An sbt build is executed using <code>sbt</code> runner, also called "sbt-the-shell-script" to distinguish from other components. It's important to note is that sbt runner is designed to run <strong>any version</strong> of sbt.</p>

2.x/docs/ja/searchindex.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)