1
0
mirror of synced 2026-01-13 18:03:45 -05:00
Commit Graph

363 Commits

Author SHA1 Message Date
Sarah Schneider
6fb35aae8d Fix local dev TOC (#20253)
* refactor dev-toc middleware to use new site tree

* refactor dev-toc layout to use new site tree (we can move this to React someday if we want)
2021-07-01 10:05:18 -05:00
Sarah Schneider
a344b8f078 hide early access product TOC links 2021-06-29 19:27:54 -04:00
James M. Greene
2dbae93c53 Try to prevent late/duplicate response errors (#20077)
* Ensure all Express 'next' calls include 'return's

* Add headersSent checks during archived versions flow

* Return a 404 earlier if archived resource fetch fails

* Short-circuit responses for archived stuff

* Be more careful about responding to and short-circuiting after search requests

* Fix tests
2021-06-28 19:31:54 +00:00
Sarah Schneider
cffafaf748 Merge branch 'main' into revert-20087-revert-20069-fix-homepage-versions-dropdown 2021-06-24 12:40:17 -04:00
Kevin Heis
d3403e8653 Address goofy exports (#20113)
* Address a goofy export

* Fix more exports

* Change two exports
2021-06-24 14:59:06 +00:00
Sarah Schneider
3b78be7ff0 Merge branch 'main' into revert-20087-revert-20069-fix-homepage-versions-dropdown 2021-06-23 18:55:17 -04:00
Kevin Heis
a92d820888 Remove remaining JSON requires (#20110)
* Remove remaining JSON requires

* Lint

* Update feature-flags.js
2021-06-23 14:57:50 -07:00
Sarah Schneider
7e3e75616c Merge branch 'main' of github.com:github/docs-internal into feature-versioning 2021-06-23 15:59:37 -04:00
Sarah Schneider
d454e4032e Merge branch 'main' of github.com:github/docs-internal into feature-versioning 2021-06-23 15:16:52 -04:00
Grace Park
cbdd722cac Merge branch 'main' into dynamic-esm 2021-06-23 10:46:25 -07:00
Sarah Schneider
15e33f05e7 Revert "Revert "Fix homepage versions dropdown" (#20087)"
This reverts commit f9f0b2ce86.
2021-06-23 10:12:36 -04:00
Matt Pollard
f9f0b2ce86 Revert "Fix homepage versions dropdown" (#20087) 2021-06-23 09:11:51 +02:00
James M. Greene
7ee7a1aaaa Merge branch 'main' into feature-versioning 2021-06-22 15:28:34 -05:00
Grace Park
bcb11e607e Merge branch 'main' into dynamic-esm 2021-06-22 12:55:26 -07:00
Sarah Schneider
9839afa806 this block is no longer used (unrelated to the homepage changes) 2021-06-22 15:15:30 -04:00
Grace Park
23f586bb93 merge and fix conflicts 2021-06-22 11:41:10 -07:00
Mike Surowiec
b24fe62965 always render with nextjs when FF is true (#20067)
* always render with nextjs when FF is true

* remove path-to-regexp from package.json
2021-06-22 11:29:51 -07:00
Grace Park
d3d1902414 Merge pull request #20017 from github/upgrade-esm
Enforce and Move to Top Level require
2021-06-22 11:27:48 -07:00
Mike Surowiec
a24d01f78a Fix NextJS 500s (#20048)
* feat: allow server to contextualize request when on a /_next/data path

* add client side routing test, run lint

* enable nextjs client side routing
2021-06-22 17:30:40 +00:00
Sarah Schneider
1188fa557e Merge branch 'main' into feature-versioning 2021-06-22 11:07:27 -04:00
Sarah Schneider
04b6c07c8e Merge branch 'main' of github.com:github/docs-internal into feature-versioning 2021-06-22 10:26:02 -04:00
Sarah Schneider
c34e3e06e8 Merge branch 'main' into fix-early-access-tocs 2021-06-22 10:05:52 -04:00
Grace Park
ee58981b6a Merge branch 'main' into dynamic-esm 2021-06-21 13:35:30 -07:00
Mike Surowiec
b084dbc23d React: Enable all remaining pages (#20012)
* enable all remaining pages

* update tests for survey, filter card dropdowns

* fix search test

* fix: mobile search layout

* update sidebar test

* fix: learning track page is optional

* fix broken links
2021-06-21 19:52:58 +00:00
Sarah Schneider
b13ac1bd85 only hide TOC items on non-early access content; we want it to display on EA pages 2021-06-21 14:40:38 -04:00
Grace Park
9401a8f13a Merge branch 'main' into upgrade-esm 2021-06-18 13:13:53 -07:00
Grace Park
7f6a277a8e clear out dynamic require 2021-06-18 13:08:28 -07:00
Grace Park
b688ac036c update instrument middleware 2021-06-18 12:14:08 -07:00
Mike Surowiec
5991ffb1af Enable more react sub-sections (#20004) 2021-06-18 08:30:32 -07:00
Grace Park
8154d3b701 adding mostly readfilesync of path updates to require 2021-06-17 20:22:04 -07:00
Grace Park
0762734b43 fixed easy global requires 2021-06-17 18:39:38 -07:00
Sarah Schneider
62ba27c8ea Merge branch 'main' of github.com:github/docs-internal into feature-versioning 2021-06-17 15:59:50 -04:00
Mike Surowiec
ba95c6240e NextJS: enable a sponsors, organizations, discussions, and billing subsections (#19998) 2021-06-17 19:37:50 +00:00
Sarah Schneider
53291a98e2 Merge branch 'main' of github.com:github/docs-internal into feature-versioning 2021-06-17 14:42:34 -04:00
Mike Surowiec
5396f5f9e4 React: All landing pages (#19943)
* default all remaining landing pages to react, update tests
2021-06-17 10:04:53 -07:00
Sarah Schneider
139f9e0aac name the boolean for clarity 2021-06-17 11:45:13 -04:00
Matt Pollard
fb928dfa70 Update logic to check for valid version number in release notes middleware (#19981) 2021-06-17 13:13:30 +00:00
Mike Surowiec
83e33cc9bb Quiet sass warnings (#19960)
* npm install sass@latest

* add quietDeps: true to webpack config

* prevent error message from hmr abort, cleans up the log

Co-authored-by: Sarah Schneider <sarahs@github.com>
2021-06-16 19:47:01 +00:00
Sarah Schneider
737b18bc5b Merge branch 'main' of github.com:github/docs-internal into feature-versioning 2021-06-16 13:39:49 -04:00
Sarah Schneider
acdf131b98 use all instead of supported because deprecated releases get special handling 2021-06-16 11:09:13 -04:00
Sarah Schneider
0553dd0b66 prevent 500s when a bogus version like enterprise-server@3.14788585 is attempted 2021-06-16 10:40:00 -04:00
Sarah Schneider
a1c1a81b94 Merge branch 'main' of github.com:github/docs-internal into feature-versioning 2021-06-15 19:41:29 -04:00
Mike Surowiec
306f6fc75e Enable more react pages (#19935)
* enable more react landing pages

* move nextjs page logic to separate middleware

* enable codespaces landing page + fixes

* enable /education

* enable /admin

* use pathToRegexp to match routes for react rendering

* run lint

* fix: typo in url

* update sidebar test
2021-06-15 13:31:17 -07:00
Sarah Schneider
a200a74a0f Merge branch 'main' into support-short-versions 2021-06-14 19:52:04 -04:00
Mike Surowiec
6fbfa7d263 feat: add catch for bad accept-language header, prevent downstream 500 (#19909) 2021-06-14 22:45:29 +00:00
Sarah Schneider
d96fa5e2f0 add convience props to context and put supported ops in a separate module 2021-06-14 16:24:48 -04:00
Sarah Schneider
47d78cc105 Merge branch 'main' of github.com:github/docs-internal into support-short-versions 2021-06-14 16:16:43 -04:00
Sarah Schneider
f3312199d8 Update middleware/contextualizers/short-versions.js 2021-06-14 15:33:18 -04:00
Sarah Schneider
7466e24a9b Merge branch 'main' of github.com:github/docs-internal into support-short-versions 2021-06-11 15:25:20 -04:00
Grace Park
c2953a5ea7 Merge branch 'main' of https://github.com/github/docs-internal into grace-header-styling 2021-06-11 12:07:23 -07:00