Skip to content

Commit 8bcd3a5

Browse files
committed
API documentation is now hosted on scala-lang.org/api/3.x/
1 parent 3b25e7a commit 8bcd3a5

File tree

19 files changed

+27
-27
lines changed

19 files changed

+27
-27
lines changed

_data/scala3-doc-nav-header.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@
1414
- title: Reference
1515
url: "/scala3/reference/overview.html"
1616
- title: API
17-
url: "https://dotty.epfl.ch/api/index.html"
17+
url: "https://scala-lang.org/api/3.x/"

_ja/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ scala3-sections:
3535
- title: "API"
3636
description: "Scala 3 の全バージョンのAPIドキュメント"
3737
icon: "fa fa-file-text"
38-
link: https://dotty.epfl.ch/api/index.html
38+
link: https://scala-lang.org/api/3.x/
3939
- title: "Language Reference"
4040
description: "Scala 3 の言語仕様"
4141
icon: "fa fa-book"

_ja/scala3/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ sections:
3636
- title: "API"
3737
description: "Scala 3 の全バージョンのAPIドキュメント"
3838
icon: "fa fa-file-text"
39-
link: https://dotty.epfl.ch/api/index.html
39+
link: https://scala-lang.org/api/3.x/
4040
- title: "Language Reference"
4141
description: "Scala 3 の言語仕様"
4242
icon: "fa fa-book"

_overviews/scala3-book/first-look-at-types.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,5 +276,5 @@ Alternatives to `null` are discussed in the [Functional Programming chapter][fp]
276276
[matchable]: {{ site.scala3ref }}/other-new-features/matchable.html
277277
[interpolation]: {% link _overviews/core/string-interpolation.md %}
278278
[fp]: {% link _overviews/scala3-book/fp-intro.md %}
279-
[option-api]: https://dotty.epfl.ch/api/scala/Option.html
279+
[option-api]: https://scala-lang.org/api/3.x/scala/Option.html
280280
[safe-null]: {{ site.scala3ref }}/other-new-features/explicit-nulls.html

_overviews/scala3-book/taste-collections.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,5 +114,5 @@ See the [Reference documentation][reference] for more tuple details.
114114

115115

116116
[collections]: {% link _overviews/scala3-book/collections-intro.md %}
117-
[api]: https://dotty.epfl.ch/api/index.html
117+
[api]: https://scala-lang.org/api/3.x/
118118
[reference]: {{ site.scala3ref }}/overview.html

_overviews/scala3-macros/tutorial/compiletime.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,4 +72,4 @@ On the other hand, `summonInline` will summon after inlining if the call is not
7272
*Coming soon*
7373

7474

75-
[compiletime-api]: https://dotty.epfl.ch/api/scala/compiletime.html
75+
[compiletime-api]: https://scala-lang.org/api/3.x/scala/compiletime.html

_overviews/scala3-macros/tutorial/reflection.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,9 @@ the types in the API. For each type `Foo` in the tree:
5050
- the trait `FooModule` contains the static methods available on the object `Foo`. Most notably, constructors (`apply/copy`) and the `unapply` method which provides the extractor(s) required for pattern matching.
5151
- For all types `Upper` such that `Foo <: Upper`, the methods defined in `UpperMethods` are available on `Foo` as well.
5252

