fixup! feat(aio): allow template to position embedded ToC (#22565)

PR Close #22565
This commit is contained in:
Pete Bacon Darwin 2018-03-05 11:36:40 +00:00 committed by Alex Eagle
parent 405d97431f
commit 5bb9f64218
1 changed files with 3 additions and 2 deletions

View File

@ -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 %}