Skip to content

Commit 9983007

Browse files
authored
chore(docs): Extend stable documentation versions to build to cover multiple beta.n releases (#7685)
1 parent 77ae087 commit 9983007

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

docs/scripts/setStable.ts

+7
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@ async function main() {
3737

3838
console.log('Filtered down to stables: ', stables);
3939

40+
// Temporarily disable omission of patch versions, as it omits all 1.0.0-beta.n versions that are not the latest
41+
// To restore when versioning scheme upgrades from 1.0.0-beta.n to 1.x.y
42+
/*
4043
const onlyLatestPatches = [];
4144
const minorsSet = new Set(stables.map((el) => el.split('.')[1]));
4245
for (const minor of minorsSet) {
@@ -50,6 +53,10 @@ async function main() {
5053
console.log('Only latest patches: ', onlyLatestPatches);
5154
5255
fs.writeFileSync(path.resolve(__dirname, '../versions.json'), JSON.stringify(onlyLatestPatches, null, 2));
56+
*/
57+
58+
// To delete when versioning scheme upgrades from 1.0.0-beta.n to 1.x.y
59+
fs.writeFileSync(path.resolve(__dirname, '../versions.json'), JSON.stringify(stables, null, 2));
5360
}
5461

5562
main();

0 commit comments

Comments
 (0)