Skip to content

Commit 53dd001

Browse files
committed
Merge remote-tracking branch 'origin/main' into dependabot/bundler/github-pages-232
2 parents 14d9d35 + ec9081c commit 53dd001

File tree

94 files changed

+1917
-896
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

94 files changed

+1917
-896
lines changed

Gemfile.lock

+1-1
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ GEM
281281
concurrent-ruby (~> 1.0)
282282
unicode-display_width (1.8.0)
283283
uri (0.13.0)
284-
webrick (1.8.1)
284+
webrick (1.8.2)
285285
yell (2.2.2)
286286
zeitwerk (2.6.7)
287287

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Scala Documentation #
22

3-
[![Build Status](https://ci.scala-lang.org/api/badges/scala/docs.scala-lang/status.svg)](https://platform-ci.scala-lang.org/scala/docs.scala-lang)
3+
[![Build Status](https://github.com/scala/docs.scala-lang/actions/workflows/build.yml/badge.svg)](https://github.com/scala/docs.scala-lang/actions/workflows/build.yml?query=branch%3Amain)
44

55
This repository contains the source for the Scala documentation website, as well as the source for "Scala Improvement Process" (SIP) documents.
66

_ba/tour/automatic-closures.md

-7
This file was deleted.

_config.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ keywords:
1515
- Document
1616
- Guide
1717

18-
scala-version: 2.13.14
19-
scala-212-version: 2.12.19
20-
scala-3-version: 3.5.0
18+
scala-version: 2.13.15
19+
scala-212-version: 2.12.20
20+
scala-3-version: 3.5.2
2121

2222
collections:
2323
style:

_data/doc-nav-header.yml

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
- title: Getting Started
2-
url: "/getting-started/index.html"
2+
url: "#"
3+
submenu:
4+
- title: Install Scala
5+
url: "/getting-started/install-scala.html"
6+
- title: Scala IDEs
7+
url: "/getting-started/scala-ides.html"
38
- title: Scala 3
49
url: "#"
510
submenu:

_data/footer.yml

+13-5
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,11 @@
2121
links:
2222
- title: Community
2323
url: "http://scala-lang.org/community/"
24-
- title: Governance
25-
url: "http://scala-lang.org/community/index.html#governance"
2624
- title: Scala Ambassadors
2725
url: "http://scala-lang.org/ambassadors/"
28-
- title: Mailing Lists
29-
url: "http://scala-lang.org/community/index.html#mailing-lists"
30-
- title: Chat Rooms & More
26+
- title: Forums
27+
url: "http://scala-lang.org/community/index.html#forums"
28+
- title: Chat
3129
url: "http://scala-lang.org/community/index.html#chat-rooms"
3230
- title: Libraries and Tools
3331
url: "http://scala-lang.org/community/index.html#community-libraries-and-tools"
@@ -43,16 +41,26 @@
4341
- title: Scala
4442
class: scala
4543
links:
44+
- title: Governance
45+
url: "http://scala-lang.org/governance/"
4646
- title: Blog
4747
url: "http://scala-lang.org/blog/"
4848
- title: Code of Conduct
4949
url: "http://scala-lang.org/conduct/"
5050
- title: License
5151
url: "http://scala-lang.org/license/"
52+
- title: Security Policy
53+
url: "http://scala-lang.org/security/"
5254
- title: Social
5355
class: social
5456
links:
5557
- title: GitHub
5658
url: "https://github.com/scala/scala"
59+
- title: Mastodon
60+
url: https://fosstodon.org/@scala_lang
5761
- title: Twitter
5862
url: "https://twitter.com/scala_lang"
63+
- title: Discord
64+
url: "https://discord.com/invite/scala"
65+
- title: LinkedIn
66+
url: "https://www.linkedin.com/company/scala-center/"

_data/nav-header.yml

+2
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,7 @@
88
url: https://index.scala-lang.org
99
- title: Community
1010
url: https://www.scala-lang.org/community/
11+
- title: Governance
12+
url: https://www.scala-lang.org/governance/
1113
- title: Blog
1214
url: https://www.scala-lang.org/blog/

_data/overviews.yml

+3
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,9 @@
161161
description: "A diverse and comprehensive set of libraries is important to any productive software ecosystem. While it is easy to develop and distribute Scala libraries, good library authorship goes beyond just writing code and publishing it. In this guide, we cover the important topic of Binary Compatibility."
162162
icon: puzzle-piece
163163
url: "core/binary-compatibility-for-library-authors.html"
164+
- title: Nightly Versions of Scala
165+
description: "We regularly publish 'nightlies' of both Scala 3 and Scala 2 so that users can preview and test the contents of upcoming releases. Here's how to find and use these versions."
166+
url: "core/nightlies.html"
164167

165168
- category: "Tools"
166169
description: "Reference material on core Scala tools like the Scala REPL and Scaladoc generation."

_data/setup-scala.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@ linux-x86-64: curl -fL https://github.com/coursier/coursier/releases/latest/down
22
linux-arm64: curl -fL https://github.com/VirtusLab/coursier-m1/releases/latest/download/cs-aarch64-pc-linux.gz | gzip -d > cs && chmod +x cs && ./cs setup
33
macOS-x86-64: curl -fL https://github.com/coursier/coursier/releases/latest/download/cs-x86_64-apple-darwin.gz | gzip -d > cs && chmod +x cs && (xattr -d com.apple.quarantine cs || true) && ./cs setup
44
macOS-arm64: curl -fL https://github.com/VirtusLab/coursier-m1/releases/latest/download/cs-aarch64-apple-darwin.gz | gzip -d > cs && chmod +x cs && (xattr -d com.apple.quarantine cs || true) && ./cs setup
5-
macOS-brew: brew install coursier/formulas/coursier && cs setup
5+
macOS-brew: brew install coursier && coursier setup
66
windows-link: https://github.com/coursier/coursier/releases/latest/download/cs-x86_64-pc-win32.zip

_es/tour/automatic-closures.md

-65
This file was deleted.

_es/tour/multiple-parameter-lists.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ partof: scala-tour
66
num: 15
77
language: es
88

9-
next-page: automatic-closures
9+
next-page: operators
1010
previous-page: nested-functions
1111
---
1212

_es/tour/operators.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ num: 17
77
language: es
88

99
next-page: higher-order-functions
10-
previous-page: automatic-closures
10+
previous-page: multiple-parameter-lists
1111
---
1212

1313
En Scala, cualquier método el cual reciba un solo parámetro puede ser usado como un *operador de infijo (infix)*. Aquí se muestra la definición de la clase `MyBool`, la cual define tres métodos `and`, `or`, y `negate`.

_es/tour/tour-of-scala.md

-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ El [mecanismo de inferencia de tipos locales](type-inference.html) se encarga de
3737

3838
En la práctica, el desarrollo de aplicaciones específicas para un dominio generalmente requiere de "Lenguajes de dominio específico" (DSL). Scala provee una única combinación de mecanismos del lenguaje que simplifican la creación de construcciones propias del lenguaje en forma de bibliotecas:
3939
* cualquier método puede ser usado como un operador de [infijo o postfijo](operators.html)
40-
* [las closures son construidas automáticamente dependiendo del tipo esperado](automatic-closures.html) (tipos objetivo).
4140

4241
El uso conjunto de ambas características facilita la definición de nuevas sentencias sin tener que extender la sintaxis y sin usar facciones de meta-programación como tipo macros.
4342

File renamed without changes.

_fr/tour/automatic-closures.md

-7
This file was deleted.

_includes/_markdown/install-cask.md

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
{% altDetails require-info-box 'Getting Cask' %}
2+
3+
{% tabs cask-install class=tabs-build-tool %}
4+
5+
{% tab 'Scala CLI' %}
6+
You can declare a dependency on Cask with the following `using` directive:
7+
```scala
8+
//> using dep "com.lihaoyi::cask::0.9.2"
9+
```
10+
{% endtab %}
11+
12+
{% tab 'sbt' %}
13+
In your `build.sbt`, you can add a dependency on Cask:
14+
```scala
15+
lazy val example = project.in(file("example"))
16+
.settings(
17+
scalaVersion := "3.4.2",
18+
libraryDependencies += "com.lihaoyi" %% "cask" % "0.9.2",
19+
fork := true
20+
)
21+
```
22+
{% endtab %}
23+
24+
{% tab 'Mill' %}
25+
In your `build.sc`, you can add a dependency on Cask:
26+
```scala
27+
object example extends RootModule with ScalaModule {
28+
def scalaVersion = "3.3.3"
29+
def ivyDeps = Agg(
30+
ivy"com.lihaoyi::cask::0.9.2"
31+
)
32+
}
33+
```
34+
{% endtab %}
35+
36+
{% endtabs %}
37+
{% endaltDetails %}
File renamed without changes.

_ja/index.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ sections:
1414
- title: "入門"
1515
description: "あなたのコンピューターに Scala をインストールして、Scala コードを書きはじめよう!"
1616
icon: "fa fa-rocket"
17-
link: /ja/getting-started/index.html
17+
link: /ja/getting-started/install-scala.html
1818
- title: "Scala ツアー"
1919
description: "コア言語機能をひと口大で紹介"
2020
icon: "fa fa-flag"

_ja/overviews/macros/paradise.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ title: マクロパラダイス
1919
マクロパラダイス (Macro paradise) とは Scala の複数のバージョンをサポートするコンパイラプラグインで、一般向けにリリースされている <code>scalac</code> と共に正しく動作するように設計されている。
2020
これによって、将来の Scala に取り込まれるよりもいち早く最新のマクロ機能を使えるようになっている。
2121
[サポートされている機能とバージョンの一覧](/ja/overviews/macros/roadmap.html))に関してはロードマップページを、
22-
動作の保証に関しては[マクロパラダイスのアナウンスメント](https://scalamacros.org/news/2013/08/07/roadmap-for-macro-paradise.html)を参照してほしい。
22+
動作の保証に関しては[マクロパラダイスのアナウンスメント](hxxps://scalamacros.org/news/2013/08/07/roadmap-for-macro-paradise.html)を参照してほしい。
2323

2424
~/210x $ scalac -Xplugin:paradise_*.jar -Xshow-phases
2525
phase name id description

_ja/overviews/macros/typemacros.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ title: 型マクロ
99
**Eugene Yokota 訳**
1010

1111
型マクロ (type macro) は[マクロパラダイス](/ja/overviews/macros/paradise.html)の以前のバージョンから利用可能だったが、マクロパラダイス 2.0 ではサポートされなくなった。
12-
[the paradise 2.0 announcement](https://scalamacros.org/news/2013/08/05/macro-paradise-2.0.0-snapshot.html) に説明と移行のための戦略が書かれている。
12+
[the paradise 2.0 announcement](hxxps://scalamacros.org/news/2013/08/05/macro-paradise-2.0.0-snapshot.html) に説明と移行のための戦略が書かれている。
1313

1414
## 直観
1515

_ja/overviews/macros/untypedmacros.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ title: 型指定の無いマクロ
99
**Eugene Yokota 訳**
1010

1111
型指定の無いマクロ (untyped macro) は[マクロパラダイス](/ja/overviews/macros/paradise.html)の以前のバージョンから利用可能だったが、マクロパラダイス 2.0 ではサポートされなくなった。
12-
[the paradise 2.0 announcement](https://scalamacros.org/news/2013/08/05/macro-paradise-2.0.0-snapshot.html) に説明と移行のための戦略が書かれている。
12+
[the paradise 2.0 announcement](hxxps://scalamacros.org/news/2013/08/05/macro-paradise-2.0.0-snapshot.html) に説明と移行のための戦略が書かれている。
1313

1414
## 直観
1515

_ja/overviews/macros/usecases.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Scala の商用ユーザと研究ユーザの両方がマクロを利用して
2020
ここ EPFL においても我々はマクロを活用して研究を行っている。Lightbend 社もマクロを数々のプロジェクトに採用している。
2121
マクロはコミュニティー内でも人気があり、既にいくつかの興味深い応用が現れている。
2222

23-
最近行われた講演の ["What Are Macros Good For?"](https://scalamacros.org/paperstalks/2014-02-04-WhatAreMacrosGoodFor.pdf) では Scala 2.10 ユーザのマクロの利用方法を説明し、システム化した。講演の大筋はマクロはコード生成、静的な検査、および DSL に有効であるということで、これを研究や産業からの例を交えながら説明した。
23+
最近行われた講演の ["What Are Macros Good For?"](https://github.com/scalamacros/scalamacros.github.com/blob/5904f7ef88a439c668204b4bf262835e89fb13cb/paperstalks/2014-02-04-WhatAreMacrosGoodFor.pdf) では Scala 2.10 ユーザのマクロの利用方法を説明し、システム化した。講演の大筋はマクロはコード生成、静的な検査、および DSL に有効であるということで、これを研究や産業からの例を交えながら説明した。
2424

25-
Scala'13 ワークショップにおいて ["Scala Macros: Let Our Powers Combine!"](https://scalamacros.org/paperstalks/2013-04-22-LetOurPowersCombine.pdf) という論文を発表した。これは Scala 2.10 における最先端のマクロ論をより学問的な視点から説明した。
25+
Scala'13 ワークショップにおいて ["Scala Macros: Let Our Powers Combine!"](https://github.com/scalamacros/scalamacros.github.com/blob/5904f7ef88a439c668204b4bf262835e89fb13cb/paperstalks/2013-04-22-LetOurPowersCombine.pdf) という論文を発表した。これは Scala 2.10 における最先端のマクロ論をより学問的な視点から説明した。
2626
この論文では Scala のリッチな構文と静的な型がマクロと相乗することを示し、また既存の言語機能をマクロによって新しい方法で活用できることを考察する。

_ja/overviews/reflection/overview.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ Scala コンパイラが持つ型情報を全ては入手できない可能性
8181

8282
上の例では、まず `scala.reflect.runtime.universe` をインポートして
8383
(型タグを使うためには必ずインポートされる必要がある)、`l` という名前の `List[Int]` を作る。
84-
次に、context bound を持った型パラメータ `T` を持つ `getTypeTag` というメソッドは定義する
84+
次に、context bound を持った型パラメータ `T` を持つ `getTypeTag` というメソッドを定義する
8585
(REPL が示すとおり、これは暗黙の evidence パラメータを定義することに等価であり、コンパイラは `T` に対する型タグを生成する)。
8686
最後に、このメソッドに `l` を渡して呼び出し、`TypeTag` に格納される型を返す `tpe` を呼び出す。
8787
見ての通り、正しい完全な型 (つまり、`List` の具象型引数を含むということ) である `List[Int]` が返ってきた。

_ja/tour/automatic-closures.md

-59
This file was deleted.

_ko/tour/annotations.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ num: 31
77
language: ko
88

99
next-page: packages-and-imports
10-
previous-page: automatic-closures
10+
previous-page: operators
1111
---
1212

1313
어노테이션은 메타 정보와 정의 내용을 연결해준다.

0 commit comments

Comments
 (0)