* Add cta button to frontmatter and context
* Add cta to Page
* Render cta button in product landing hero
* Handle external links
* Add simple unit test for cta link
* Address feedback
Co-authored-by: Peter Bengtsson <mail@peterbe.com>
* Actually push condition update
* Show it's an external link
* Refactor FullLink so we use Link once
Co-authored-by: Peter Bengtsson <mail@peterbe.com>
* Custom link can also be null
* Rename 'cta' to 'custom' and make it the last introLink
* Update tests with 'cta' to 'custom' change
* Filter once
* Revert "Filter once"
This reverts commit a3f9a8a06b505d77fed47ca96a66c187c86c3c91.
* Update introLinks to a map of titles and URLs
* No more custom introLink in LandingHero
* Simplify introLinks processing
* introLinks can also be null
Co-authored-by: Peter Bengtsson <mail@peterbe.com>
* more concise
Co-authored-by: Peter Bengtsson <mail@peterbe.com>
* No longer necessary with the a plain introLinks map
Co-authored-by: Peter Bengtsson <mail@peterbe.com>
* '.entries()` is simpler
Co-authored-by: Peter Bengtsson <mail@peterbe.com>
* 'link' could be false depending on what version you're on
* Update test for new introLinks
Co-authored-by: Peter Bengtsson <mail@peterbe.com>
* Add new video properties frontmatter
* Handle video links in the middleware
* Video links don't have intros, authors, or full titles
* Make videos available from context
* Add default video heading
* Add basic tests for videos
* tmp videos test
* Remove stray test debugging
* more tmp videos testing
* Add videos test fixture
* Revert "more tmp videos testing"
This reverts commit 382946a5603ff217014797f77f37216bb8bb6c9c.
* Revert "tmp videos test"
This reverts commit 8767d0eaf08bd4ca04e2dacd12d476a2506c0367.
Co-authored-by: Matt Pollard <mattpollard@users.noreply.github.com>
Co-authored-by: Grace Park <gracepark@github.com>
Co-authored-by: Steve Guntrip <12534592+stevecat@users.noreply.github.com>
Co-authored-by: Robert Sese <sese@github.com>
Co-authored-by: Peter Bengtsson <peterbe@github.com>
Co-authored-by: Rachael Sewell <rachmari@github.com>
* Version password examples for GHES only
* Remove unnecessary note
* Versioned deprecation reusable for GHES only?
* Update troubleshooting article
* Version OAuthorizations REST API page for enterprise-only
* Remove deprecations reusable
* Add tentative note
* Rework two-factor authentication sections
* Fix double redirect reference
* versioning tweak
* Versioning tweaks
* adding back the endifs
* random link reformatting
* OAuth Authorization API versioned for 2.22
* /
* Fix internal docs links
* remove static redirect for dotcom
* Try deleting redirect
* Apply @martin389's suggested changes
Co-authored-by: Martin Lopes <54248166+martin389@users.noreply.github.com>
* Remove best practice assumptions
* Apply suggestions from code review
Co-authored-by: Martin Lopes <54248166+martin389@users.noreply.github.com>
* Add note
* restore redirects in content file and remove free-pro-team expected path from test fixture
* change note position
* handle path that was available on dotcom in developer site but is now GHES only
Co-authored-by: Martin Lopes <54248166+martin389@users.noreply.github.com>
Co-authored-by: Sarah Schneider <sarahs@github.com>
* 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>
* 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>
* Add back changes from prior to purge
* Manually fix some invalid Liquid
* Updoot render-content
* Improve test messages to show correct output
* Run el scripto
* Pass the remaining test
* 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