File tree 2 files changed +8
-3
lines changed
2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -1839,7 +1839,8 @@ object ScaladocConfigs {
1839
1839
.add(DocRootContent (docRootFile.toString))
1840
1840
.add(CommentSyntax (List (
1841
1841
s " ${dottyLibRoot}=markdown " ,
1842
- s " ${stdLibRoot}=wiki "
1842
+ s " ${stdLibRoot}=wiki " ,
1843
+ " wiki"
1843
1844
)))
1844
1845
.add(VersionsDictionaryUrl (" https://scala-lang.org/api/versions.json" ))
1845
1846
.add(DocumentSyntheticTypes (true ))
Original file line number Diff line number Diff line change @@ -17,10 +17,14 @@ object CommentSyntax:
17
17
val default = CommentSyntax .Markdown
18
18
19
19
case class CommentSyntaxArgs (csFormats : PathBased [CommentSyntax ]):
20
+ val defaultSyntax = csFormats.get(csFormats.projectRoot)
21
+ .map(_.elem)
22
+ .getOrElse(CommentSyntax .default)
23
+
20
24
def get (path : Option [Path ]): CommentSyntax =
21
25
path
22
26
.flatMap(p => csFormats.get(p).map(_.elem))
23
- .getOrElse(CommentSyntax .default )
27
+ .getOrElse(defaultSyntax )
24
28
25
29
object CommentSyntaxArgs :
26
30
val usage =
@@ -52,4 +56,4 @@ object CommentSyntaxArgs:
52
56
)
53
57
CommentSyntaxArgs (res)
54
58
}
55
- }
59
+ }
You can’t perform that action at this time.
0 commit comments