Skip to content

Commit 9f9bf9b

Browse files
niklas-wortmannbenlesh
authored andcommittedJun 7, 2018
fix(docs): fix broken github links (#3802)
1 parent f40c2fb commit 9f9bf9b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎docs_app/tools/transforms/templates/api/lib/githubLinks.html

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{% macro githubViewHref(doc, versionInfo) -%}
2-
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 $}
2+
https://github.com/{$ versionInfo.gitRepoInfo.owner $}/{$ versionInfo.gitRepoInfo.repo $}/tree/{$ versionInfo.currentVersion.isSnapshot and versionInfo.currentVersion.SHA or versionInfo.currentVersion.raw $}/src/{$ doc.fileInfo.realProjectRelativePath $}#L{$ doc.startingLine + 1 $}-L{$ doc.endingLine + 1 $}
33
{%- endmacro %}
44

55

66
{% macro githubEditHref(doc, versionInfo) -%}
7-
https://github.com/{$ versionInfo.gitRepoInfo.owner $}/{$ versionInfo.gitRepoInfo.repo $}/edit/master/packages/{$ doc.fileInfo.realProjectRelativePath $}?message=docs(
7+
https://github.com/{$ versionInfo.gitRepoInfo.owner $}/{$ versionInfo.gitRepoInfo.repo $}/edit/master/src/{$ doc.fileInfo.realProjectRelativePath $}?message=docs(
88
{%- if doc.moduleDoc %}{$ doc.moduleDoc.id.split('/')[0] $}
99
{%- elseif doc.docType === 'module' %}{$ doc.id.split('/')[0] $}
1010
{%- else %}...{%- endif -%}

0 commit comments

Comments
 (0)