Skip to content

Commit 8554cf4

Browse files
committed
Add redirections from old URLs to avoid breakages
The Scala 3 reference documentation that used to be published to https://docs.scala-lang.org was using some different URLs than the URLs used by the documentation produced by Scaladoc. You can see here some examples of breakages: scala/docs.scala-lang@763d518 We add redirects from previously supported URLs to avoid such breakages in case there are links in the web that point to the old URLs.
1 parent 5675a8d commit 8554cf4

File tree

7 files changed

+7
-2
lines changed

7 files changed

+7
-2
lines changed

docs/_docs/reference/changed-features/changed-features.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
layout: index
33
title: "Other Changed Features"
44
movedTo: https://docs.scala-lang.org/scala3/reference/changed-features.html
5+
redirectFrom: /changed-features.html
56
---
67

78
The following pages document the features that have changed in Scala 3, compared to Scala 2.

docs/_docs/reference/contextual/contextual.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
layout: index
33
title: "Contextual Abstractions"
44
movedTo: https://docs.scala-lang.org/scala3/reference/contextual.html
5+
redirectFrom: /contextual.html
56
---
67

78
### Critique of the Status Quo

docs/_docs/reference/dropped-features/dropped-features.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
layout: index
33
title: "Dropped Features"
44
movedTo: https://docs.scala-lang.org/scala3/reference/dropped-features.html
5+
redirectFrom: /dropped-features.html
56
---
67

78
The following pages document the features of Scala 2 that have been dropped in Scala 3.

docs/_docs/reference/metaprogramming/metaprogramming.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
layout: index
33
title: "Metaprogramming"
44
movedTo: https://docs.scala-lang.org/scala3/reference/metaprogramming.html
5+
redirectFrom: /metaprogramming.html
56
---
67

78
The following pages introduce the redesign of metaprogramming in Scala. They

docs/_docs/reference/other-new-features/other-new-types.md renamed to docs/_docs/reference/other-new-features/other-new-features.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
layout: index
33
title: "Other New Features"
44
movedTo: https://docs.scala-lang.org/scala3/reference/other-new-features.html
5+
redirectFrom: /other-new-features.html
56
---
67

78
The following pages document new features of Scala 3.

docs/sidebar.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ subsection:
6969
- page: reference/metaprogramming/reflection.md
7070
- page: reference/metaprogramming/tasty-inspect.md
7171
- title: Other New Features
72-
index: reference/other-new-features/other-new-types.md
72+
index: reference/other-new-features/other-new-features.md
7373
subsection:
7474
- page: reference/other-new-features/trait-parameters.md
7575
- page: reference/other-new-features/transparent-traits.md

project/resources/referenceReplacements/sidebar.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ subsection:
4949
- page: reference/metaprogramming/reflection.md
5050
- page: reference/metaprogramming/tasty-inspect.md
5151
- title: Other New Features
52-
index: reference/other-new-features/other-new-types.md
52+
index: reference/other-new-features/other-new-features.md
5353
subsection:
5454
- page: reference/other-new-features/trait-parameters.md
5555
- page: reference/other-new-features/transparent-traits.md

0 commit comments

Comments
 (0)