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
Mike Surowiec
ae33dae11f
More react default pages ( #19863 )
...
* turn on more default react landing pages
2021-06-11 18:35:41 +00:00
Grace Park
ee34fb0c09
remove line break
2021-06-10 18:20:58 -07:00
Grace Park
e2168885f4
add back spacing
2021-06-10 18:20:08 -07:00
Grace Park
3f248976ad
Merge branch 'main' of https://github.com/github/docs-internal into grace-header-styling
2021-06-10 18:08:33 -07:00
Felicity Chapman
23b0b84111
Add Code security landing and guides pages ( #19650 )
2021-06-10 20:14:56 +00:00
Sarah Schneider
6076350495
Merge branch 'main' of github.com:github/docs-internal into support-short-versions
2021-06-10 14:13:34 -04:00
Kevin Heis
ef48759cb0
React: remove expose ( #19771 )
...
* React: remove expose
* Update context.js
* More changes
* fix: scripts check for IS_NEXTJS_PAGE so there's no timing issue
* run lint
Co-authored-by: Mike Surowiec <mikesurowiec@users.noreply.github.com >
2021-06-10 16:53:43 +00:00
Grace Park
c8ceeb35f2
Merge branch 'main' of https://github.com/github/docs-internal into grace-header-styling
2021-06-10 09:37:13 -07:00
Sarah Schneider
5d6d2d2cb7
Merge branch 'main' of github.com:github/docs-internal into support-short-versions
2021-06-09 17:00:37 -04:00
Sarah Schneider
d1cf56abd5
add short names = true to context object so we can access them in Liquid conditionals
2021-06-09 16:58:19 -04:00
Mike Surowiec
108377b209
add more react default rendered pages, fix toc items ( #19783 )
2021-06-08 15:35:32 -07:00
Kevin Heis
26a8e61d3a
Update survey to use React/TS ( #19728 )
...
* Update survey to use React/TS
* Working survey form in react land
* A little cleanup
* Update Search.tsx
* Update Survey.tsx
* Remove token field from schema entirely, just let it fail validation
* Update events.js
* Update survey.html
* use Link component
* Use enum for state
* Update old to match new
2021-06-08 17:34:45 +00:00
Mike Surowiec
37499b80d2
Reactify article page rendering ( #19679 )
...
* feat: reactify article page rendering
* feat: add LearningTrackNav
* fix: use plain text title for article
2021-06-07 22:56:33 +00:00
Grace Park
e8c6d272d0
Merge branch 'main' into localization-grace
2021-06-07 13:19:03 -07:00
Sarah Schneider
7448d3f3ef
exclude links to hidden pages on TOC pages
2021-06-04 14:35:28 -04:00
Sarah Schneider
25448712f8
Merge branch 'middleware-perf-part2' of github.com:github/docs-internal into middleware-perf
2021-06-04 13:58:50 -04:00
Sarah Schneider
52daa592d3
Merge branch 'main' of github.com:github/docs-internal into middleware-perf-part2
2021-06-04 13:58:30 -04:00
Grace Park
05fb4cb9b2
adding just the styling for header update
2021-06-04 10:29:21 -07:00
Mike Surowiec
6bdbe209c9
Default sponsors+discussions pages to nextjs rendering ( #19667 )
...
* default to nextjs rendering on sponsors and discussions pages
2021-06-03 11:17:15 -07:00
Grace Park
a3e36c0d6a
Merge branch 'main' into localization-grace
2021-06-01 15:45:42 -07:00
Grace Park
8b52946af0
updating to add 2nd preference and accept-language-parser module
2021-06-01 15:45:02 -07:00
Sarah Schneider
c8e041832b
Update middleware/contextualizers/features.js
2021-05-28 21:27:58 -04:00
Sarah Schneider
02915d5e4e
add comments
2021-05-28 19:53:03 -04:00
Sarah Schneider
3a75d49a4f
add middleware to enable feature-based versioning
2021-05-28 19:46:18 -04:00
Sarah Schneider
4008de0e4f
Merge branch 'main' into github-ae-release-notes
2021-05-28 15:17:35 -04:00
James M. Greene
256a58777a
Override helmet's referrerPolicy to enable archived asset proxying ( #19624 )
...
Fixes https://github.com/github/docs-internal/issues/19504
2021-05-28 17:02:33 +00:00
Sarah Schneider
4b35b4987b
Merge branch 'main' of github.com:github/docs-internal into github-ae-release-notes
2021-05-28 09:23:56 -04:00
Mike Surowiec
2de358187c
Performance testing NextJS / React ( #19540 )
...
* Remove json.parse(json.stringify( usage to improve performance
* Fix missing / duplicate keys in some renders
* Fix missing react-is dependency (only seemed to cause problems from pruning on the heroku deploy)
* Add nextjs tag to datadog-connect config when nextjs is a query param
* Fix router.asPath usage to exclude query param
* Fix styling inconsistencies noticed when testing
* Add a few tests
2021-05-27 15:17:27 -07:00
Grace Park
d6b3d0764d
Updating try/catch and adding tests
2021-05-27 15:02:33 -07:00