diff --git a/docs/contents/getting_started/index.md b/docs/contents/getting_started/index.md index 4cbed2065..38eb05a72 100644 --- a/docs/contents/getting_started/index.md +++ b/docs/contents/getting_started/index.md @@ -54,8 +54,8 @@ Before downloading PDF.js please take a moment to understand the different layer Includes the generic build of PDF.js and the viewer.

- Stable (vSTABLE_VERSION) - Beta (vBETA_VERSION) + Stable (vSTABLE_VERSION) + Beta (vBETA_VERSION)
diff --git a/gulpfile.js b/gulpfile.js index e49c0777e..ed35449f2 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -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,