From 5bb9f642180a27da33fa9d7a6e4b6b9b318f7209 Mon Sep 17 00:00:00 2001 From: Pete Bacon Darwin Date: Mon, 5 Mar 2018 11:36:40 +0000 Subject: [PATCH] fixup! feat(aio): allow template to position embedded ToC (#22565) PR Close #22565 --- aio/tools/transforms/templates/api/lib/githubLinks.html | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/aio/tools/transforms/templates/api/lib/githubLinks.html b/aio/tools/transforms/templates/api/lib/githubLinks.html index efba738914..1c13c59385 100644 --- a/aio/tools/transforms/templates/api/lib/githubLinks.html +++ b/aio/tools/transforms/templates/api/lib/githubLinks.html @@ -6,6 +6,7 @@ https://github.com/{$ versionInfo.gitRepoInfo.owner $}/{$ versionInfo.gitRepoInf {% macro githubEditHref(doc, versionInfo) -%} https://github.com/{$ versionInfo.gitRepoInfo.owner $}/{$ versionInfo.gitRepoInfo.repo $}/edit/master/packages/{$ doc.fileInfo.realProjectRelativePath $}?message=docs( {%- if doc.moduleDoc %}{$ doc.moduleDoc.id.split('/')[0] $} - {%- if doc.docType === 'module' %}{$ doc.id.split('/')[0] $} - {%- else %}...{%- endif%})%3A%20describe%20your%20change...#L{$ doc.startingLine + 1 $}-L{$ doc.endingLine + 1 $} + {%- elseif doc.docType === 'module' %}{$ doc.id.split('/')[0] $} + {%- else %}...{%- endif -%} +)%3A%20describe%20your%20change...#L{$ doc.startingLine + 1 $}-L{$ doc.endingLine + 1 $} {%- endmacro %} \ No newline at end of file