Skip to content

Commit 32012f7

Browse files
Merge pull request #6811 from sideeffffect/doc-typo-fix
Make links relative and to `.md` (instead of `.html`)
2 parents 83cb7e7 + ebc1b42 commit 32012f7

Some content is hidden

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

50 files changed

+163
-163
lines changed

docs/docs/reference/changed-features/eta-expansion.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,5 +38,5 @@ conflict with eta expansion. Automatic `()` insertion is
3838
[limited](../dropped-features/auto-apply.md) in Dotty, but the fundamental ambiguity
3939
remains.
4040

41-
[More details](eta-expansion-spec.html)
41+
[More details](eta-expansion-spec.md)
4242

docs/docs/reference/changed-features/implicit-conversions-spec.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ implicit val myConverter: Conversion[Int, String] = _.toString
8181
```
8282

8383
Note that implicit conversions are also affected by the [changes to
84-
implicit resolution](implicit-resolution.html) between Scala 2 and
84+
implicit resolution](implicit-resolution.md) between Scala 2 and
8585
Scala 3.
8686

8787
## Motivation for the changes
@@ -111,12 +111,12 @@ to `Conversion`.
111111

112112
For the migration of implicit conversions that are affected by the
113113
changes to implicit resolution, refer to the [Changes in Implicit
114-
Resolution](implicit-resolution.html) for more information.
114+
Resolution](implicit-resolution.md) for more information.
115115

116116
## Reference
117117

118118
For more information about implicit resolution, see [Changes in
119-
Implicit Resolution](implicit-resolution.html).
119+
Implicit Resolution](implicit-resolution.md).
120120
Other details are available in
121121
[PR #2065](https://github.com/lampepfl/dotty/pull/2065)
122122

docs/docs/reference/changed-features/implicit-conversions.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,4 +61,4 @@ implicitly[Ordering[A]] // Ok, will use the implicit conversion from
6161
// `A` to `Int` and the `Ordering` for `Int`.
6262
```
6363

64-
[More details](implicit-conversions-spec.html)
64+
[More details](implicit-conversions-spec.md)

docs/docs/reference/changed-features/overload-resolution.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ resolution yields several competing alternatives when `n >= 1` parameter lists a
4141
into account, then resolution re-tried using `n + 1` argument lists.
4242

4343
This change is motivated by the new language feature [extension
44-
methods](../contextual/extension-methods.html), where emerges the need to do
44+
methods](../contextual/extension-methods.md), where emerges the need to do
4545
overload resolution based on additional argument blocks.
4646

4747
## Parameter Types of Function Values

docs/docs/reference/changed-features/structural-types.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,4 +74,4 @@ differences.
7474
`ClassTag` indicating the method's formal parameter types. `Dynamic`
7575
comes with `updateDynamic`.
7676

77-
[More details](structural-types-spec.html)
77+
[More details](structural-types-spec.md)

docs/docs/reference/contextual/delegates.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ title: "Given Instances"
44
---
55

66
Given instances (or, simply, "givens") define "canonical" values of certain types
7-
that serve for synthesizing arguments to [given clauses](./given-clauses.html). Example:
7+
that serve for synthesizing arguments to [given clauses](./given-clauses.md). Example:
88

99
```scala
1010
trait Ord[T] {
@@ -34,7 +34,7 @@ This code defines a trait `Ord` with two given instances. `IntOrd` defines
3434
a given for the type `Ord[Int]` whereas `ListOrd[T]` defines givens
3535
for `Ord[List[T]]` for all types `T` that come with a given instance for `Ord[T]` themselves.
3636
The `given (ord: Ord[T])` clause in `ListOrd` defines an implicit parameter.
37-
Given clauses are further explained in the [next section](./given-clauses.html).
37+
Given clauses are further explained in the [next section](./given-clauses.md).
3838

3939
## Anonymous Given Instances
4040

@@ -74,7 +74,7 @@ If a `given` definition has type parameters or a given clause, a fresh instance
7474

7575
## Syntax
7676

77-
Here is the new syntax of given instances, seen as a delta from the [standard context free syntax of Scala 3](http://dotty.epfl.ch/docs/internals/syntax.html).
77+
Here is the new syntax of given instances, seen as a delta from the [standard context free syntax of Scala 3](../../internals/syntax.md).
7878
```
7979
TmplDef ::= ...
8080
| ‘given’ GivenDef

docs/docs/reference/contextual/extension-methods.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ As usual, type parameters of the extension method follow the defined method name
139139
### Syntax
140140

