1
0
mirror of synced 2026-01-23 12:02:29 -05:00
Commit Graph

400 Commits

Author SHA1 Message Date
Grace Park
91bf056909 Merge branch 'main' into localized-mini-tocs-bugfix 2021-06-17 11:25:53 -07:00
Mike Surowiec
5396f5f9e4 React: All landing pages (#19943)
* default all remaining landing pages to react, update tests
2021-06-17 10:04:53 -07:00
Grace Park
310cc5309b pull in main and conflicts 2021-06-16 14:02:31 -07:00
Grace Park
e795a6c79f Merge branch 'main' of https://github.com/github/docs-internal into site-tree-followup 2021-06-16 08:58:55 -07:00
Grace Park
98b59087c5 updating category pages test 2021-06-15 16:24:54 -07:00
Grace Park
5dd156c726 pages test passes 2021-06-15 14:54:47 -07:00
Mike Surowiec
306f6fc75e Enable more react pages (#19935)
* enable more react landing pages

* move nextjs page logic to separate middleware

* enable codespaces landing page + fixes

* enable /education

* enable /admin

* use pathToRegexp to match routes for react rendering

* run lint

* fix: typo in url

* update sidebar test
2021-06-15 13:31:17 -07:00
Grace Park
1823cff641 updating pages to page-data 2021-06-15 11:02:05 -07:00
Sarah Schneider
0cfa334280 update test 2021-06-14 20:20:11 -04:00
Sarah Schneider
098a6a31bf Merge branch 'support-short-versions' of github.com:github/docs-internal into support-short-versions-in-frontmatter 2021-06-14 19:53:11 -04:00
Sarah Schneider
a200a74a0f Merge branch 'main' into support-short-versions 2021-06-14 19:52:04 -04:00
Sarah Schneider
66a1dc493c support short versions in frontmatter 2021-06-14 19:51:38 -04:00
James M. Greene
f388a3d550 Deploy to staging manually using a script (#19769)
* Add 'script/deploy' to enable manual deploys to Heroku

* Pass API tokens into 'deploy-to-staging' module usage

* Construct Octokit instance to pass in

* Get PR branch name and verify state

* Reorganize

* Rename option to 'octokit'

* Add missing option

* Actually use the convenience methods for convenience

* Simplify top-level script

* Top-level script revisions

* Add parse-pr-url module

* Add create-staging-app-name module

* Remove misplaced comment

* Pass in owner

* Use owner param

* More variables

* Pass owner along more

* Correct prNumber param reference

* Add WIP deploy-to-staging module

* Prevent 'scripts/' and '.github/actions-scripts/' files from being modified in open source repo

* Extract PR author earlier

* Add note about optionally supplying DOCUBOT_REPO_PAT env var

* Override Heroku env var during AppSetup creation instead of later to avoid triggering a second deploy

* Updates to deploy-to-staging module

* Lots of updates

* Add dyno start-up monitoring and warmup requests

* Ignore 'script/deploy' in the repository-references test

* Correct path to Octokit helper

* Temporarily add a 'gha-' prefix to environment names

* Log whole error if terminal. Good for Octokit errors!

* Correct Octokit preview configuration

* Add more logging around Heroku build and release

* Added more timings to log messages

* Monitor dyno states specifically from the dyno list view to avoid 404 oddities when Free dynos are dropped and non-Free dynos are added

* Don't wait for AppSetup status as it includes the Build time

* Updating logging since we don't see DeploymentStatus update messages in the UI =(

* Remove commented out code

* Refactor to extract more properties from the PR object

* Fix reference to pull request number

* Increase Heroku polling intervals from 2.5 seconds to 5 seconds

* Remove unhelpful createDeploymentStatus API calls

* Workaround Heroku's secondary release upon app creation
2021-06-14 22:32:07 +00:00
Grace Park
2c8940a8c8 updating headers of fixture 2021-06-14 14:25:14 -07:00
Sarah Schneider
d96fa5e2f0 add convience props to context and put supported ops in a separate module 2021-06-14 16:24:48 -04:00
Sarah Schneider
47d78cc105 Merge branch 'main' of github.com:github/docs-internal into support-short-versions 2021-06-14 16:16:43 -04:00
Sarah Schneider
5d7174d035 remove .only 2021-06-11 15:32:01 -04:00
Sarah Schneider
7466e24a9b Merge branch 'main' of github.com:github/docs-internal into support-short-versions 2021-06-11 15:25:20 -04:00
Sarah Schneider
b4b4804a07 add ifversion tag linter 2021-06-11 15:23:09 -04:00
Grace Park
3f248976ad Merge branch 'main' of https://github.com/github/docs-internal into grace-header-styling 2021-06-10 18:08:33 -07:00
Felicity Chapman
23b0b84111 Add Code security landing and guides pages (#19650) 2021-06-10 20:14:56 +00:00
Sarah Schneider
37ed508ebe support not keyword and operator 2021-06-10 14:14:45 -04:00
Sarah Schneider
6076350495 Merge branch 'main' of github.com:github/docs-internal into support-short-versions 2021-06-10 14:13:34 -04:00
Kevin Heis
ef48759cb0 React: remove expose (#19771)
* React: remove expose

* Update context.js

* More changes

* fix: scripts check for IS_NEXTJS_PAGE so there's no timing issue

* run lint

Co-authored-by: Mike Surowiec <mikesurowiec@users.noreply.github.com>
2021-06-10 16:53:43 +00:00
Grace Park
b8cb15444b update test 2021-06-10 09:43:32 -07:00
Sarah Schneider
33cec6f10f add linter to catch use of {% if version %} instead of {% ifversion %} 2021-06-10 12:12:00 -04:00
Sarah Schneider
534996d81c change ifver to ifversion 2021-06-10 11:53:56 -04:00
Sarah Schneider
b8bc94aed4 Merge branch 'main' of github.com:github/docs-internal into support-short-versions 2021-06-10 11:50:52 -04:00
Sarah Schneider
5d6d2d2cb7 Merge branch 'main' of github.com:github/docs-internal into support-short-versions 2021-06-09 17:00:37 -04:00
Sarah Schneider
4f43873bbc throw errors if we are trying to evaluate strings in Liquid conditionals (they always evaluate to true and may render content we don't want) 2021-06-09 17:00:05 -04:00
Sarah Schneider
ca30a48ba6 add shortName as a required prop in the versions schema 2021-06-09 16:59:09 -04:00
Sarah Schneider
7a93a3a639 add tests for the ifver tag 2021-06-09 16:58:39 -04:00
Kate Higa
d578acf8f6 add necessary eslint/prettier/typescript plugins 2021-06-09 09:37:15 -07:00
Sarah Schneider
f41ff942cf add tests 2021-06-08 10:03:56 -04:00
Grace Park
e8c6d272d0 Merge branch 'main' into localization-grace 2021-06-07 13:19:03 -07:00
Grace Park
e7f04c0386 Update tests/helpers/supertest.js
Co-authored-by: James M. Greene <JamesMGreene@github.com>
2021-06-07 12:52:50 -07:00
Kevin Heis
516106b7c5 Rename "helpfulness" to survey (#19727) 2021-06-04 12:22:31 -07:00
Sarah Schneider
52daa592d3 Merge branch 'main' of github.com:github/docs-internal into middleware-perf-part2 2021-06-04 13:58:30 -04:00
Mike Surowiec
6bdbe209c9 Default sponsors+discussions pages to nextjs rendering (#19667)
* default to nextjs rendering on sponsors and discussions pages
2021-06-03 11:17:15 -07:00
Grace Park
a3e36c0d6a Merge branch 'main' into localization-grace 2021-06-01 15:45:42 -07:00
Grace Park
8b52946af0 updating to add 2nd preference and accept-language-parser module 2021-06-01 15:45:02 -07:00
Sarah Schneider
49166811f5 exercise the GHAE schema in lint-files 2021-05-28 11:32:41 -04:00
Sarah Schneider
d9e5b026bd add schema specific to GHAE release notes 2021-05-28 11:31:24 -04: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
Grace Park
d6b3d0764d Updating try/catch and adding tests 2021-05-27 15:02:33 -07:00
Grace Park
df318951ea Merge branch 'main' of https://github.com/github/docs-internal into localization-grace 2021-05-27 09:46:48 -07:00
Sarah Edwards
7e4db83ead Add event tracking for application selector (#19533)
Co-authored-by: Kevin Heis <heiskr@users.noreply.github.com>
2021-05-26 14:11:55 -07:00
Sarah Schneider
313cbc8785 lint 2021-05-26 15:18:26 -04:00
Sarah Schneider
6eca699e04 Merge branch 'main' of github.com:github/docs-internal into middleware-perf-part2 2021-05-26 13:54:45 -04:00