Fix for missing type links in generated docs

Fixes #2068
Fix after @electrical changes

Fixes #2068