Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 623cf11

Browse filesBrowse files
vsemozhetbyttargos
authored andcommitted
test: skip non-doc files in test-make-doc checks
PR-URL: #21531 Fixes: #21519 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Gus Caplan <me@gus.host>
1 parent 0f1d737 commit 623cf11
Copy full SHA for 623cf11

File tree

Expand file treeCollapse file tree

1 file changed

+5
-2
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+5
-2
lines changed
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)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.