Currently it will generate a link to the source code. Here it is where it is in the templates:
https://github.com/TypeStrong/typedoc-default-themes/blob/master/src/default/partials/member.sources.hbs
I'm generating documentation for end users of a module but it's not necessary for them to have links back to our GitHub repos.
Add an option to typedoc like --hideSources that will hide it.
Currently it is possible create a fork of the template to hide it if it's really needed.
I wonder if you can use this plugin to unset the URL. The template is able to handle missing URLs.
Thank you!
While it still has the link, it at least removes the URL to the GitHub repos. It's an imperfect solution but without wanting to maintain a fork of a template it is acceptable for right now. It may also be possible to achieve it by submitting a PR to that plugin.
This is the sourcefile-map.json I used - the replace value must be a string but an empty string tries to link to still link to the GH page. Using a hash tag it won't try to load anything although the link is still clickable.
[
{
"pattern": "^.*$",
"replace": "#"
}
]
Please reopen and add a official option to hide defined in <link>.
Yes please do... we have to customize the theme only for this reason, and now found that we got broken search because we forgot to update the theme when updating Typedoc...
Update: we found the option disableSources. It hides the "defined in" section.
Most helpful comment
Please reopen and add a official option to hide
defined in <link>.