From 33df5cd0d4c64a11933471b20c714d64a4878476 Mon Sep 17 00:00:00 2001 From: Andrzej Ratajczak Date: Thu, 27 May 2021 15:48:57 +0200 Subject: [PATCH] Fix dead links for docs and add simple test for sourcelinks --- docs/docs/contributing/getting-started.md | 6 +++--- docs/docs/internals/syntax.md | 2 +- project/Build.scala | 3 ++- .../dotty/tools/scaladoc/source-links/RemoteLinksTest.scala | 4 ++++ 4 files changed, 10 insertions(+), 5 deletions(-) diff --git a/docs/docs/contributing/getting-started.md b/docs/docs/contributing/getting-started.md index 06981d0b0663..8b617c04f6c4 100644 --- a/docs/docs/contributing/getting-started.md +++ b/docs/docs/contributing/getting-started.md @@ -95,6 +95,6 @@ Before contributing to Dotty, we invite you to consult the Community ------------- The main development discussion channels are: -- [github.com/lampepfl/dotty/discussions](github.com/lampepfl/dotty/discussions) -- [contributors.scala-lang.org](contributors.scala-lang.org) -- [gitter.im/scala/contributors](gitter.im/scala/contributors) +- [github.com/lampepfl/dotty/discussions](https://github.com/lampepfl/dotty/discussions) +- [contributors.scala-lang.org](https://contributors.scala-lang.org) +- [gitter.im/scala/contributors](https://gitter.im/scala/contributors) diff --git a/docs/docs/internals/syntax.md b/docs/docs/internals/syntax.md index 5eb0b8f63289..949e65e9fbf2 100644 --- a/docs/docs/internals/syntax.md +++ b/docs/docs/internals/syntax.md @@ -126,7 +126,7 @@ type val var while with yield as derives end extension infix inline opaque open transparent using | * + - ``` -See the [separate section on soft keywords](./soft-modifier.md) for additional +See the [separate section on soft keywords](../reference/soft-modifier.md) for additional details on where a soft keyword is recognized. ## Context-free Syntax diff --git a/project/Build.scala b/project/Build.scala index d6e6176cc5cc..c0f25d09694c 100644 --- a/project/Build.scala +++ b/project/Build.scala @@ -1350,7 +1350,8 @@ object Build { "-comment-syntax", "wiki", "-siteroot", "docs", s"-source-links:docs=github://lampepfl/dotty/master#docs", - "-doc-root-content", docRootFile.toString + "-doc-root-content", docRootFile.toString, + "-Ydocument-synthetic-types" ) )) }.evaluated, diff --git a/scaladoc/test-source-links/dotty/tools/scaladoc/source-links/RemoteLinksTest.scala b/scaladoc/test-source-links/dotty/tools/scaladoc/source-links/RemoteLinksTest.scala index 9fc8bc7eb17a..68e559b9e318 100644 --- a/scaladoc/test-source-links/dotty/tools/scaladoc/source-links/RemoteLinksTest.scala +++ b/scaladoc/test-source-links/dotty/tools/scaladoc/source-links/RemoteLinksTest.scala @@ -29,6 +29,10 @@ class RemoteLinksTest: def scala3SourceLink = assertTrue(mtslAll.find((k, _) => k == "PolyFunction").isDefined) // source link to Scala3 stdlib class + @Test + def tastySourceLink = + assertTrue(mtslAll.find((k, _) => k == "TastyBuffer").isDefined) // source link to Scala3 tasty class + @Test def runTest = assertTrue(mtslAll.nonEmpty)