Skip to content

Commit 8807ebc

Browse files
Gaurav0sivakumar-kailasam
authored andcommitted
Fix ability to generate new doc
1 parent 94d0099 commit 8807ebc

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

lib/read-docs.js

+5-3
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,11 @@ export default function readDocs(
3333
)
3434

3535
if (!runClean) {
36-
availableSourceVersions = availableSourceVersions.filter(
37-
version => !prevIndexedVersions.includes(version)
38-
)
36+
if (!ignorePreviouslyIndexedDoc) {
37+
availableSourceVersions = availableSourceVersions.filter(
38+
version => !prevIndexedVersions.includes(version)
39+
)
40+
}
3941

4042
folders = folders.filter(f => {
4143
if (!prevIndexedVersions.includes(f) || ignorePreviouslyIndexedDoc) {

0 commit comments

Comments
 (0)