1
0
mirror of synced 2026-01-04 00:06:20 -05:00
Commit Graph

271 Commits

Author SHA1 Message Date
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
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
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
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
Sarah Schneider
757a5961cc delete no longer needed layout file and middleware 2021-04-26 15:36:08 -04:00
Sarah Schneider
87ca1121e3 add new releases content file 2021-04-26 15:33:22 -04:00
Sarah Schneider
81a4b5efcb Merge branch 'main' into update-new-site-tree-deps 2021-04-22 16:12:13 -04:00
jmarlena
1fc4c3f68b Article restructuring for Sponsors landing page (#18772)
* Move article from github directory as a top-level product

* Update article titles

* Remove old -ing article titles

* Use older format for this PR

* Finish updating links for retitled articles

* Remove sponsors topic

* Add sponsors to index.md

* Create folder for map topic for sponsors

* Add integrating folder/category with super basic graphql article

* Add get started category/folder

* Update index.md

* Add articles to category folders and update all the links and check it out locally 🙏

* Fix space

* Fix set of broken links

* Update link in resuable

* Add the quickstart

* Add USD

* Add matching donations caveat

* fix ci failures

* Bringing back `-ing` to Sponsors titles, categories, & links (#18817)

* Bringing back -ing

* The one that got away

* Apply @ethanpalm's input

Co-authored-by: Ethan Palm <56270045+ethanpalm@users.noreply.github.com>

Co-authored-by: Ethan Palm <56270045+ethanpalm@users.noreply.github.com>

* Apply product input

* Apply suggestions from code review

Co-authored-by: Emily Gould <4822039+emilyistoofunky@users.noreply.github.com>

* Apply @emilyistoofunky's input

* Sponsors landing page design (#18774)

* Add sponsors to index.md as a top-level product

* Revamp the GitHub Sponsors landing page with article links

* remove merge tags

* add community section

* add sponsor descriptions

* swap repo for user

* remove prefix tag

* lint

* remove topic fix landing page

* Tweak articles on landing page

* Drop "account"

* Add quickstart

* Bigger, brighter, and shorter intro

* Possibly too long of an intro?

* fix quickstart link

* add guides page

* fix error for mismatch between title and filename

* use link over guid

* remove HTML from layout file (aligns to #18811)

* use variable for section title

* Add intro

* Remove beta

* Apply suggestions from code review

Co-authored-by: Emily Gould <4822039+emilyistoofunky@users.noreply.github.com>

* Apply suggestions from code review

* Integrate article changes and remove old TOC

* Fixing the commented out text to match other landing pages 👓

* Apply suggestions from code review

Co-authored-by: Emily Gould <4822039+emilyistoofunky@users.noreply.github.com>

* Switch up order of sidebar categories

* Add new text to landing page button

* Add topics and types

* Add the underscore

* Add some more topics

* fix `type:`

* Fix topics

* plural ftw

* hide learning paths when not defined

* lint

* Add quickstart to guides page

* remove unused sidebar links

* hide subsection title when learning tracks are not present

* Apply @emilyistoofunky's topics input

* Remove duplicated topics

* Events ftw

* typo

* Remove obsolete topics for now

* add some temporary duplicate topics

* Resolve Linter error

Co-authored-by: Rachael Sewell <rachmari@github.com>
Co-authored-by: Emily Gould <4822039+emilyistoofunky@users.noreply.github.com>

Co-authored-by: Rachael Sewell <rachmari@github.com>
Co-authored-by: Ethan Palm <56270045+ethanpalm@users.noreply.github.com>
Co-authored-by: Kevin Heis <heiskr@users.noreply.github.com>
Co-authored-by: Emily Gould <4822039+emilyistoofunky@users.noreply.github.com>
2021-04-21 11:48:19 -07:00
Sarah Schneider
af519b5131 use article layout for TOCs instead of new separate generic-toc layout that has to be maintained 2021-04-21 13:05:52 -04:00
Sarah Schneider
a22691b082 update middleware/categories-for-support 2021-04-21 10:45:37 -04:00
Sarah Schneider
324d5d7da7 use rendered title in breadcrumbs 2021-04-20 14:04:42 -04:00
Sarah Schneider
b5ffeb8e73 parse Liquid in titles in siteTree and use full titles in generic TOC but short titles in sidebar 2021-04-20 14:02:12 -04:00
Sarah Schneider
5d03537551 differentiate between TOCs with grandchildren vs. only children 2021-04-20 11:15:03 -04:00
Sarah Schneider
26c351f4ff Merge branch 'main' of github.com:github/docs-internal into update-new-site-tree-deps 2021-04-15 14:46:27 -04:00
Sarah Schneider
d1524b16a5 add feature flagged middleware 2021-04-15 14:46:16 -04:00
Sarah Schneider
974b3bb148 add new middleware contextualizers that are feature flagged 2021-04-15 14:36:16 -04:00
Sarah Schneider
e6b2aedd66 Merge branch 'main' into move-html-into-include-files 2021-04-15 13:55:08 -04:00