chore(doc-gen): improve github links to point to the correct tagged URL
Closes #1994
This commit is contained in:
3
docs/dgeni-package/templates/lib/githubLinks.html
Normal file
3
docs/dgeni-package/templates/lib/githubLinks.html
Normal file
@ -0,0 +1,3 @@
|
||||
{% macro githubViewLink(doc) -%}
|
||||
<a href="https://github.com/{$ versionInfo.gitRepoInfo.owner $}/{$ versionInfo.gitRepoInfo.repo $}/tree/{$ versionInfo.currentVersion.isSnapshot and 'master' or versionInfo.currentVersion.raw $}/modules/{$ doc.fileInfo.relativePath $}#L{$ doc.location.start.line+1 $}-L{$ doc.location.end.line+1 $}">
|
||||
{%- endmacro -%}
|
Reference in New Issue
Block a user