From d0df43f06231c1cdc44af6e61bbf2f8edae1cf27 Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Thu, 12 Jul 2018 20:12:20 -0700 Subject: [PATCH] squash! do not include edit-on-github link in all.html --- tools/doc/allhtml.js | 3 ++- tools/doc/html.js | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/tools/doc/allhtml.js b/tools/doc/allhtml.js index 1c84e13d0ab79c..67c6533f548c14 100644 --- a/tools/doc/allhtml.js +++ b/tools/doc/allhtml.js @@ -52,7 +52,8 @@ let all = toc.replace(/index\.html/g, 'all.html') .replace('', '') .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>/, ''); // Clean up the title. all = all.replace(/.*?\| /, '<title>'); diff --git a/tools/doc/html.js b/tools/doc/html.js index a7cc505c38179c..94f18b6fdf3287 100644 --- a/tools/doc/html.js +++ b/tools/doc/html.js @@ -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>`; }