From 04f3a4a7a5ef3057374d766a813ac7523d6f6c83 Mon Sep 17 00:00:00 2001 From: Peter Bacon Darwin Date: Thu, 13 Jul 2017 13:36:30 +0100 Subject: [PATCH] build(aio): fix githubLinks line numbers The API docs have changed. The line numbers are now found in `startingLine` and `endingLine` properties rather than the `location` property, which moved into the `fileInfo` property anyway. --- aio/tools/transforms/templates/api/lib/githubLinks.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aio/tools/transforms/templates/api/lib/githubLinks.html b/aio/tools/transforms/templates/api/lib/githubLinks.html index c077673de2..1e1e290f94 100644 --- a/aio/tools/transforms/templates/api/lib/githubLinks.html +++ b/aio/tools/transforms/templates/api/lib/githubLinks.html @@ -1,5 +1,5 @@ {% 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 $}/packages/{$ doc.fileInfo.projectRelativePath $}#L{$ doc.location.start.line+1 $}-L{$ doc.location.end.line+1 $} +https://github.com/{$ versionInfo.gitRepoInfo.owner $}/{$ versionInfo.gitRepoInfo.repo $}/tree/{$ versionInfo.currentVersion.isSnapshot and versionInfo.currentVersion.SHA or versionInfo.currentVersion.raw $}/packages/{$ doc.fileInfo.projectRelativePath $}#L{$ doc.startingLine + 1 $}-L{$ doc.endingLine + 1 $} {%- endmacro %} {% macro githubViewLink(doc, versionInfo) -%}