diff --git a/docs/_docs/reference/other-new-features/toplevel-definitions.md b/docs/_docs/reference/other-new-features/toplevel-definitions.md index b1793bd1941c..29da270729cb 100644 --- a/docs/_docs/reference/other-new-features/toplevel-definitions.md +++ b/docs/_docs/reference/other-new-features/toplevel-definitions.md @@ -1,7 +1,7 @@ --- layout: doc-page title: "Toplevel Definitions" -nightlyOf: https://docs.scala-lang.org/scala3/reference/dropped-features/toplevel-definitions.html +nightlyOf: https://docs.scala-lang.org/scala3/reference/other-new-features/toplevel-definitions.html --- All kind of definitions can now be written at the top-level. diff --git a/docs/sidebar.yml b/docs/sidebar.yml index aecd974326ab..5d6538d8494e 100644 --- a/docs/sidebar.yml +++ b/docs/sidebar.yml @@ -88,6 +88,7 @@ subsection: - page: reference/other-new-features/experimental-defs.md - page: reference/other-new-features/preview-defs.md - page: reference/other-new-features/binary-literals.md + - page: reference/other-new-features/toplevel-definitions.md - title: Other Changed Features directory: changed-features index: reference/changed-features/changed-features.md diff --git a/project/resources/referenceReplacements/sidebar.yml b/project/resources/referenceReplacements/sidebar.yml index 2e84b0b5e433..6f0bc3caf585 100644 --- a/project/resources/referenceReplacements/sidebar.yml +++ b/project/resources/referenceReplacements/sidebar.yml @@ -67,6 +67,7 @@ subsection: - page: reference/other-new-features/export.md - page: reference/other-new-features/opaques.md - page: reference/other-new-features/opaques-details.md + - page: reference/other-new-features/named-tuples.md - page: reference/other-new-features/open-classes.md - page: reference/other-new-features/parameter-untupling.md - page: reference/other-new-features/parameter-untupling-spec.md @@ -80,7 +81,9 @@ subsection: - page: reference/other-new-features/safe-initialization.md - page: reference/other-new-features/type-test.md - page: reference/other-new-features/experimental-defs.md + - page: reference/other-new-features/preview-defs.md - page: reference/other-new-features/binary-literals.md + - page: reference/other-new-features/toplevel-definitions.md - title: Other Changed Features directory: changed-features index: reference/changed-features/changed-features.md @@ -118,7 +121,6 @@ subsection: - page: reference/dropped-features/type-projection.md - page: reference/dropped-features/do-while.md - page: reference/dropped-features/procedure-syntax.md - - page: reference/dropped-features/package-objects.md - page: reference/dropped-features/early-initializers.md - page: reference/dropped-features/class-shadowing.md - page: reference/dropped-features/class-shadowing-spec.md @@ -133,6 +135,11 @@ subsection: - page: reference/dropped-features/nonlocal-returns.md - page: reference/dropped-features/this-qualifier.md - page: reference/dropped-features/wildcard-init.md + - title: Preview Features + directory: preview + index: reference/preview/overview.md + subsection: + - page: reference/preview/better-fors.md - title: Experimental Features directory: experimental index: reference/experimental/overview.md @@ -149,8 +156,15 @@ subsection: - page: reference/experimental/numeric-literals.md - page: reference/experimental/explicit-nulls.md - page: reference/experimental/main-annotation.md + - page: reference/experimental/into-modifier.md - page: reference/experimental/cc.md + - page: reference/experimental/purefuns.md - page: reference/experimental/tupled-function.md + - page: reference/experimental/modularity.md + - page: reference/experimental/typeclasses.md + - page: reference/experimental/runtimeChecked.md + - page: reference/experimental/unrolled-defs.md + - page: reference/experimental/package-object-values.md - page: reference/syntax.md - title: Language Versions index: reference/language-versions/language-versions.md diff --git a/project/scripts/expected-links/reference-expected-links.txt b/project/scripts/expected-links/reference-expected-links.txt index 8be7dba8d4d0..14a227984936 100644 --- a/project/scripts/expected-links/reference-expected-links.txt +++ b/project/scripts/expected-links/reference-expected-links.txt @@ -41,6 +41,8 @@ ./contextual/right-associative-extension-methods.html ./contextual/type-classes.html ./contextual/using-clauses.html +./docs/reference/experimental/package-object-values.html +./docs/reference/other-new-features/into-modifier.html ./docs/reference/other-new-features/named-typeargs.html ./dropped-features.html ./dropped-features/auto-apply.html @@ -54,7 +56,6 @@ ./dropped-features/limit22.html ./dropped-features/macros.html ./dropped-features/nonlocal-returns.html -./dropped-features/package-objects.html ./dropped-features/procedure-syntax.html ./dropped-features/symlits.html ./dropped-features/this-qualifier.html @@ -74,12 +75,19 @@ ./experimental/explicit-nulls.html ./experimental/fewer-braces.html ./experimental/index.html +./experimental/into-modifier.html ./experimental/main-annotation.html +./experimental/modularity.html ./experimental/named-typeargs-spec.html ./experimental/named-typeargs.html ./experimental/numeric-literals.html ./experimental/overview.html +./experimental/package-object-values.html +./experimental/purefuns.html +./experimental/runtimeChecked.html ./experimental/tupled-function.html +./experimental/typeclasses.html +./experimental/unrolled-defs.html ./features-classification.html ./index.html ./language-versions/binary-compatibility.html @@ -116,17 +124,22 @@ ./other-new-features/index.html ./other-new-features/kind-polymorphism.html ./other-new-features/matchable.html +./other-new-features/named-tuples.html ./other-new-features/opaques-details.html ./other-new-features/opaques.html ./other-new-features/open-classes.html ./other-new-features/parameter-untupling-spec.html ./other-new-features/parameter-untupling.html +./other-new-features/preview-defs.html ./other-new-features/safe-initialization.html ./other-new-features/targetName.html ./other-new-features/threadUnsafe-annotation.html +./other-new-features/toplevel-definitions.html ./other-new-features/trait-parameters.html ./other-new-features/transparent-traits.html ./other-new-features/type-test.html ./overview.html +./preview/better-fors.html +./preview/index.html ./soft-modifier.html ./syntax.html