File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -1839,7 +1839,8 @@ object ScaladocConfigs {
18391839 .add(DocRootContent (docRootFile.toString))
18401840 .add(CommentSyntax (List (
18411841 s " ${dottyLibRoot}=markdown " ,
1842- s " ${stdLibRoot}=wiki "
1842+ s " ${stdLibRoot}=wiki " ,
1843+ " wiki"
18431844 )))
18441845 .add(VersionsDictionaryUrl (" https://scala-lang.org/api/versions.json" ))
18451846 .add(DocumentSyntheticTypes (true ))
Original file line number Diff line number Diff line change @@ -17,10 +17,14 @@ object CommentSyntax:
1717 val default = CommentSyntax .Markdown
1818
1919case class CommentSyntaxArgs (csFormats : PathBased [CommentSyntax ]):
20+ val defaultSyntax = csFormats.get(csFormats.projectRoot)
21+ .map(_.elem)
22+ .getOrElse(CommentSyntax .default)
23+
2024 def get (path : Option [Path ]): CommentSyntax =
2125 path
2226 .flatMap(p => csFormats.get(p).map(_.elem))
23- .getOrElse(CommentSyntax .default )
27+ .getOrElse(defaultSyntax )
2428
2529object CommentSyntaxArgs :
2630 val usage =
@@ -52,4 +56,4 @@ object CommentSyntaxArgs:
5256 )
5357 CommentSyntaxArgs (res)
5458 }
55- }
59+ }
You can’t perform that action at this time.
0 commit comments