You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Update Enterprise Liquid deprecation handling to use new versions (#15818)
* update Liquid deprecation fixtures to use new versions
* update module that removes deprecated GHES frontmatter for new versions
* update module that removes deprecated GHES conditionals for new versions
* update script to use new versions and also remove internal-developer checkout option
* update deprecated Liquid tests to use new versions
* remove unnecessary leading slash in getEnterpriseServerNumber pattern
* include a step that runs script/remove-unused-assets.js
* Update script/remove-deprecated-enterprise-version-markup.js
Co-authored-by: Jason Etcovitch <jasonetco@github.com>
* require script instead of execSync
Co-authored-by: Jason Etcovitch <jasonetco@github.com>
andGreaterThanVersionToDeprecate1: newRegExp('('+startTag.source+` if .*?) and page.version ver_gte? (?:'|")${versionToDeprecate}(?:'|")( `+endTag.source+')','gm'),
30
-
andGreaterThanVersionToDeprecate2: newRegExp('('+startTag.source+` if )page.version ver_gte? (?:'|")${versionToDeprecate}(?:'|") and (.*? `+endTag.source+')','gm'),
andNotEqualsVersionToDeprecate: newRegExp('('+startTag.source+` if .*?) and page.version != (?:'|")${versionToDeprecate}(?:'|")( `+endTag.source+')','gm'),
andGreaterThanVersionToDeprecate1: newRegExp('('+startTag.source+` if .*?) and currentVersion ver_gt (?:'|")${versionToDeprecate}(?:'|")( `+endTag.source+')','gm'),
30
+
andGreaterThanVersionToDeprecate2: newRegExp('('+startTag.source+` if )currentVersion ver_gt (?:'|")${versionToDeprecate}(?:'|") and (.*? `+endTag.source+')','gm'),
andNotEqualsVersionToDeprecate: newRegExp('('+startTag.source+` if .*?) and currentVersion != (?:'|")${versionToDeprecate}(?:'|")( `+endTag.source+')','gm'),
33
33
// remove liquid and content
34
34
lessThanNextOldestVersion: newRegExp(startTag.source+` if .*?ver_lt ('|")${nextOldestVersion}('|") ?`+endTag.source,'m'),
35
35
equalsVersionToDeprecate: newRegExp(startTag.source+` if .*?== ('|")${versionToDeprecate}('|") ?`+endTag.source,'m')
// To run it on the developer docs, provide a path to your developer docs checkout as an argument. You can use a tilde to represent your home directory. For example:
0 commit comments