53-
For example [`TypeBounds`](https://dotty.epfl.ch/api/scala/quoted/Quotes$reflectModule.html#TypeBounds-0), a subtype of `TypeRepr`, represents a type tree of the form `T >: L <: U`: a type `T` which is a super type of `L`
54-
and a subtype of `U`. In [`TypeBoundsMethods`](https://dotty.epfl.ch/api/scala/quoted/Quotes$reflectModule$TypeBoundsMethods.html), you will find the methods `low` and `hi`, which allow you to access the
55-
representations of `L` and `U`. In [`TypeBoundsModule`](https://dotty.epfl.ch/api/scala/quoted/Quotes$reflectModule$TypeBoundsModule.html), you will find the `unapply` method, which allows you to write:
53+
For example [`TypeBounds`](https://scala-lang.org/api/3.x/scala/quoted/Quotes$reflectModule.html#TypeBounds-0), a subtype of `TypeRepr`, represents a type tree of the form `T >: L <: U`: a type `T` which is a super type of `L`
54+
and a subtype of `U`. In [`TypeBoundsMethods`](https://scala-lang.org/api/3.x/scala/quoted/Quotes$reflectModule$TypeBoundsMethods.html), you will find the methods `low` and `hi`, which allow you to access the
55+
representations of `L` and `U`. In [`TypeBoundsModule`](https://scala-lang.org/api/3.x/scala/quoted/Quotes$reflectModule$TypeBoundsModule.html), you will find the `unapply` method, which allows you to write:
5656

5757
```scala
5858
def f(tpe: TypeRepr) =
@@ -121,7 +121,7 @@ In addition `Symbol` exposes and is used by many useful methods. For example:
121121
- `TypeRepr.baseClasses` returns the list of symbols of classes extended by a type.
122122
- `Symbol.pos` gives you access to the position where the symbol is defined, the source code of the definition
123123
and even the filename where the symbol is defined.
124-
- and many useful others that you can find in [`SymbolMethods`](https://dotty.epfl.ch/api/scala/quoted/Quotes$reflectModule$SymbolMethods.html)
124+
- and many useful others that you can find in [`SymbolMethods`](https://scala-lang.org/api/3.x/scala/quoted/Quotes$reflectModule$SymbolMethods.html)
125125

126126
### To Symbol and back
127127

@@ -230,6 +230,6 @@ We can make this printer the default if needed
230230
*Coming soon*
231231

232232
[tasty inspection]: {{ site.scala3ref }}/metaprogramming/tasty-inspect.html
233-
[reflection doc]: https://dotty.epfl.ch/api/scala/quoted/Quotes$reflectModule.html?query=trait%20reflectModule
233+
[reflection doc]: https://scala-lang.org/api/3.x/scala/quoted/Quotes$reflectModule.html
234234

235235
[best practices]: {% link _overviews/scala3-macros/best-practices.md %}

_overviews/scala3-migration/scaladoc-settings-compatibility.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ This setting is a generalized form of the old settings for javadoc/scaladoc.
7171

7272
Example external mapping is:
7373
```
74-
-external-mappings:.*scala.*::scaladoc3::http://dotty.epfl.ch/api/,.*java.*::javadoc::https://docs.oracle.com/javase/8/docs/api/
74+
-external-mappings:.*scala.*::scaladoc3::https://scala-lang.org/api/3.x/,.*java.*::javadoc::https://docs.oracle.com/javase/8/docs/api/
7575
```
7676

7777
A mapping is of the form '\<regex>::\[scaladoc3|scaladoc|javadoc]::\<path>'. You can supply several mappings, separated by commas, as shown in the example.

_scala3-reference/changed-features/main-functions.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ The Scala compiler generates a program from a `@main` method `f` as follows:
5959
- The class has a static method `main` with the usual signature. It takes an `Array[String]`
6060
as argument and returns `Unit`.
6161
- The generated `main` method calls method `f` with arguments converted using
62-
methods in the [`scala.util.CommandLineParser`](https://dotty.epfl.ch/api/scala/util/CommandLineParser$.html) object.
62+
methods in the [`scala.util.CommandLineParser`](https://scala-lang.org/api/3.x/scala/util/CommandLineParser$.html) object.
6363

6464
For instance, the `happyBirthDay` method above would generate additional code equivalent to the following class:
6565

@@ -87,5 +87,5 @@ object happyBirthday extends App:
8787
...
8888
```
8989

90-
The previous functionality of `App`, which relied on the "magic" [`DelayedInit`]({% link _scala3-reference/dropped-features/delayed-init.md %}) trait, is no longer available. [`App`](https://dotty.epfl.ch/api/scala/App.html) still exists in limited form for now, but it does not support command line arguments and will be deprecated in the future. If programs need to cross-build
90+
The previous functionality of `App`, which relied on the "magic" [`DelayedInit`]({% link _scala3-reference/dropped-features/delayed-init.md %}) trait, is no longer available. [`App`](https://scala-lang.org/api/3.x/scala/App.html) still exists in limited form for now, but it does not support command line arguments and will be deprecated in the future. If programs need to cross-build
9191
between Scala 2 and Scala 3, it is recommended to use an explicit `main` method with an `Array[String]` argument instead.

_scala3-reference/contextual/derivation-macro.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ One additional difference with the body of `derived` here as opposed to the one
9898
with `inline` is that with macros we need to synthesize the body of the code during the
9999
macro-expansion time. That is the rationale behind the `eqProductBody` function.
100100
Assuming that we calculate the equality of two `Person`s defined with a case
101-
class that holds a name of type [`String`](https://dotty.epfl.ch/api/scala/Predef$.html#String)
101+
class that holds a name of type [`String`](https://scala-lang.org/api/3.x/scala/Predef$.html#String-0)
102102
and an age of type `Int`, the equality check we want to generate is the following:
103103

104104
```scala

0 commit comments

Comments
 (0)