1
0
mirror of synced 2025-12-26 14:02:45 -05:00
Commit Graph

50 Commits

Author SHA1 Message Date
Sarah Schneider
f01b56813f make the enterprise developer paths more future-proof for new versions 2021-01-25 13:09:48 -05:00
Sarah Schneider
2846a160e9 draft of redirects README 2021-01-20 15:41:47 -05:00
Sarah Schneider
35b938a8f3 no longer need to precompile developer redirects now that we have the static redirects file 2021-01-19 20:51:48 -05:00
Sarah Schneider
efa186ca73 restore legacy redirect handling needed for (internal docs) links 2021-01-19 20:51:18 -05:00
Sarah Schneider
7e4286f76d replace developer routes with static developer redirects file 2021-01-19 20:50:10 -05:00
Sarah Schneider
d060fddc6f Merge branch 'main' of github.com:github/docs-internal into remove-legacy-redirects 2021-01-19 17:47:30 -05:00
Sarah Schneider
b47aaec71f remove all the legacy redirect handling! 2021-01-19 17:44:42 -05:00
Sarah Schneider
ca395716c5 add latest GHES release to path 2021-01-19 17:44:24 -05:00
Sarah Schneider
e560fb229d add new static file 2021-01-19 17:43:38 -05:00
Sarah Schneider
f0e9369a16 remove never used file 2021-01-19 16:50:21 -05:00
Sarah Schneider
02e95f583a change path.join to path.posix.join for Windows friendliness 2021-01-19 14:47:45 -05:00
Sarah Schneider
752edcfc53 use new static redirects file instead of precompiling on every server restart 2021-01-19 10:46:32 -05:00
Sarah Schneider
a92789ab73 turn static routes file into static redirects file 2021-01-19 10:46:04 -05:00
Sarah Schneider
ba661d65b7 do not create this redirect for deprecated enterprise versions 2021-01-15 15:32:23 -05:00
Sarah Schneider
36c3b108b2 Merge branch 'remove-fpt' of github.com:github/docs-internal into remove-fpt-helper 2021-01-15 11:06:16 -05:00
Sarah Schneider
a8470e9034 remove unnecessary redirect (cuts down on about 18k redirects) 2021-01-15 11:05:48 -05:00
Sarah Schneider
51da7a9749 few tweaks 2021-01-15 10:11:17 -05:00
Sarah Schneider
4d4acd39ca Merge branch 'remove-fpt' of github.com:github/docs-internal into remove-fpt-helper 2021-01-15 09:58:18 -05:00
Sarah Schneider
308e62616d use path.join instead of string interpolation for consistency 2021-01-15 09:56:52 -05:00
Sarah Schneider
b4690547a7 remove no-longer-needed feature flag 2021-01-15 09:42:29 -05:00
Sarah Schneider
374112c55f few tweaks to get passing tests 2021-01-14 17:08:15 -05:00
Sarah Schneider
a78828a443 remove debugging code 2021-01-14 13:51:18 -05:00
Sarah Schneider
64ada8a292 remove debugging code 2021-01-14 13:35:16 -05:00
Sarah Schneider
b511758057 add remove-fpt helper function 2021-01-14 13:34:32 -05:00
Sarah Schneider
b6032f285c remove helper from this branch (to be re-added in child branch for easier reviewing) 2021-01-14 12:07:49 -05:00
Sarah Schneider
79a7a7972f Merge branch 'main' of github.com:github/docs-internal into remove-fpt 2021-01-13 16:58:05 -05:00
Sarah Schneider
d752732b16 update refs to reinstated findPage() 2021-01-13 16:49:35 -05:00
Sarah Schneider
ead1dc202c Merge branch 'main' of github.com:github/docs-internal into remove-fpt 2021-01-07 14:43:50 -05:00
Sarah Schneider
33f93e39c7 remove overloaded helper functions and move code directly where it is used 2021-01-07 13:14:44 -05:00
Kevin Heis
4e781a553c Fix some typos in the lib directory (#17131)
Co-authored-by: Chiedo John <2156688+chiedo@users.noreply.github.com>
2021-01-05 15:53:05 +00:00
Kevin Heis
d507eec2e8 Fix load site data reporting wrong timing data (#17050) 2020-12-17 11:40:25 -08:00
Sarah Schneider
ee7b67bbb5 lint 2020-12-17 12:10:21 -05:00
Sarah Schneider
1aa80996e0 try to make this check as fast as we can 2020-12-17 12:03:45 -05:00
Sarah Schneider
5762bbaad4 support hardcoded versions in frontmatter redirects 2020-12-16 16:23:20 -05:00
Kevin Heis
122da9610c Move redirect calculation from loadPages to loadRedirects (#16918)
* Move redirect calculation from loadPages to loadRedirects

* Make buildredirects a method for tests

* Update redirects.js

Co-authored-by: Chiedo John <2156688+chiedo@users.noreply.github.com>
2020-12-15 18:40:50 +00:00
Kevin Heis
2538a79a7b In old path redirects, freeze up sets we iterate over (#16916) 2020-12-14 19:26:57 +00:00
Sarah Schneider
bc6c0cc6be Merge branch 'main' of github.com:github/docs-internal into yank-outdated-redirect-code 2020-12-09 20:47:40 -05:00
Rachael Sewell
6a3d326fcf add one-off cases for hooks and pre-receive-hooks (#16784)
* add one-off cases for hooks and pre-receive-hooks

* add forum redirect

* update redirect test

* update 2.19-2.22 fixutres

* revert 2.18/2.19 changes

* remove dotcom test

* update dotcom test
2020-12-09 19:50:46 +00:00
Sarah Schneider
5164fe95d3 yank outdated redirect code 2020-12-08 09:30:26 -05:00
James M. Greene
fb30a0766f Unravel pages (the array + map object) (#16708)
* 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
2020-12-03 22:31:10 +00:00
Sarah Schneider
84f0aac8f6 Merge branch 'main' of github.com:github/docs-internal into deprecate-2.19 2020-11-17 21:20:38 -05:00
Sarah Schneider
75bf7a99f6 move 2.19 to deprecated and remove dev docs routes for 2.19 from static redirect file 2020-11-17 16:33:52 -05:00
Nick Schonning
b6de7c6887 chore: Convert Standard to eslint-config-standard (#1328)
* chore: Move standard to ESLint config

* fix: auto-fix ESLint indent issues

* fix: ESLint prefer-regex-literals

* fix: ESLint array-callback-return

- .filter must return a boolean value
- .map replaced with forEach when the value isn't used

* fix: ESLint no-extra-semi
2020-11-17 16:18:18 -05:00
jmarlena
45398e709c Password authentication and OAuth Authorizations API deprecation (#16375)
* 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>
2020-11-13 11:01:17 -08:00
Sarah Schneider
f42530c35d Support redirects to /v3 and /v4 links that have the new version format (#16037)
* add temporary redirect support

* add temporary redirect tests

* add ENDYANK comments per @zeke suggestion
2020-10-15 09:20:27 -04:00
Jeff McAffer
d16c1f2087 add missing slash require 2020-10-08 19:59:15 -07:00
Jeff McAffer
b1f1e1cb6a correct for windows slashes in redirect precompile 2020-10-08 19:20:27 -07:00
Sarah Schneider
5caa6f282c satisifies -> satisfies (#15814) 2020-09-30 10:28:47 -04:00
Sarah Schneider
aa5a62d49d 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
2020-09-29 13:36:07 -04:00
Vanessa Yuen
3df90fc9b8 Hello git history spelunker!
Are you looking for something? Here is all of the GitHub Docs history in one single commit. Enjoy! 🎉
2020-09-27 14:10:11 +02:00