diff --git a/docs/_docs/index.md b/docs/_docs/index.md index 8fe7ce938186..839d14d16308 100644 --- a/docs/_docs/index.md +++ b/docs/_docs/index.md @@ -1,5 +1,6 @@ --- layout: doc-page +redirectFrom: docs/index.html --- Dotty is the project name for technologies that are considered for inclusion in Scala 3. Scala has diff --git a/docs/sidebar.yml b/docs/sidebar.yml index 3322200acc32..101de48b79bf 100644 --- a/docs/sidebar.yml +++ b/docs/sidebar.yml @@ -1,6 +1,7 @@ index: index.md subsection: - title: Usage + directory: docs/usage subsection: - page: usage/sbt-projects.md - page: usage/ide-support.md @@ -15,6 +16,7 @@ subsection: - page: usage/scaladoc/site-versioning.md - page: usage/scaladoc/static-site.md - title: Reference + directory: docs/reference subsection: - page: reference/overview.md - title: New Types @@ -154,6 +156,7 @@ subsection: - page: reference/soft-modifier.md - page: reference/features-classification.md - title: Contributing + directory: docs/contributing subsection: - page: contributing/contribute-knowledge.md - page: contributing/getting-started.md @@ -171,6 +174,7 @@ subsection: - page: contributing/procedures/release.md - page: contributing/procedures/vulpix.md - title: Internals + directory: docs/internals subsection: - page: internals/backend.md - page: internals/classpaths.md diff --git a/scaladoc/src/dotty/tools/scaladoc/site/common.scala b/scaladoc/src/dotty/tools/scaladoc/site/common.scala index e409fe4ae636..e93a5a62cb63 100644 --- a/scaladoc/src/dotty/tools/scaladoc/site/common.scala +++ b/scaladoc/src/dotty/tools/scaladoc/site/common.scala @@ -18,7 +18,7 @@ import com.vladsch.flexmark.formatter.Formatter import scala.collection.JavaConverters._ -val docsRootDRI: DRI = DRI(location = "docs/index", symbolUUID = staticFileSymbolUUID) +val docsRootDRI: DRI = DRI(location = "_docs/index", symbolUUID = staticFileSymbolUUID) val apiPageDRI: DRI = DRI(location = "api/index") def defaultMarkdownOptions(using ctx: StaticSiteContext): DataHolder =