aboutsummaryrefslogtreecommitdiff
path: root/src/dotty/tools/dotc/config/ScalaSettings.scala
diff options
context:
space:
mode:
authorFelix Mulder <felix.mulder@gmail.com>2016-08-11 17:18:14 +0200
committerFelix Mulder <felix.mulder@gmail.com>2016-08-19 15:37:34 +0200
commitbd7751924d9c145accf04b69e71621347d2b77f6 (patch)
tree961e90b8f9250589fb200648b05e3e4aa21d208a /src/dotty/tools/dotc/config/ScalaSettings.scala
parenta25207472c8b64beeb264f118ed1bb4f9a37418c (diff)
downloaddotty-bd7751924d9c145accf04b69e71621347d2b77f6.tar.gz
dotty-bd7751924d9c145accf04b69e71621347d2b77f6.tar.bz2
dotty-bd7751924d9c145accf04b69e71621347d2b77f6.zip
Implement working docs requiring manually specifying resources and template for html docs
Diffstat (limited to 'src/dotty/tools/dotc/config/ScalaSettings.scala')
-rw-r--r--src/dotty/tools/dotc/config/ScalaSettings.scala14
1 files changed, 10 insertions, 4 deletions
diff --git a/src/dotty/tools/dotc/config/ScalaSettings.scala b/src/dotty/tools/dotc/config/ScalaSettings.scala
index fa4059a96..5d5903584 100644
--- a/src/dotty/tools/dotc/config/ScalaSettings.scala
+++ b/src/dotty/tools/dotc/config/ScalaSettings.scala
@@ -197,8 +197,16 @@ class ScalaSettings extends Settings.SettingGroup {
val YpresentationReplay = StringSetting("-Ypresentation-replay", "file", "Replay presentation compiler events from file", "")
val YpresentationDelay = IntSetting("-Ypresentation-delay", "Wait number of ms after typing before starting typechecking", 0, 0 to 999)
- /** Dottydoc specific settings */
- val YDocNoWrite = BooleanSetting("-Ydoc-nowrite", "Doesn't write HTML files if set", false)
+ /** Doc specific settings */
+ val template = OptionSetting[String](
+ "-template",
+ "A mustache template for rendering each top-level entity in the API"
+ )
+
+ val resources = OptionSetting[String](
+ "-resources",
+ "A directory containing static resources needed for the API documentation"
+ )
val DocTitle = StringSetting (
"-Ydoc-title",
@@ -235,8 +243,6 @@ class ScalaSettings extends Settings.SettingGroup {
""
)
- val DocRecursive = BooleanSetting("-Ydoc-recursive", "Get all files from supplied directory")
-
//def DocUncompilableFiles(implicit ctx: Context) = DocUncompilable.value match {
// case "" => Nil
// case path => io.Directory(path).deepFiles.filter(_ hasExtension "scala").toList