* Support [...] in data tag path
* Use forloop.index0 to get data tag path
* Commit whitespace change to not keep getting it
* Recursively render glossary terms as well
* Add tests to verify Liquid data tag can handle bracketed access
* Remove superfluous 'set' for context in tests
* Avoid the mystery guest anti-pattern... move the test data closer to the test
* Escape the `-` character in the data regex
Co-authored-by: Jason Etcovitch <jasonetco@github.com>
Co-authored-by: Chiedo John <2156688+chiedo@users.noreply.github.com>
* Update tests to use fs.promises when not top-level
* Move two to asyncFilter
* Update site-data-references.js
* Update site-data-references.js
* Clear out await fs.exists
* Lint
* A few more fixes
* Can't use async when defining tests
* Revise the 'pages' module to export two methods: 'loadPages' and 'loadPageMap'
Update all existing references to use 'loadPages' for now
* Remove explicit Promise resolutions on loadPage* methods
* Condense reduction method into its now-singular usage spot
* Opt for for-of instead of forEach
* Make require of pages in warm-server more explicit
* Be more explicit about find-page using a pageMap
* Be more explicit about find-page-in-version using a pageMap
* Be more explicit about site-tree using a pageMap
* Extract the map creation from loadPageMap
* Be more explicit about using a pageMap
* Update redirects precompile to take two arguments: pageList, pageMap
* Rename internal loadPages method to loadPageList
* Clarify pageMap is what is stored in context.pages
* Use loadPageMap in tests and stuff
* throw an error if a page is available in a version that its parent product is not available in
* add tests
* fix one Insights content file versioned for FPT when Insights is only available in GHES currently
* remove outdated and redundant context.enterpriseVersions and add new context.enterpriseServerVersions
* update references from context.enterpriseVersions -> context.enterpriseServerReleases
* add test
* also test oldest supported enterprise version in addition to the latest
* Script to update not-free-pro-team conditionals (#16060)
* script to update not-free-pro-team conditionals
* change string to regex so we can do replace all
* remove stray test.only
* Update middleware/context.js
Co-authored-by: James M. Greene <JamesMGreene@github.com>
* Update tests/unit/page.js
Co-authored-by: James M. Greene <JamesMGreene@github.com>
* Update tests/unit/page.js
Co-authored-by: James M. Greene <JamesMGreene@github.com>
* Update tests/fixtures/page-versioned-for-all-enterprise-releases.md
Co-authored-by: James M. Greene <JamesMGreene@github.com>
Co-authored-by: James M. Greene <JamesMGreene@github.com>
* ran script/remove-unused-assets.js (manually removed unused variables printed by the script)
* package-lock
* turn elsif into two ifs to prepare for running Liquid deprecation script
* ran script/remove-deprecated-enterprise-version-markup.js --release 2.14 (ONLY UPDATES LINE BREAKS ETC.)
* ran script/remove-deprecated-enterprise-version-markup.js --release 2.15
* ran script/remove-deprecated-enterprise-version-markup.js --release 2.17
* ran script/remove-deprecated-enterprise-version-markup.js --release 2.18
* update hardcoded test
* Update content/github/collaborating-with-issues-and-pull-requests/filtering-files-in-a-pull-request.md
Co-authored-by: Matt Pollard <mattpollard@users.noreply.github.com>
* add currentVersion is NOT free-pro-team to conditional, to make sure the deprecation script does the right thing when it is time to deprecate 2.21
Co-authored-by: Matt Pollard <mattpollard@users.noreply.github.com>
* 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