Define homomorphicTypeDocMdReference using typeDocName
Clarification and motivation
Sometimes we have several types with the same name, in which case we assign different typeDocName
to them. E. g. if we have Foo.Bar.Dog
and Foo.Baz.Dog
we will likely have Bar Dog
and Baz Dog
in typeDocName
definitions (instead of automatically generated Dog
and Dog
).
However, by default typeDocMdReference
will refer to both types are Dog
rather than Bar Dog
and Baz Dog
because it uses showtype
. Usually that's not what we want. I think it's more appropriate to build references based on typeDocName
.
Acceptance criteria
homomorphicTypeDocMdReference
builds reference based on typeDocName
, i. e. if it typeDocName
is Bar Dog
the reference should be Bar-Dog
.