From 1cf66d57f293c07c94f2ceeac9200d68664f18fb Mon Sep 17 00:00:00 2001 From: Zhicheng Wang Date: Tue, 30 Oct 2018 10:26:25 +0800 Subject: [PATCH] fix: point to angular-cn repo --- aio/tools/transforms/templates/lib/githubLinks.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/aio/tools/transforms/templates/lib/githubLinks.html b/aio/tools/transforms/templates/lib/githubLinks.html index b2ff267efd..25190e59eb 100644 --- a/aio/tools/transforms/templates/lib/githubLinks.html +++ b/aio/tools/transforms/templates/lib/githubLinks.html @@ -3,11 +3,11 @@ {%- endmacro %} {% macro githubViewHref(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.realProjectRelativePath $}#L{$ doc.startingLine + 1 $}-L{$ doc.endingLine + 1 $} +https://github.com/anguluar/angular-cn/tree/{$ versionInfo.currentVersion.isSnapshot and versionInfo.currentVersion.SHA or versionInfo.currentVersion.raw $}/packages/{$ doc.fileInfo.realProjectRelativePath $}#L{$ doc.startingLine + 1 $}-L{$ doc.endingLine + 1 $} {%- endmacro %} {% macro githubEditHref(doc, versionInfo) -%} -https://github.com/{$ versionInfo.gitRepoInfo.owner $}/{$ versionInfo.gitRepoInfo.repo $}/edit/master{$ '/packages' if doc.docType !== 'content' $}/{$ projectRelativePath(doc.fileInfo) $}?message=docs +https://github.com/angular/angular-cn/edit/aio{$ '/packages' if doc.docType !== 'content' $}/{$ projectRelativePath(doc.fileInfo) $}?message=docs {%- if doc.moduleDoc %}({$ doc.moduleDoc.id.split('/')[0] $}) {%- elseif doc.docType === 'module' %}({$ doc.id.split('/')[0] $}) {%- elseif doc.docType === 'content' %} @@ -16,11 +16,11 @@ https://github.com/{$ versionInfo.gitRepoInfo.owner $}/{$ versionInfo.gitRepoInf {%- endmacro %} {% macro githubEditLink(doc, versionInfo) -%} - + {%- endmacro %} {% macro githubViewLink(doc, versionInfo) -%} - + {%- endmacro %} {% macro githubLinks(doc, versionInfo) -%}