Skip to content

Commit 8e8ab0d

Browse files
committed
Fix scala#8769: change dottydoc root to docs/ subdirectory
Previously it defaulted to the project root which lead to various issues, notably it meant that the whope project ended up being copied in _site when running `sbt doc`, what's even more fun is that when I tried using sbt 1.4.0-RC1 this caused a compiler crash because it ended up trying to copy a socket file that sbt had created in `target/`. Usincs "docs/" like this still doesn't really make sense when multiple subprojects exist since we'll try using the same directory for all of them, but it's less worse than what we had before and it doesn't seem worth investing more time in dottydoc since it's getting replaced.
1 parent ce48f5a commit 8e8ab0d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/dotty/tools/dotc/config/ScalaSettings.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ class ScalaSettings extends Settings.SettingGroup {
184184
"-siteroot",
185185
"site root",
186186
"A directory containing static files from which to generate documentation.",
187-
sys.props("user.dir")
187+
"./docs"
188188
)
189189

190190

0 commit comments

Comments
 (0)