2016-09-14 02:50:02 -04:00
|
|
|
{% macro githubHref(doc, versionInfo) -%}
|
2016-05-19 15:56:06 -04:00
|
|
|
https://github.com/{$ versionInfo.gitRepoInfo.owner $}/{$ versionInfo.gitRepoInfo.repo $}/tree/{$ versionInfo.currentVersion.isSnapshot and versionInfo.currentVersion.SHA or versionInfo.currentVersion.raw $}/modules/{$ doc.fileInfo.projectRelativePath $}#L{$ doc.location.start.line+1 $}-L{$ doc.location.end.line+1 $}
|
2015-11-13 11:34:57 -05:00
|
|
|
{%- endmacro %}
|
|
|
|
|
2016-09-14 02:50:02 -04:00
|
|
|
{% macro githubViewLink(doc, versionInfo) -%}
|
|
|
|
<a href="{$ githubHref(doc, versionInfo) $}">{$ doc.fileInfo.projectRelativePath $}</a>
|
2016-09-08 16:32:21 -04:00
|
|
|
{%- endmacro %}
|