Remove the -es5/-legacy special handling in the gulp wintersmith task (PR 12978 follow-up)

With the stable version now being `2.8.335`, this work-around is no longer necessary.
This commit is contained in:
Jonas Jenwald 2021-05-30 16:08:54 +02:00
parent d05f4c620e
commit 13dbbdcfb0
2 changed files with 2 additions and 16 deletions

View file

@ -1907,20 +1907,6 @@ gulp.task("wintersmith", function (done) {
}
const { stableVersion, betaVersion } = config;
// Create appropriate file names for the legacy builds. This logic can be
// removed and/or simplified, once the stable version is past the cutoff.
const CUTOFF_VERSION = "2.7.570";
replaceInFile(
GH_PAGES_DIR + "/getting_started/index.html",
/STABLE_VERSION_LEGACY/g,
stableVersion + (stableVersion <= CUTOFF_VERSION ? "-es5" : "-legacy")
);
replaceInFile(
GH_PAGES_DIR + "/getting_started/index.html",
/BETA_VERSION_LEGACY/g,
betaVersion + (betaVersion <= CUTOFF_VERSION ? "-es5" : "-legacy")
);
replaceInFile(
GH_PAGES_DIR + "/getting_started/index.html",
/STABLE_VERSION/g,