Skip to content

Commit 2856264

Browse files
committed
Fix links
1 parent a5bc166 commit 2856264

File tree

5 files changed

+5
-11
lines changed

5 files changed

+5
-11
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,5 +85,5 @@ object happyBirthday extends App:
8585
...
8686
```
8787

88-
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.md) 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
88+
The previous functionality of `App`, which relied on the "magic" [`DelayedInit`](../dropped-features/delayed-init.md) trait, is no longer available. [`App`](https://scala-lang.org/api/3.x/scala/App.md) 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
8989
between Scala 2 and Scala 3, it is recommended to use an explicit `main` method with an `Array[String]` argument instead.

docs/docs/reference/experimental/canthrow.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ In the _effects as capabilities_ model, an effect is expressed as an (implicit)
6060
```scala
6161
erased class CanThrow[-E <: Exception]
6262
```
63-
This shows another experimental Scala feature: [erased definitions]({% link _scala3-reference/experimental/erased-defs.md %}). Roughly speaking, values of an erased class do not generate runtime code; they are erased before code generation. This means that all `CanThrow` capabilities are compile-time only artifacts; they do not have a runtime footprint.
63+
This shows another experimental Scala feature: [erased definitions](./erased-defs.md). Roughly speaking, values of an erased class do not generate runtime code; they are erased before code generation. This means that all `CanThrow` capabilities are compile-time only artifacts; they do not have a runtime footprint.
6464

6565
Now, if the compiler sees a `throw Exc()` construct where `Exc` is a checked exception, it will check that there is a capability of type `CanThrow[Exc]` that can be summoned as a given. It's a compile-time error if that's not the case.
6666

docs/docs/reference/other-new-features/trait-parameters.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ class E extends Greeting("Bob"), FormalGreeting
5656
### Traits With Context Parameters
5757

5858
This "explicit extension required" rule is relaxed if the missing trait contains only
59-
[context parameters]({% link _scala3-reference/contextual/using-clauses.md %}). In that case the trait reference is
59+
[context parameters](../contextual/using-clauses.md). In that case the trait reference is
6060
implicitly inserted as an additional parent with inferred arguments. For instance,
6161
here's a variant of greetings where the addressee is a context parameter of type
6262
`ImpliedName`:

docs/docs/usage/scaladoc/settings.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ compile - Enables snippet checking.
157157
nocompile - Disables snippet checking.
158158
fail - Enables snippet checking, asserts that snippet doesn't compile.
159159

160-
The fail flag comes in handy for snippets that present that some action would eventually fail during compilation, e. g. [Opaques page]({% link _scala3-reference/other-new-features/opaques.md %})
160+
The fail flag comes in handy for snippets that present that some action would eventually fail during compilation, e. g. [Opaques page](../../reference/other-new-features/opaques.md)
161161

162162
Example usage:
163163

scaladoc/src/dotty/tools/scaladoc/site/templates.scala

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -105,14 +105,8 @@ case class TemplateFile(
105105
// Library requires mutable maps..
106106
val mutableProperties = new JHashMap(ctx.properties.transform((_, v) => asJavaElement(v)).asJava)
107107

108-
// Register escaping {% link ... %} in markdown
109-
val tag = new Tag("link"):
110-
override def render(context: TemplateContext, nodes: Array[? <: LNode]): Object =
111-
val link = super.asString(nodes(0).render(context))
112-
s"{% link $link %}"
113-
114108
val rendered = ssctx.args.projectFormat match
115-
case "html" => Template.parse(this.rawCode).`with`(tag).render(mutableProperties)
109+
case "html" => Template.parse(this.rawCode).render(mutableProperties)
116110
case "md" => this.rawCode
117111

118112
// We want to render markdown only if next template is html

0 commit comments

Comments
 (0)