Skip to content

Commit

Permalink
squash! do not include edit-on-github link in all.html
Browse files Browse the repository at this point in the history
  • Loading branch information
Trott committed Jul 13, 2018
1 parent 3620da2 commit d0df43f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion tools/doc/allhtml.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ let all = toc.replace(/index\.html/g, 'all.html')
.replace('<a href="all.html" name="toc">', '<a href="index.html" name="toc">')
.replace('index.json', 'all.json')
.replace('api-section-index', 'api-section-all')
.replace('data-id="index"', 'data-id="all"');
.replace('data-id="index"', 'data-id="all"')
.replace(/<li class="edit-on-github">.*?<\/li>/, '');

// Clean up the title.
all = all.replace(/<title>.*?\| /, '<title>');
Expand Down
2 changes: 1 addition & 1 deletion tools/doc/html.js
Original file line number Diff line number Diff line change
Expand Up @@ -381,5 +381,5 @@ function altDocs(filename, docCreated) {
}

function editOnGitHub(filename) {
return `<li><a href="https://github.com/nodejs/node/edit/master/doc/api/${filename}.md"><img src="assets/github_icon.svg" alt="" class="github_icon">Edit on GitHub</a></li>`;
return `<li class="edit-on-github"><a href="https://github.com/nodejs/node/edit/master/doc/api/${filename}.md"><img src="assets/github_icon.svg" alt="" class="github_icon">Edit on GitHub</a></li>`;
}

0 comments on commit d0df43f

Please sign in to comment.