1
0
mirror of synced 2026-01-05 03:06:35 -05:00
Commit Graph

262 Commits

Author SHA1 Message Date
Jason Etcovitch
0ec47e0246 Only read the frontmatter from files in warm-server (#17222)
* Add read-frontmatter.js

* Use it

* Page static read/init are async now

* Fix some blockers

* I'm confused

* Fix some more bugs

* Use frontmatter schema, ensure end fence exists

* Fix a bug

* Still read full contents for index.md files

* Remove comment

* Only get ToC items for index pages

* Readd frontmatter error and verdadero handling

* Fix some borked tests

* Simplify the code

* Add a comment

* Remove redundant variable

* Re-simplify the Page construction

* End chunk _after_ endline

* Just use Page.init
2021-01-14 10:46:59 -05:00
github-openapi-bot
b1364b06c1 Updating OpenAPI descriptions (#17294)
* Updating OpenAPI descriptions

* Add decorated OpenAPI schema files
2021-01-14 15:52:14 +10:00
Melanie Yarbrough
c2336bb11e [DO NOT MERGE] GitHub Enterprise Server 3.0 release candidate megabranch (#16479) 2021-01-13 19:16:05 -08:00
Vanessa Yuen
641ed02e81 Actions Guides sublanding page (#16740)
Co-authored-by: Emily Gould <4822039+emilyistoofunky@users.noreply.github.com>
Co-authored-by: Cynthia Rich <crichID@github.com>
2021-01-11 18:30:57 +01:00
Vanessa Yuen
8c881e6b1a do not error out if TOC parent does not have attribs (#17246) 2021-01-11 09:57:05 -05:00
github-openapi-bot
ccf681e2c7 Updating OpenAPI descriptions (#17234)
* Updating OpenAPI descriptions

* Add decorated OpenAPI schema files
2021-01-08 23:54:53 +00:00
github-openapi-bot
10f7f2890e Updating OpenAPI descriptions (#17209)
* Updating OpenAPI descriptions

* Add decorated OpenAPI schema files

Co-authored-by: Shati Patel <42641846+shati-patel@users.noreply.github.com>
2021-01-08 10:11:13 +00:00
Abby Vollmer
f5a2c56de6 Project Visby site-policy updates (change date + hide from GitHub Docs) (#17139)
and support site policy hidden articles
2021-01-07 22:44:34 +00:00
github-openapi-bot
04619a24b1 Updating OpenAPI descriptions (#17202) 2021-01-07 13:12:24 +00:00
github-openapi-bot
00aed22a20 Updating OpenAPI descriptions (#17187)
* Updating OpenAPI descriptions

* Add decorated OpenAPI schema files

Co-authored-by: Sarah Edwards <skedwards88@github.com>
2021-01-07 01:09:15 +00:00
github-openapi-bot
0c5c785c76 Updating OpenAPI descriptions (#17182)
* Updating OpenAPI descriptions

* Add decorated OpenAPI schema files

Co-authored-by: Sarah Edwards <skedwards88@github.com>
2021-01-07 01:00:10 +00:00
James M. Greene
ae20d046c5 Pass the Redis database number as an option rather than in the URL (#17194)
* Pass the Redis database number as an option rather than in the URL

* Remove rogue 'console.log'
2021-01-06 18:48:21 -06:00
Sarah Edwards
65b5c707fb Merge branch 'main' into openapi-update-4c3c34d090578794b4ce8a45185511e872332f09bb45c9ed520b8415a28fbf16 2021-01-06 16:28:20 -08:00
James M. Greene
068c472084 Cache rendered pages in Redis (#17106)
* Explicitly set the Redis database number used for rate limiting

* Switch to using ioredis as the Redis client for rate limiting

* Install ioredis-mock as a primary dependency

* Create a Redis BasicAccessor class and tests

* Switch rendered page caching to use Redis for storage

* Add support for additional Redis SET options like TTLs

* Remove currently unused methods

* Rename redis-accessors/basic to redis-accessor and remove extra fluff

* Change default behavior for cache setting to throw if an error occurs

Add option allowSetFailures to facilitate graceful failures

* Allow SET failures to fail gracefully for the rendered page cache

* Remove as-yet unneeded serialization options from RedisAccessor

* Move Redis client construction into RedisAccessor constructor, just pass in databaseNumber as option

* Remove rendered-page-cache in favor of direct RedisAccessor use

* Add tests for RedisAccessor constructor param validations

* Eliminate one roundtrip to Redis for the cached HTML existence check

Are we fast yet?

* Set a rendered page cache TTL of 24 hours
2021-01-06 15:30:51 -06:00
github-openapi-bot
484cab29f1 Add decorated OpenAPI schema files 2021-01-05 18:43:28 +00:00
github-openapi-bot
c410ae48bc Updating OpenAPI descriptions 2021-01-05 10:37:58 -08:00
Kevin Heis
3582de03da Parentheticals -> parentheses (#17130) 2021-01-05 17:04:01 +00:00
Kevin Heis
4e781a553c Fix some typos in the lib directory (#17131)
Co-authored-by: Chiedo John <2156688+chiedo@users.noreply.github.com>
2021-01-05 15:53:05 +00:00
Jason Etcovitch
258e83346b Hide ToC items with hidden (#17107) 2020-12-30 12:55:10 -05:00
github-openapi-bot
02fe169252 Updating OpenAPI descriptions (#17089)
* Updating OpenAPI descriptions

* Add decorated OpenAPI schema files
2020-12-22 17:27:28 -08:00
github-openapi-bot
e85af672c6 Updating OpenAPI descriptions (#17079)
* Updating OpenAPI descriptions

* Add decorated OpenAPI schema files
2020-12-22 14:17:35 +00:00
github-openapi-bot
3686c69970 Updating OpenAPI descriptions (#17077)
* Updating OpenAPI descriptions

* Add decorated OpenAPI schema files

Co-authored-by: Lucas Costi <lucascosti@users.noreply.github.com>
2020-12-22 05:09:15 +00:00
github-openapi-bot
c4f3610160 Updating OpenAPI descriptions (#17076)
* Updating OpenAPI descriptions

* Add decorated OpenAPI schema files

Co-authored-by: Lucas Costi <lucascosti@users.noreply.github.com>
2020-12-22 04:50:51 +00:00
Chiedo John
4654635962 Merge branch 'main' into default-platform 2020-12-18 10:45:26 -05:00
Kevin Heis
d507eec2e8 Fix load site data reporting wrong timing data (#17050) 2020-12-17 11:40:25 -08:00
Sarah Schneider
ee7b67bbb5 lint 2020-12-17 12:10:21 -05:00
Sarah Schneider
1aa80996e0 try to make this check as fast as we can 2020-12-17 12:03:45 -05:00
Sarah Schneider
afbd4b7ce4 we need to use a regex so we can be sure we are removing the final segment of the path... apparently this is still faster than a split/slice/join 2020-12-17 12:03:22 -05:00
Sarah Schneider
969c8d5110 Merge branch 'main' into revert-16952-revert-16947-optimize-sitetree 2020-12-17 11:10:00 -05:00
Sarah Schneider
d31d89c62b borrow initial findPage lookup from #16965 2020-12-17 10:51:07 -05:00
Sarah Schneider
75deecd386 add some clarifying comments 2020-12-17 10:50:52 -05:00
Sarah Schneider
78895184a7 updates for clarity 2020-12-17 10:19:44 -05:00
Sarah Schneider
dca73aa39c Merge branch 'check-links-improvement-redux' of github.com:github/docs-internal into check-links-improvement-redux 2020-12-17 09:58:16 -05:00
Sarah Schneider
8d84a90e6f do more path checking 2020-12-16 21:24:50 -05:00
Kevin Heis
59f375ab1d Merge branch 'main' into default-platform 2020-12-16 14:36:46 -08:00
Sarah Schneider
ef9b03a867 Merge branch 'main' of github.com:github/docs-internal into check-links-improvement-redux 2020-12-16 16:32:41 -05:00
Sarah Schneider
5762bbaad4 support hardcoded versions in frontmatter redirects 2020-12-16 16:23:20 -05:00
Chiedo John
9ab71614fc Merge branch 'main' into revert-16952-revert-16947-optimize-sitetree 2020-12-16 15:03:20 -05:00
Jason Etcovitch
b22fe856c8 Report unhandledRejections and uncaughtExceptions to Sentry (#17014)
* Report to Sentry in error handlers

* Support optional metadata
2020-12-16 16:28:25 +00:00
Sarah Edwards
01aacb75c9 Merge branch 'main' into openapi-update-56c466560673b0199afcc6bfcf10a3be57ac4fc3c22e2321682ced3d5c643588 2020-12-15 16:13:47 -08:00
Sarah Edwards
b4680affd9 Merge branch 'main' into openapi-update-56c466560673b0199afcc6bfcf10a3be57ac4fc3c22e2321682ced3d5c643588 2020-12-15 16:07:01 -08:00
Sarah Schneider
6ada81f28a Merge branch 'main' into support-hardcoded-version-or-plan-in-link 2020-12-15 19:00:25 -05:00
Sarah Edwards
df3f93f659 Merge branch 'main' into openapi-update-ee08caecaba15870b5af75055eaba8b84f323bcc103f430d426b6273f5374f72 2020-12-15 15:50:54 -08:00
Sarah Edwards
7105b88fc2 Merge branch 'main' into openapi-update-063564b04015a3f60bb3e219a3f353af5dbbac3628d3ba333190cacf465973b5 2020-12-15 15:15:16 -08:00
Kevin Heis
1cf2a16d21 Merge branch 'main' into revert-16952-revert-16947-optimize-sitetree 2020-12-15 14:05:49 -08:00
Kevin Heis
0f685115f7 Revert file reads from async to sync (#16979)
* Revert file reads from async to sync

* Async funness

* Fix warm server timers

Co-authored-by: Chiedo John <chiedo@chiedosbmacbook.lan>
2020-12-15 22:04:41 +00:00
Jason Etcovitch
42694f4355 Datadog on staging (#16982)
* Include Datadog buildpack

* Add heroku_app tag to statsd
2020-12-15 15:02:03 -05:00
Kevin Heis
3dae194793 Merge branch 'main' into revert-16952-revert-16947-optimize-sitetree 2020-12-15 11:01:37 -08:00
Kevin Heis
85ddb82fe8 Avoid mixing sync and async during warmServer (#16940)
* Avoid mixing sync and async during warmServer

* Update data-directory.js

* Move more sync processing to later

* Update pages.js

* Update pages.js
2020-12-15 10:56:25 -08:00
Kevin Heis
122da9610c Move redirect calculation from loadPages to loadRedirects (#16918)
* Move redirect calculation from loadPages to loadRedirects

* Make buildredirects a method for tests

* Update redirects.js

Co-authored-by: Chiedo John <2156688+chiedo@users.noreply.github.com>
2020-12-15 18:40:50 +00:00