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')
5252 . replace ( '<a href="all.html" name="toc">' , '<a href="index.html" name="toc">' )
5353 . replace ( 'index.json' , 'all.json' )
5454 . 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 > / , '' ) ;
5657
5758// Clean up the title.
5859all = 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) {
381381}
382382
383383function 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>` ;
385385}
You can’t perform that action at this time.
0 commit comments