1
0
mirror of synced 2025-12-21 19:06:49 -05:00
Commit Graph

384 Commits

Author SHA1 Message Date
James M. Greene
e1f3f6457e Merge branch 'main' into hidden-docs-alt 2020-11-09 13:09:52 -06:00
James M. Greene
f410fd175c Mostly reverting github/docs-internal#15313 2020-11-09 13:07:04 -06:00
Sarah Schneider
dfb29cfb59 Remove no longer needed middleware (#16384)
* remove no longer needed middleware

* remove accompanying test
2020-11-06 14:14:28 -05:00
Jason Etcovitch
ac2bc682d1 Don't bork locally without Hydro (#16361)
* Add hydro.maySend() check

* Return a 200 to differentiate

* Add NODE_ENV check, move below validation
2020-11-05 19:06:46 +00:00
Sarah Schneider
089e99b96c Merge branch 'main' into hidden-docs-alt 2020-11-03 20:11:41 -05:00
Kevin Heis
85c52d47e5 Don't record 304 redirects (#16245) 2020-11-03 22:21:12 +00:00
Kevin Heis
8b8d6d24d3 Merge branch 'main' into hidden-docs-alt 2020-11-03 10:19:14 -08:00
Chiedo John
7924aea2f8 Instruct search engines to not crawl archived versions (#16292)
* Instruct search engines to not crawl archived versions

* Update middleware/robots.js

Co-authored-by: Sarah Schneider <sarahs@users.noreply.github.com>

* Add test

* Fix spooky bug

Co-authored-by: Chiedo <chiedo@users.noreply.github.com>
Co-authored-by: Sarah Schneider <sarahs@users.noreply.github.com>
2020-11-03 08:23:22 -05:00
James M. Greene
521d11b6a4 Merge branch 'main' into hidden-docs-alt 2020-11-02 18:03:48 -06:00
Laura Coursen
a3e1733aa1 GitHub AE (GHAE) (#16090) 2020-11-02 15:12:44 -06:00
Sarah Schneider
63e3f917c6 Merge branch 'main' of https://github.com/github/docs-internal into hidden-docs-alt 2020-11-02 14:21:19 -05:00
Jason Etcovitch
174d8539c6 Support arbitrary keys in new featuredLinks frontmatter (#16239)
* Add featuredLinks to frontmatter

* Parse them in featured-links.js

* Remove old raw setup

* Use them

* Missed a couple

* Update translation files

* Fix frontmatter schema

* Loop over the right object

* Also update translations' usage

* Update docs and tests

* Better README comment

Co-authored-by: Sarah Schneider <sarahs@users.noreply.github.com>

* Return next()

Co-authored-by: Sarah Schneider <sarahs@users.noreply.github.com>
2020-10-27 13:53:10 -04:00
Rachael Sewell
f22a82fcfb translate openapi versioning (#16202) 2020-10-26 14:38:30 -07:00
Kevin Heis
d743ff9512 Remove more Google Analytics references (#16194) 2020-10-26 14:17:49 -07:00
Kevin Heis
93849795e0 Record redirect events (#16181)
* Record redirect events

* Update index.js

* Update record-redirect.js

* Only run when it can send to Hydro

* Update record-redirect.js
2020-10-26 10:18:42 -07:00
Sarah Schneider
d7be84f277 Merge branch 'main' of https://github.com/github/docs-internal into hidden-docs-alt 2020-10-23 10:28:52 -04:00
Chiedo John
3600e4d9ee Don't enable cache on CI (#16180)
Co-authored-by: Chiedo <chiedo@users.noreply.github.com>
2020-10-22 15:10:19 -04:00
Chiedo John
73559d914e Add a in-memory page cache for renderings (#16173)
* Add a in-memory page cache for renderings

* Update render-page.js

* Update render-page.js

* Update render-page.js

* Make the render page cache more intelligent

Co-authored-by: Chiedo <chiedo@users.noreply.github.com>
2020-10-22 14:35:19 -04:00
Sarah Schneider
d290d40ffc update middleware and tests around robots.txt exclusions of hidden/EA content 2020-10-22 10:07:20 -04:00
Sarah Schneider
e44bef852a Merge branch 'main' of https://github.com/github/docs-internal into hidden-docs-alt 2020-10-21 15:37:31 -04:00
Kevin Heis
380c4dcc82 Hydro exit event (#16067)
* Start a basic exit event

* Combine to one performance function

* Lint

* Fancy operators

* Update events.js

* Update events.js

* Update cookie-settings.js

* Add scroll tracking

* Tell "standard" to use babel-eslint

* Throttle scroll tracking

* Lint

* Use sendBeacon

* Update index.js
2020-10-21 09:42:02 -07:00
Sarah Schneider
a45c8549d6 activeProducts are neither wip nor hidden 2020-10-20 17:21:29 -04:00
Chiedo John
9f10fdd033 Improve performance of csrf errors (#16136)
* Improve performance of csrf errors

* Fix handle csrf error middleware

Co-authored-by: Chiedo <chiedo@users.noreply.github.com>
2020-10-20 11:42:05 -04:00
Kevin Heis
8982d200cc Migrate experiments and helpfulness to Hydro (#16059)
* Migrate experiments and helpfulness to Hydro

* Clean out old tests

* ...and more old tests to delete
2020-10-19 14:31:54 -07:00
Sarah Schneider
da60aa51e1 Support enterpriseServerVersions in Liquid statements (#16058)
* remove outdated and redundant context.enterpriseVersions and add new context.enterpriseServerVersions

* update references from context.enterpriseVersions -> context.enterpriseServerReleases

* add test

* also test oldest supported enterprise version in addition to the latest

* Script to update not-free-pro-team conditionals (#16060)

* script to update not-free-pro-team conditionals

* change string to regex so we can do replace all

* remove stray test.only

* Update middleware/context.js

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

* Update tests/unit/page.js

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

* Update tests/unit/page.js

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

* Update tests/fixtures/page-versioned-for-all-enterprise-releases.md

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

Co-authored-by: James M. Greene <JamesMGreene@github.com>
2020-10-15 16:20:41 -04:00
Chiedo
6e2fa20dd8 Merge remote-tracking branch 'origin/jeffmcaffer-patch-4' into bulk-windows-fixes-1602277955 2020-10-09 17:17:31 -04:00
Kevin Heis
10371a375b Send a 502 when write to airtable or hydro fails (#15976) 2020-10-09 10:26:54 -07:00
Jeff McAffer
a9112d885d fix up redirect paths for Windows 2020-10-09 08:24:01 -07:00
Kevin Heis
7c0c493c35 Sending events to POST /events endpoint (#15796) 2020-10-08 09:24:41 -07:00
Chiedo John
89e546ffd1 Make Rate Limiter Aggressive on statuses > 400 (#15888)
Make Rate Limiter Aggressive on statuses > 400

This is based on the hypothesis that the Node
application shouldn't be getting hit with a large number of requests in
general thanks to Fastly and certainly shouldn't be getting hit with a
large number of requests that have status codes greater than 400 unless
a user or bot is trying to guess random URLs and as a result. For
example, see this IP address that caused some site issues on October 3

Co-authored-by: Chiedo <chiedo@users.noreply.github.com>
Co-authored-by: Jason Etcovitch <jasonetco@github.com>
2020-10-05 10:36:13 -04:00
Sarah Schneider
5caa6f282c satisifies -> satisfies (#15814) 2020-09-30 10:28:47 -04:00
Sarah Schneider
aa5a62d49d Remove versions feature flag code (#15793)
* remove FEATURE_NEW_VERSIONS from feature-flags.json

* remove process.env.FEATURE_NEW_VERSIONS from include files

* remove process.env.FEATURE_NEW_VERSIONS from lib files

* remove process.env.FEATURE_NEW_VERSIONS from middleware files

* remove process.env.FEATURE_NEW_VERSIONS from script files

* remove process.env.FEATURE_NEW_VERSIONS from test files

* update test fixtures to use new versions as canonical fixtures
2020-09-29 13:36:07 -04:00
Kevin Heis
c450d8d555 Send CSRF tokens over XHR (#15778)
* Send CSRF tokens over XHR

* Update events.js

* Update browser.js
2020-09-28 09:44:14 -07:00
Vanessa Yuen
3df90fc9b8 Hello git history spelunker!
Are you looking for something? Here is all of the GitHub Docs history in one single commit. Enjoy! 🎉
2020-09-27 14:10:11 +02:00