From 13dbbdcfb00b8dba795a1bdd829c65591cf38a6c Mon Sep 17 00:00:00 2001
From: Jonas Jenwald
Date: Sun, 30 May 2021 16:08:54 +0200
Subject: [PATCH] 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.
---
docs/contents/getting_started/index.md | 4 ++--
gulpfile.js | 14 --------------
2 files changed, 2 insertions(+), 16 deletions(-)
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,