Remove versions feature flag code (#15793)
* remove FEATURE_NEW_VERSIONS from feature-flags.json * remove process.env.FEATURE_NEW_VERSIONS from include files * remove process.env.FEATURE_NEW_VERSIONS from lib files * remove process.env.FEATURE_NEW_VERSIONS from middleware files * remove process.env.FEATURE_NEW_VERSIONS from script files * remove process.env.FEATURE_NEW_VERSIONS from test files * update test fixtures to use new versions as canonical fixtures
This commit is contained in:
@@ -68,9 +68,7 @@ module.exports = async function checkLinks ($, page, context, version, checkedLi
|
||||
|
||||
// finding the linked page isn't enough if it's a github.com page; also need to check versions
|
||||
if (linkedPage.relativePath.startsWith('github')) {
|
||||
const linkedPageVersions = process.env.FEATURE_NEW_VERSIONS
|
||||
? getApplicableVersions(linkedPage.versions, linkedPage.relativePath)
|
||||
: getApplicableVersions(linkedPage.productVersions, linkedPage.relativePath)
|
||||
const linkedPageVersions = getApplicableVersions(linkedPage.versions, linkedPage.relativePath)
|
||||
|
||||
if (!linkedPageVersions.includes(version) && $(internalLink).attr('class') !== 'dotcom-only') {
|
||||
brokenLinks.links.push({ 'broken link': link, reason: `${version} not found in linked page versions`, 'linked page': linkedPage.fullPath })
|
||||
|
||||
Reference in New Issue
Block a user