Skip to content

Commit c05d628

Browse files
committed
Change from absolute name to type name in link names
1 parent 5d6c15f commit c05d628

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

dottydoc/shared/src/main/scala/dotty/tools/dottydoc/model/factories.scala

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,11 @@ object factories {
7676
FunctionReference(args.init.map(expandTpe(_, Nil)), expandTpe(args.last))
7777
else if (defn.isTupleClass(cls))
7878
TupleReference(args.map(expandTpe(_, Nil)))
79-
else
80-
typeRef(tycon.show, params = args.map(expandTpe(_, Nil)))
79+
else {
80+
val query = tycon.show
81+
val name = query.split("\\.").last
82+
typeRef(name, query, params = args.map(expandTpe(_, Nil)))
83+
}
8184

8285
case ref @ RefinedType(parent, rn, info) =>
8386
expandTpe(parent) //FIXME: will be a refined HK, aka class Foo[X] { def bar: List[X] } or similar

0 commit comments

Comments
 (0)