Skip to content

Commit b20989a

Browse files
committed
Only process .md files
1 parent aad6a05 commit b20989a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tools/genindex.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,10 @@ function main() {
175175
} catch (error) {}
176176

177177
for (const path of walk(sourceContentDir)) {
178+
if (pathModule.extname(path) !== '.md') {
179+
continue
180+
}
181+
178182
let doc
179183
try {
180184
doc = processFile(path)
@@ -209,7 +213,7 @@ function main() {
209213

210214
let tags = []
211215

212-
for (const tag of Object.keys(tagManifest)) {
216+
for (const tag of Object.keys(tagManifest)) {
213217
let tagWithId = tagManifest[tag]
214218
tagWithId.id = tag
215219
tags.push(tagWithId)

0 commit comments

Comments
 (0)