1
0
mirror of synced 2025-12-22 19:34:15 -05:00
Commit Graph

301 Commits

Author SHA1 Message Date
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
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
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
James M. Greene
7f65390cf9 Prevent page caching for the GraphQL Explorer page (#19611)
* Prevent page caching for the GraphQL Explorer page

* Add a comment

* Skip caching for airgapped sessions
2021-05-27 22:00:07 +00:00
Grace Park
84bef9bd36 Updating split by ; 2021-05-27 09:46:10 -07:00
Grace Park
cc6c49b4cc update language to lower case 2021-05-26 15:02:57 -07:00
Sarah Schneider
31631b4633 add localized fallbacks to English 2021-05-26 14:28:46 -04:00
Grace Park
c048878197 Updating for chinese regions 2021-05-24 18:14:41 -07:00
Grace Park
ea055d23a4 fix blank line 2021-05-24 12:52:51 -07:00
Grace Park
5c9c07e20b check undefined 2021-05-24 12:50:52 -07:00
Grace Park
cb4da0c142 Fix linter errors 2021-05-24 12:05:18 -07:00
Grace Park
b8a8a681a9 Removing console logs 2021-05-24 11:33:39 -07:00
Sarah Schneider
0379ba8436 lint 2021-05-24 13:46:55 -04:00
Sarah Schneider
dc44855690 preserve deprecated release notes 2021-05-24 12:39:33 -04:00
Sarah Schneider
221de41388 more merge updates 2021-05-24 12:10:58 -04:00
Sarah Schneider
de7d02af93 more merge-related updates 2021-05-24 11:59:55 -04:00
Sarah Schneider
ff718d7fc1 Merge branch 'main' of github.com:github/docs-internal into github-ae-release-notes 2021-05-24 10:00:07 -04:00
Grace Park
4857490339 Adding user language redirect notice 2021-05-22 14:52:48 -07:00
Sarah Schneider
2fcb38f30d move intro rendering back to middleware but do it conditionally 2021-05-21 16:14:14 -04:00
Sarah Schneider
14632635ca fix the path 2021-05-21 15:16:18 -04:00
Sarah Schneider
41b11d4f98 version the path 2021-05-21 15:10:00 -04:00
Sarah Schneider
c2324f893b Merge branch 'middleware-perf-part2' of github.com:github/docs-internal into middleware-perf 2021-05-21 12:24:12 -04:00
Sarah Schneider
1945b8a3d4 remove tree rendering middleware now that it happens in warm server 2021-05-21 12:06:53 -04:00
Sarah Schneider
d258e77b17 move the tree rendering steps to lib/page-data which happens during warm-server 2021-05-21 12:06:27 -04:00
Sarah Schneider
912988ed6b refactor generic-toc to be more performant 2021-05-21 12:04:10 -04:00
Sarah Schneider
50386c9d10 use new helper module in middleware 2021-05-21 12:04:00 -04:00
Mike Surowiec
dba7d5e550 Merge branch 'main' into react-head-2 2021-05-20 11:06:59 -07:00
Kevin Heis
afa551f2ee Upgrade AJV (#19443)
* Upgrade AJV

* Fixes for AJV upgrade

* lint fix

* Update index.tsx
2021-05-20 17:46:04 +00:00
Sarah Schneider
5978edb47b remove feature flagged code 2021-05-20 10:01:33 -04:00
Sarah Schneider
b4ab2c52b6 delete no longer used files 2021-05-20 10:01:08 -04:00
Mike Surowiec
7151311d9e Merge branch 'main' into react-head-2 2021-05-19 11:12:03 -07:00
Kevin Heis
f6acb1f08a Update dependencies (#19408)
* Update dependencies 2

* Lint fixes

* Update graphql packages

* Update changelog-entry.json

* Update @octokit/rest

* Update commander with help from @rachmari

@rachmari

* Upgrade helmet

* Upgrade js-yaml

* Update server.js

* Update cheerio

* Revert "Update cheerio"

This reverts commit 8aa17c39fbf564ee554037d89e7a473027d16984.
2021-05-19 17:32:47 +00:00
Sarah Schneider
1666d890bc do not blow up if translated file cannot be found 2021-05-19 12:50:07 -04:00
Sarah Schneider
2a72558592 lint 2021-05-19 12:05:05 -04:00
Sarah Schneider
c14063d22f use regex to be more precise in href matching than just startsWith 2021-05-19 11:58:34 -04:00
Mike Surowiec
964aa9977e update logic for whether to render a page with nextjs 2021-05-19 08:27:40 -07:00