1
0
mirror of synced 2025-12-21 10:57:10 -05:00
Commit Graph

384 Commits

Author SHA1 Message Date
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
Sarah Schneider
023f8a5ff4 we want to run generic-toc middleware on hidden pages too 2021-05-19 10:45:23 -04:00
Sarah Schneider
7c4e1a1f0d add localization fallback 2021-05-18 20:44:02 -04:00
Kevin Heis
08ec46d0d1 Render color mode settings from github/github cookie (#19275)
* Add color mode selector in footer

* Interpret color mode from cookie

* Update render-page.js

* Delete color-mode.js

* Update render-page.js

* Make this more resilient to HTML tag changes

* Update scroll-button.scss
2021-05-13 14:45:11 +00:00
Sarah Schneider
a5d52dcef0 Add landing page for GitHub Enterprise (#19041) 2021-05-12 11:55:32 +00:00
Mike Surowiec
e92e11888c feat: add code examples, cleanup and minor fixes 2021-05-11 10:13:15 -07:00
Mike Surowiec
9036301ad1 feat: add CommunityExamples, enable /discussions 2021-05-11 09:10:49 -07:00
Sarah Schneider
f1291af480 Merge branch 'main' of github.com:github/docs-internal into github-ae-release-notes 2021-05-07 17:34:57 -04:00
Sarah Schneider
b1e1a3835f update the middleware 2021-05-07 17:34:43 -04:00
Mike Surowiec
8930036e67 Merge branch 'main' into sponsors-react-1 2021-05-06 13:58:54 -07:00
Sarah Schneider
aa0c801f9c Merge branch 'main' of github.com:github/docs-internal into github-ae-release-notes 2021-05-06 15:57:26 -04:00
Kevin Heis
57e1a1b9c1 End Lunr AB test (#19155)
* Revert "Start an AB test with Lunr search results as treatment (#18993)"

This reverts commit 3d621ba715.

* Update lunr-search.js
2021-05-06 18:04:28 +00:00
Mike Surowiec
b2561a170f fix: run lint 2021-05-05 22:13:31 -07:00
Mike Surowiec
34dcba51f1 feat: add DefaultLayout, add to sponsors landing page 2021-05-05 14:54:49 -07:00
Mike Surowiec
eaddbc5db7 feat: add nextjs middleware handling (#19139)
* feat: add nextjs middleware handling split

* fix: eslint errors

* fix: filter boolean from csp list

* fix: feature flag nextjs server start

* feat: add prettier rules for ts,tsx files

* fix: remove unnecessary async from next middleware

* fix: next middleware name

* Update tsconfig.json

Co-authored-by: James M. Greene <JamesMGreene@github.com>

* Update next-env.d.ts

Co-authored-by: James M. Greene <JamesMGreene@github.com>

* fix: add typescript linting to lint command

* add comment for unsafe-eval, update webpack to use eval in development

* fix: feature flag typo

Co-authored-by: James M. Greene <JamesMGreene@github.com>
2021-05-05 15:23:46 +00:00
Kevin Heis
3d621ba715 Start an AB test with Lunr search results as treatment (#18993)
* Start search_lunr AB test

* Towards prewarming

* Towards prewarming

* Warm only english/dotcom index

* Update warm-server.js
2021-05-04 16:24:19 +00:00
Sarah Schneider
36599fa9c6 Merge branch 'main' into sublanding-fixes 2021-04-27 20:44:52 -04:00
Sarah Schneider
28949233b9 add TODO comment for future cleanup 2021-04-27 17:15:25 -04:00