Skip to content

Commit

Permalink
Update PR
Browse files Browse the repository at this point in the history
  • Loading branch information
gela committed Jul 14, 2015
1 parent d4d3947 commit 2dac793
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/tasks/override-links.js
Original file line number Diff line number Diff line change
Expand Up @@ -268,9 +268,11 @@ function overrideLinks(content, node, urlHash, lang, doc) {
links.push(href.replace(/\/tree\//, '/blob/'));
links.push(href.replace(/\/blob\//, '/tree/'));
} else {
if(href.match(REGEXP.RELATIVE.JSON) || doc && doc.repo) {
links.push(buildFullGithubLinkForDocs(href, doc, 'tree', node));
links.push(buildFullGithubLinkForDocs(href, doc, 'blob', node));
}
links = links.concat(recognizeRelativeLinkForLibraryDocs(href, node));
links.push(buildFullGithubLinkForDocs(href, doc, 'tree', node));
links.push(buildFullGithubLinkForDocs(href, doc, 'blob', node));
if (node.source && node.source.data) {
links.push(recognizeRelativeBlockLinkOnSameLevel(href, node));
}
Expand Down

0 comments on commit 2dac793

Please sign in to comment.