141141
The required syntax extension just adds one clause for extension methods relative
142-
to the [current syntax](https://github.com/lampepfl/dotty/blob/master/docs/docs/internals/syntax.md).
142+
to the [current syntax](../../internals/syntax.md).
143143
```
144144
DefSig ::= ...
145145
| ‘(’ DefParam ‘)’ [nl] id [DefTypeParamClause] DefParamClauses

docs/docs/reference/contextual/given-clauses.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ def the[T] given (x: T): x.type = x
9898

9999
## Syntax
100100

101-
Here is the new syntax of parameters and arguments seen as a delta from the [standard context free syntax of Scala 3](http://dotty.epfl.ch/docs/internals/syntax.html).
101+
Here is the new syntax of parameters and arguments seen as a delta from the [standard context free syntax of Scala 3](../../internals/syntax.md).
102102
```
103103
ClsParamClauses ::= ...
104104
| {ClsParamClause} {GivenClsParamClause}

docs/docs/reference/contextual/implicit-function-types-spec.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ itself a implicit function literal. This is analogous to the automatic
6565
insertion of `scala.Function0` around expressions in by-name argument position.
6666

6767
Implicit function types generalize to `N > 22` in the same way that function types do, see [the corresponding
68-
documentation](https://dotty.epfl.ch/docs/reference/dropped-features/limit22.html).
68+
documentation](../dropped-features/limit22.md).
6969

7070
## Examples
7171

docs/docs/reference/contextual/implicit-function-types.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -148,4 +148,4 @@ as the best possible code one could write by hand:
148148
For more info, see the [blog article](https://www.scala-lang.org/blog/2016/12/07/implicit-function-types.html),
149149
(which uses a different syntax that has been superseded).
150150

151-
[More details](./implicit-function-types-spec.html)
151+
[More details](./implicit-function-types-spec.md)
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
The contents of this page have [moved](./delegate-match.html).
1+
The contents of this page have [moved](./delegate-match.md).
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
The contents of this page have [moved](./import-delegate.html).
1+
The contents of this page have [moved](./import-delegate.md).
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
The contents of this page have [moved](./implicit-by-name-parameters.html).
1+
The contents of this page have [moved](./implicit-by-name-parameters.md).
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
The contents of this page have [moved](./given-clauses.html).
1+
The contents of this page have [moved](./given-clauses.md).
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
The contents of this page have [moved](./delegates.html).
1+
The contents of this page have [moved](./delegates.md).

docs/docs/reference/contextual/motivation.md

+12-12
Original file line numberDiff line numberDiff line change
@@ -47,25 +47,25 @@ Existing Scala programmers by and large have gotten used to the status quo and s
4747

4848
The following pages introduce a redesign of contextual abstractions in Scala. They introduce four fundamental changes:
4949

50-
1. [Given Instances](./delegates.html) are a new way to define basic terms that can be synthesized. They replace implicit definitions. The core principle of the proposal is that, rather than mixing the `implicit` modifier with a large number of features, we have a single way to define terms that can be synthesized for types.
50+
1. [Given Instances](./delegates.md) are a new way to define basic terms that can be synthesized. They replace implicit definitions. The core principle of the proposal is that, rather than mixing the `implicit` modifier with a large number of features, we have a single way to define terms that can be synthesized for types.
5151

52-
2. [Given Clauses](./given-clauses.html) are a new syntax for implicit _parameters_ and their _arguments_. Both are introduced with the same keyword, `given`. This unambiguously aligns parameters and arguments, solving a number of language warts. It also allows us to have several implicit parameter sections, and to have implicit parameters followed by normal ones.
52+
2. [Given Clauses](./given-clauses.md) are a new syntax for implicit _parameters_ and their _arguments_. Both are introduced with the same keyword, `given`. This unambiguously aligns parameters and arguments, solving a number of language warts. It also allows us to have several implicit parameter sections, and to have implicit parameters followed by normal ones.
5353

54-
3. [Given Imports](./import-delegate.html) are a new class of imports that specifically import given instances and nothing else. Given instances _must be_ imported with `import given`, a plain import will no longer bring them into scope.
54+
3. [Given Imports](./import-delegate.md) are a new class of imports that specifically import given instances and nothing else. Given instances _must be_ imported with `import given`, a plain import will no longer bring them into scope.
5555

56-
4. [Implicit Conversions](./conversions.html) are now expressed as given instances of a standard `Conversion` class. All other forms of implicit conversions will be phased out.
56+
4. [Implicit Conversions](./conversions.md) are now expressed as given instances of a standard `Conversion` class. All other forms of implicit conversions will be phased out.
5757

5858
This section also contains pages describing other language features that are related to context abstraction. These are:
5959

60-
- [Context Bounds](./context-bounds.html), which carry over unchanged.
61-
- [Extension Methods](./extension-methods.html) replace implicit classes in a way that integrates better with typeclasses.
62-
- [Implementing Typeclasses](./typeclasses.html) demonstrates how some common typeclasses can be implemented using the new constructs.
63-
- [Typeclass Derivation](./derivation.html) introduces constructs to automatically derive typeclass instances for ADTs.
64-
- [Multiversal Equality](./multiversal-equality.html) introduces a special typeclass
60+
- [Context Bounds](./context-bounds.md), which carry over unchanged.
61+
- [Extension Methods](./extension-methods.md) replace implicit classes in a way that integrates better with typeclasses.
62+
- [Implementing Typeclasses](./typeclasses.md) demonstrates how some common typeclasses can be implemented using the new constructs.
63+
- [Typeclass Derivation](./derivation.md) introduces constructs to automatically derive typeclass instances for ADTs.
64+
- [Multiversal Equality](./multiversal-equality.md) introduces a special typeclass
6565
to support type safe equality.
66-
- [Implicit Function Types](./implicit-function-types.html) provide a way to abstract over given clauses.
67-
- [Implicit By-Name Parameters](./implicit-by-name-parameters.html) are an essential tool to define recursive synthesized values without looping.
68-
- [Relationship with Scala 2 Implicits](./relationship-implicits.html) discusses the relationship between old-style implicits and new-style givens and how to migrate from one to the other.
66+
- [Implicit Function Types](./implicit-function-types.md) provide a way to abstract over given clauses.
67+
- [Implicit By-Name Parameters](./implicit-by-name-parameters.md) are an essential tool to define recursive synthesized values without looping.
68+
- [Relationship with Scala 2 Implicits](./relationship-implicits.md) discusses the relationship between old-style implicits and new-style givens and how to migrate from one to the other.
6969

7070
Overall, the new design achieves a better separation of term inference from the rest of the language: There is a single way to define given instances instead of a multitude of forms all taking an `implicit` modifier. There is a single way to introduce implicit parameters and arguments instead of conflating implicit with normal arguments. There is a separate way to import given instances that does not allow them to hide in a sea of normal imports. And there is a single way to define an implicit conversion which is clearly marked as such and does not require special syntax.
7171

docs/docs/reference/contextual/multiversal-equality.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ Instead of defining `Eql` instances directly, it is often more convenient to der
9494
```scala
9595
class Box[T](x: T) derives Eql
9696
```
97-
By the usual rules if [typeclass derivation](./derivation.html),
97+
By the usual rules if [typeclass derivation](./derivation.md),
9898
this generates the following `Eql` instance in the companion object of `Box`:
9999
```scala
100100
given [T, U] as Eql[Box[T], Box[U]] given Eql[T, U] = Eql.derived
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
The contents of this page have [moved](./implicit-function-types-spec.html).
1+
The contents of this page have [moved](./implicit-function-types-spec.md).
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
The contents of this page have [moved](./implicit-function-types.html).
1+
The contents of this page have [moved](./implicit-function-types.md).

docs/docs/reference/dropped-features/class-shadowing.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,4 @@ other, but classes in Scala cannot be overridden. To keep things clean
2424
(and its internal operations consistent) the Dotty compiler forces you
2525
to rename the inner classes so that their names are different.
2626

27-
[More details](./class-shadowing-spec.html)
27+
[More details](./class-shadowing-spec.md)

docs/docs/reference/dropped-features/weak-conformance.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,4 @@ Therefore, Dotty drops the general notion of weak conformance, and
3939
instead keeps one rule: `Int` literals are adapted to other numeric
4040
types if necessary.
4141

42-
[More details](weak-conformance-spec.html)
42+
[More details](weak-conformance-spec.md)

docs/docs/reference/enums/adts.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ enum Color(val rgb: Int) {
9797
### Syntax of Enums
9898

9999
Changes to the syntax fall in two categories: enum definitions and cases inside enums.
100-
The changes are specified below as deltas with respect to the Scala syntax given [here](http://dotty.epfl.ch/docs/internals/syntax.html)
100+
The changes are specified below as deltas with respect to the Scala syntax given [here](../../internals/syntax.md)
101101

102102
1. Enum definitions are defined as follows:
103103

0 commit comments

Comments
 (0)