Skip to content

Commit f1a681b

Browse files
committed
omit old versions when writing versions.json file
1 parent 1528da9 commit f1a681b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

bin/write-versions-json

+5
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,15 @@ let FS = require('fs');
44
let Process = require('process');
55
let semver_cmp = require('semver-compare');
66

7+
const OLD_VERSIONS = "0.15";
8+
79
let read_versions_from_fs = () => {
810
return (
911
FS.readdirSync('.')
1012
.filter(x => /^(\d+)(\.\d+)*\w*$/.test(x))
13+
// We have retained the docs for some old version, but we do not
14+
// want to link them as they cannot be generated by the current setup.
15+
.filter(x => !OLD_VERSIONS.includes(x))
1116
);
1217
};
1318

0 commit comments

Comments
 (0)