1
0
mirror of synced 2025-12-21 02:46:50 -05:00
Commit Graph

341 Commits

Author SHA1 Message Date
Sarah Schneider
81a4b5efcb Merge branch 'main' into update-new-site-tree-deps 2021-04-22 16:12:13 -04:00
Rachael Sewell
ae4cddcf13 OpenAPI bug fixes (#18625) 2021-04-21 15:09:36 -07:00
Sarah Schneider
0093f2e0ee conditionally remove blank lines in TOC content unless they are within extended markdown tags 2021-04-20 14:41:35 -04:00
Sarah Schneider
5e2a1b51c8 update scripts to fix a few bugs 2021-04-20 12:49:57 -04:00
Sarah Schneider
c3f4dcb368 remove hardcoded TOC links from index files but leave other content 2021-04-20 12:02:57 -04:00
Sarah Schneider
27f0448219 preserve hardcoded markdown content in TOC files 2021-04-20 11:25:22 -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
eb44f9947d add new content migration script for early access updates 2021-04-15 14:36:36 -04:00
Sarah Schneider
a0bdb5ea76 Crowdin merge helper scripts (#18684) 2021-04-14 18:49:15 +00:00
Mike Surowiec
ac84e362b0 Merge branch 'main' into update-webpack-dep 2021-04-14 10:30:59 -07:00
James M. Greene
e380867788 Explicitly execute purge-redis-pages script only if Node was found (#18751) 2021-04-14 16:03:24 +00:00
Mike Surowiec
4a931237ea Merge branch 'main' into update-webpack-dep 2021-04-13 16:55:31 -07:00
James M. Greene
85bb052b4f Heroku release command bash wrapper (#18743)
* Add tiny Bash wrapper to check for Node before attempting to execute Heroku release script

* Use the wrapper script for the Heroku release command

* Be explicit about exiting with Node's exit code

* If Node is missing, exit using that script's exit code
2021-04-13 21:12:20 +00:00
Mike Surowiec
4b746d037e Merge branch 'main' into prerender-gql-input-objects 2021-04-13 08:31:56 -07:00
Mike Surowiec
70c1f1ffb9 fix: remove trailing comma 2021-04-13 08:25:43 -07:00
Mike Surowiec
4b7a12f23b reduce some repitition in prerendering graphql 2021-04-13 08:22:41 -07:00
Felicity Chapman
a59306d1cd Clarify advice on changes to translations (#18685) 2021-04-12 14:31:10 +00:00
Mike Surowiec
02cfde71bf Merge branch 'main' into prerender-gql-input-objects 2021-04-12 07:21:18 -07:00
Mike Surowiec
2fa97a2287 Merge branch 'main' into update-webpack-dep 2021-04-11 19:46:17 -07:00
Marc-Andre Giroux
1635048d0f Add an openapi-check ci check and dockerize it (#18652) 2021-04-09 11:02:53 -07:00
Sarah Schneider
53b7208fe9 Merge branch 'main' into update-webpack-dep 2021-04-09 12:22:18 -04:00
Mike Surowiec
9185eb3c2a pre-render graphql input-objects
resolves #18269
2021-04-09 08:32:42 -07:00
Sarah Schneider
520ff1bc5f Merge branch 'main' of github.com:github/docs-internal into move-product-list-to-frontmatter 2021-04-07 14:33:56 -04:00
Sarah Schneider
075840b1c2 ignore assert in dep check 2021-04-07 08:36:05 -04:00
Sarah Edwards
c66b44fcf8 pass include_unpublished when generating the root api files (#18532) 2021-04-05 16:46:19 +00:00
github-openapi-bot
10fef4dfad Update OpenAPI Descriptions (#18553)
Co-authored-by: Rachael Sewell <rachmari@github.com>
2021-04-02 15:45:24 -07:00
Sarah Schneider
107b8e5bc0 Move scheduled tasks code into docs repo (#17926)
Co-authored-by: Rachael Sewell <rachmari@github.com> - https://github.com/github/docs-internal/pull/18453
2021-04-02 12:42:41 -07:00
James M. Greene
8a22cb1c61 Enable offline queuing for Redis client when purging (#18570) 2021-04-02 19:24:03 +00:00
Sarah Schneider
b198a6adf8 update script too 2021-04-01 15:54:54 -04:00
James M. Greene
43d354c1d9 Crowdin script tweaks (#18516)
* Make script/fix-translation-errors.js executable

* Make script/test-render-translation.js executable

* Update script/test-render-translation.js README

Co-authored-by: Vanessa Yuen <6842965+vanessayuenn@users.noreply.github.com>
2021-03-31 17:53:55 +00:00
Sarah Schneider
edd9343272 Merge branch 'main' into script-to-move-toc-links-into-frontmatter 2021-03-31 13:23:09 -04:00
Rachael Sewell
071317da3d Tweak the rest api ghes release script (#18509) 2021-03-31 17:22:25 +00:00
Sarah Schneider
ef8602c639 lint 2021-03-31 12:57:14 -04:00
Sarah Schneider
150696005b Merge branch 'main' into script-to-move-toc-links-into-frontmatter 2021-03-31 12:51:23 -04:00
Sarah Schneider
cdf807fbbd Update script/content-migrations/remove-map-topics.js
Co-authored-by: Rachael Sewell <rachmari@github.com>
2021-03-31 12:51:15 -04:00
James M. Greene
2d08ebe6cd Tidy up the Redis purge script (#18506)
* Improve comment accuracy
* Name local constant for the create-client module ref consistently
2021-03-31 02:49:27 +00:00
James M. Greene
d8e0b29fcd Use node-redis for soft-purging cache on deploy (#18474)
* Use [node-]redis as a direct dependency

* Extract Redis client creation to its own module

* Attach extensive logging in the Redis client creation module

* Allow the rate limiter to pass requests when Redis is disconnected

* Update rate-limit-redis

* Default error input to empty object for formatRedisError method

* Provide a name for the rate limiter's Redis client

* Include redis-mock, exclude ioredis/ioredis-mock

* Remove unused RedisAccessor#exists method

* Switch RedisAccessor to use redis/redis-mock

* Provide a name for logging on the Redis page cache

* Remove extraneous trailing space from Redis logging prefix

Our updated use of console.* will already be adding a space after the prefix

* Replace ioredis-mock with redis-mock in tests

* Revert removal of ioredis dependency

* Bind Redis client to async promisified methods

* Extract former RedisAccessor constructor tests to new create-client tests

* Update RedisAccessor tests to work with the callback-based redis client

* Handle formatting Redis errors (or not) with more resiliency

* Remove ioredis as a dependency

* Update Redis soft-purging script to use node-redis

* Do more promisifying for less ugly code

* Add comment explaining TTL of -1

* Make the script executable
2021-03-30 20:40:28 +00:00
Sarah Schneider
61e2ae95cb we do not actually need any body content in index.md files anymore 2021-03-30 13:16:15 -04:00
Sarah Schneider
335b95e330 Update script/content-migrations/update-tocs.js 2021-03-30 11:33:12 -04:00
Sarah Schneider
c31c0c39eb Update script/content-migrations/update-tocs.js 2021-03-30 11:26:38 -04:00
Sarah Schneider
3fc88b58e7 Update script/content-migrations/update-tocs.js 2021-03-30 11:19:08 -04:00
Sarah Schneider
bec9cfdb53 run script on translations 2021-03-30 10:55:46 -04:00
Sarah Schneider
2ff36db754 run script on translations and also update category index files 2021-03-30 10:55:36 -04:00
Sarah Schneider
088aaf648c add script and helper module 2021-03-29 19:38:29 -04:00
Rachael Sewell
80bdffe636 restructure map topics (#18042) 2021-03-29 12:59:08 -07:00
Vanessa Yuen
a8d54c9af7 Improvements in tools to help merge crowdin PRs (#18409)
- add `script/test-render-translation.js` to render all translated content to catch malformed liquid that would cause render errors
- improve test output for `script/fix-translation-errors.js` and `tests/content/lint-files.js`
- make it so `script/reset-translated-file.js` can handle files that have been renamed
2021-03-26 19:21:45 +00:00
Rachael Sewell
a9bee89188 Remove sentence case from openapi response (#17872) 2021-03-25 13:47:55 -07:00
Rachael Sewell
0df04f99c5 deprecate 2.20 version (#18354) 2021-03-23 19:38:04 +00:00
James M. Greene
6e20ed7927 Implement app clustering (#17752)
* Install throng for easy cluster management
* Extract the Express app construction into its own file
* Switch server.js to use app clustering for deployed environments
* Worker count is based on the lesser of process.env.WEB_CONCURRENCY and the count of CPUs
* Reading clustered output is difficult, let's prefix the std{out,err} streams

Co-authored-by: Jason Etcovitch <jasonetco@github.com>
2021-03-19 20:07:46 +00:00
Rachael Sewell
28ff566293 rest api enterprise hostname fix (#18095) 2021-03-18 22:16:14 -07:00