File tree 1 file changed +4
-4
lines changed
doc-tool/src/dotty/tools/dottydoc/staticsite
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,10 @@ object MarkdownLinkVisitor {
14
14
new VisitHandler (classOf [Link ], new Visitor [Link ] with MemberLookup {
15
15
override def visit (node : Link ): Unit = {
16
16
val url = node.getUrl
17
- if (EntityLink .unapplySeq(url.toString).isDefined) {
17
+ if (url.endsWith(" .md" )) node.setUrl {
18
+ url.subSequence(0 , url.lastIndexOf('.' )).append(" .html" )
19
+ }
20
+ else if (EntityLink .unapplySeq(url.toString).isDefined) {
18
21
lookup(NonEntity , docs, url.toString).foreach { ent =>
19
22
val (path, suffix) = ent match {
20
23
case ent : Val => (ent.path.dropRight(1 ), " .html#" + ent.signature)
@@ -32,9 +35,6 @@ object MarkdownLinkVisitor {
32
35
}
33
36
}
34
37
}
35
- else if (url.endsWith(" .md" )) node.setUrl {
36
- url.subSequence(0 , url.lastIndexOf('.' )).append(" .html" )
37
- }
38
38
}
39
39
})
40
40
))
You can’t perform that action at this time.
0 commit comments