GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — test: skip non-doc files in test-make-doc checks · nodejs/node@623cf11

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • test/doctool
    • test-make-doc.js
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎test/doctool/test-make-doc.js‎

Copy file name to clipboardExpand all lines: test/doctool/test-make-doc.js
+5-2Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,12 @@ const apiPath = path.resolve(__dirname, '..', '..', 'out', 'doc', 'api');
1515
const allDocs = fs.readdirSync(apiPath);
1616
assert.ok(allDocs.includes('_toc.html'));
1717

18-
const filter = ['assets', '_toc.html', '.md'];
1918
const actualDocs = allDocs.filter(
20-
(name) => !filter.some((str) => name.includes(str))
19+
(name) => {
20+
const extension = path.extname(name);
21+
return (extension === '.html' || extension === '.json') &&
22+
name !== '_toc.html';
23+
}
2124
);
2225

2326
const toc = fs.readFileSync(path.resolve(apiPath, '_toc.html'), 'utf8');

0 commit comments

Comments
0 (0)
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.