diff --git a/tools/api-builder/angular.io-package/templates/class.template.html b/tools/api-builder/angular.io-package/templates/class.template.html index 06785cc5fd..5320115240 100644 --- a/tools/api-builder/angular.io-package/templates/class.template.html +++ b/tools/api-builder/angular.io-package/templates/class.template.html @@ -140,6 +140,6 @@ div(layout="row" layout-xs="column" class="instance-members" class="row-margin n p(class="location-badge"). exported from {@link {$ doc.moduleDoc.id $} {$doc.moduleDoc.id $} }, - defined in {$ github.githubViewLink(doc) $} + defined in {$ github.githubViewLink(doc, versionInfo) $} {% endblock %} diff --git a/tools/api-builder/angular.io-package/templates/decorator.template.html b/tools/api-builder/angular.io-package/templates/decorator.template.html index 1303ef9cd9..1a915a5932 100644 --- a/tools/api-builder/angular.io-package/templates/decorator.template.html +++ b/tools/api-builder/angular.io-package/templates/decorator.template.html @@ -46,6 +46,6 @@ div(layout="row" layout-xs="column" class="metadata" class="row-margin ng-cloak" {% endif %} p.location-badge. - exported from {@link {$ doc.moduleDoc.id $} {$doc.moduleDoc.id $} } defined in {$ github.githubViewLink(doc) $} + exported from {@link {$ doc.moduleDoc.id $} {$doc.moduleDoc.id $} } defined in {$ github.githubViewLink(doc, versionInfo) $} {% endblock %} diff --git a/tools/api-builder/angular.io-package/templates/function.template.html b/tools/api-builder/angular.io-package/templates/function.template.html index 7cf1d85640..49c05f1c9a 100644 --- a/tools/api-builder/angular.io-package/templates/function.template.html +++ b/tools/api-builder/angular.io-package/templates/function.template.html @@ -26,6 +26,6 @@ div(layout="row" layout-xs="column" class="row-margin ng-cloak") {% endif %} p.location-badge. - exported from {@link {$ doc.moduleDoc.id $} {$doc.moduleDoc.id $} } defined in {$ github.githubViewLink(doc) $} + exported from {@link {$ doc.moduleDoc.id $} {$doc.moduleDoc.id $} } defined in {$ github.githubViewLink(doc, versionInfo) $} {% endblock %} \ No newline at end of file diff --git a/tools/api-builder/angular.io-package/templates/interface.template.html b/tools/api-builder/angular.io-package/templates/interface.template.html index 59d7ae7cc5..1567e4cf35 100644 --- a/tools/api-builder/angular.io-package/templates/interface.template.html +++ b/tools/api-builder/angular.io-package/templates/interface.template.html @@ -68,6 +68,6 @@ div(layout="row" layout-xs="column" class="instance-members" class="row-margin n p(class="location-badge"). exported from {@link {$ doc.moduleDoc.id $} {$doc.moduleDoc.id $} }, - defined in {$ github.githubViewLink(doc) $} + defined in {$ github.githubViewLink(doc, versionInfo) $} {% endblock %} diff --git a/tools/api-builder/angular.io-package/templates/lib/githubLinks.html b/tools/api-builder/angular.io-package/templates/lib/githubLinks.html index 36ec6d0576..53d5132765 100644 --- a/tools/api-builder/angular.io-package/templates/lib/githubLinks.html +++ b/tools/api-builder/angular.io-package/templates/lib/githubLinks.html @@ -1,7 +1,7 @@ -{% macro githubHref(doc) -%} +{% macro githubHref(doc, versionInfo) -%} 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 $} {%- endmacro %} -{% macro githubViewLink(doc) -%} - {$ doc.fileInfo.projectRelativePath $} +{% macro githubViewLink(doc, versionInfo) -%} + {$ doc.fileInfo.projectRelativePath $} {%- endmacro %} diff --git a/tools/api-builder/angular.io-package/templates/module.template.html b/tools/api-builder/angular.io-package/templates/module.template.html index d047e67fb1..7f19dd44c5 100644 --- a/tools/api-builder/angular.io-package/templates/module.template.html +++ b/tools/api-builder/angular.io-package/templates/module.template.html @@ -3,7 +3,7 @@ {% block body -%} include {$ relativePath(doc.path, '_util-fns') $} p.location-badge. - defined in {$ github.githubViewLink(doc) $} + defined in {$ github.githubViewLink(doc, versionInfo) $} ul {% for page in doc.childPages -%} diff --git a/tools/api-builder/angular.io-package/templates/overview-dump.template.html b/tools/api-builder/angular.io-package/templates/overview-dump.template.html index e02c70adff..86e1b72e0e 100644 --- a/tools/api-builder/angular.io-package/templates/overview-dump.template.html +++ b/tools/api-builder/angular.io-package/templates/overview-dump.template.html @@ -47,20 +47,20 @@ {% for export in module.exports %}
{$ export.docType $} {$ export.name $}
{$ export.constructorDoc.name $}{$ params.paramList(export.constructorDoc.params) $}
{$ member.name $}{$ params.paramList(member.params) $}
defined in {$ github.githubViewLink(doc) $}
+defined in {$ github.githubViewLink(doc, versionInfo) $}
{$ doc.description | marked $}
{% if doc.exports.length %}