aboutsummaryrefslogtreecommitdiff
path: root/sbt-bridge
diff options
context:
space:
mode:
authorFelix Mulder <felix.mulder@gmail.com>2017-01-31 10:02:15 +0100
committerFelix Mulder <felix.mulder@gmail.com>2017-01-31 14:35:43 +0100
commitfff42b78f1ef4dd4f6b51ebfd2ac8f39dca55c47 (patch)
treeac23fd6812de76bdcfd704c916894c3098c99478 /sbt-bridge
parent483ac5340db262adb5efcf747a97dc9f25bc0208 (diff)
downloaddotty-fff42b78f1ef4dd4f6b51ebfd2ac8f39dca55c47.tar.gz
dotty-fff42b78f1ef4dd4f6b51ebfd2ac8f39dca55c47.tar.bz2
dotty-fff42b78f1ef4dd4f6b51ebfd2ac8f39dca55c47.zip
Remove faulty dottydoc API
Diffstat (limited to 'sbt-bridge')
-rw-r--r--sbt-bridge/src/xsbt/ScaladocInterface.scala27
1 files changed, 8 insertions, 19 deletions
diff --git a/sbt-bridge/src/xsbt/ScaladocInterface.scala b/sbt-bridge/src/xsbt/ScaladocInterface.scala
index 15a9a84f4..1eae8374d 100644
--- a/sbt-bridge/src/xsbt/ScaladocInterface.scala
+++ b/sbt-bridge/src/xsbt/ScaladocInterface.scala
@@ -3,8 +3,7 @@
*/
package xsbt
-import xsbti.Logger
-import dotty.tools.dottydoc.api.scala.Dottydoc
+import xsbti.{ Logger, Severity }
import java.net.URL
class ScaladocInterface {
@@ -12,23 +11,13 @@ class ScaladocInterface {
(new DottydocRunner(args, log, delegate)).run()
}
-class DottydocRunner(args: Array[String], log: Logger, delegate: xsbti.Reporter) extends Dottydoc {
- def run(): Unit = getOutputFolder(args).map { outputFolder =>
- val index = createIndex(args)
- val resources = getResources(args)
- val template = getTemplate(resources)
-
- // FIXME: temporarily disabled until new implementation in place
- //template.fold(writeJson(index, outputFolder)) { tpl =>
- // buildDocs(outputFolder, tpl, resources, index)
- //}
- } getOrElse {
- delegate.log(
- NoPosition,
- "No output folder set for API documentation (\"-d\" parameter should be passed to the documentation tool)",
- xsbti.Severity.Error
- )
- }
+class DottydocRunner(args: Array[String], log: Logger, delegate: xsbti.Reporter) {
+ def run(): Unit = delegate.log(
+ NoPosition,
+ """|The dotty sbt-bridge currently does not support doc generation directly
+ |via sbt. Please see the dotty documentation at dotty.epfl.ch""".stripMargin,
+ Severity.Error
+ )
private[this] val NoPosition = new xsbti.Position {
val line = xsbti.Maybe.nothing[Integer]