File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -52,7 +52,8 @@ let all = toc.replace(/index\.html/g, 'all.html')
52
52
. replace ( '<a href="all.html" name="toc">' , '<a href="index.html" name="toc">' )
53
53
. replace ( 'index.json' , 'all.json' )
54
54
. replace ( 'api-section-index' , 'api-section-all' )
55
- . replace ( 'data-id="index"' , 'data-id="all"' ) ;
55
+ . replace ( 'data-id="index"' , 'data-id="all"' )
56
+ . replace ( / < l i c l a s s = " e d i t - o n - g i t h u b " > .* ?< \/ l i > / , '' ) ;
56
57
57
58
// Clean up the title.
58
59
all = all . replace ( / < t i t l e > .* ?\| / , '<title>' ) ;
Original file line number Diff line number Diff line change @@ -381,5 +381,5 @@ function altDocs(filename, docCreated) {
381
381
}
382
382
383
383
function editOnGitHub ( filename ) {
384
- 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>` ;
384
+ 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>` ;
385
385
}
You can’t perform that action at this time.
0 commit comments