Граф коммитов

223 Коммитов

Автор SHA1 Сообщение Дата
dependabot[bot] faabfaf6f0
Bump ajv from 8.4.0 to 8.6.3 (#21994) 2021-10-10 21:39:29 +00:00
dependabot[bot] 3b0b02d03a
Bump linkinator from 2.14.0 to 2.14.4 (#22001) 2021-10-10 20:45:59 +00:00
dependabot[bot] 059dfedbce
Bump lint-staged from 11.1.2 to 11.2.2 (#22058) 2021-10-10 14:04:48 +00:00
dependabot[bot] f50b5b9ea4
Bump hot-shots from 8.5.1 to 8.5.2 (#21992)
Bumps [hot-shots](https://github.com/brightcove/hot-shots) from 8.5.1 to 8.5.2.
- [Release notes](https://github.com/brightcove/hot-shots/releases)
- [Changelog](https://github.com/brightcove/hot-shots/blob/master/CHANGES.md)
- [Commits](https://github.com/brightcove/hot-shots/compare/v8.5.1...v8.5.2)

---
updated-dependencies:
- dependency-name: hot-shots
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: James M. Greene <JamesMGreene@github.com>
2021-10-10 12:34:45 +00:00
dependabot[bot] d65c99d31c
Bump mdast-util-from-markdown from 1.0.0 to 1.0.3 (#21991)
Bumps [mdast-util-from-markdown](https://github.com/syntax-tree/mdast-util-from-markdown) from 1.0.0 to 1.0.3.
- [Release notes](https://github.com/syntax-tree/mdast-util-from-markdown/releases)
- [Commits](https://github.com/syntax-tree/mdast-util-from-markdown/compare/1.0.0...1.0.3)

---
updated-dependencies:
- dependency-name: mdast-util-from-markdown
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: James M. Greene <JamesMGreene@github.com>
2021-10-10 05:01:24 +00:00
dependabot[bot] 9c49ea6acb
Bump @types/lodash from 4.14.172 to 4.14.175 (#21986)
Bumps [@types/lodash](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/lodash) from 4.14.172 to 4.14.175.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/lodash)

---
updated-dependencies:
- dependency-name: "@types/lodash"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: James M. Greene <JamesMGreene@github.com>
2021-10-09 02:00:17 -05:00
Grace Park 9976bce96a
update script (#21832) 2021-09-30 21:51:00 +00:00
Mike Surowiec d81f51ebf7
Picker improvements (#21765)
* close Language and ArticleVersion pickers after click

* cleanup ArticleGridLayout due to VersionPicker changes

* fix tsc errors resulting from primer upgrade

* fix / update tests

* cleanup mobile pickers visual consistency

* use btn-sm on VersionPicker

* update translation and close on click for enterprise releases

Co-authored-by: Kevin Heis <heiskr@users.noreply.github.com>
2021-09-30 20:22:13 +00:00
James M. Greene 1d0d782342
Production deploy script (#21768)
* Create a logic branch to deploy to production via a local script

* Ignore forceRebuild default value for production

* Add soft warnings for missing-but-not-critical env vars

* Only include the Preboot delay if the Fastly env vars are present

* Add some warning emojis ⚠️

* More emojis!

* Make FASTLY_* checks all independent

* Add more comments about additional env vars recommended for a local prod deployment
2021-09-27 22:17:21 +00:00
Kevin Heis 9ba2e1dd41
Refactor repo ref tests (#21631)
* Refactor repo ref tests

* Update repository-references.js

* Update repository-references.js

* Update repository-references.js

* Update repository-references.js
2021-09-21 21:20:15 +00:00
Grace Park ffb4bd1dd2
Adding run-script-os and updating start for windows os (#21542)
* adding run-script-os and updating start for windows os

* Update package.json

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

Co-authored-by: James M. Greene <JamesMGreene@github.com>
2021-09-17 15:55:27 +00:00
Grace Park 3bf2b8ce9e
updating to prod for redirects (#21510) 2021-09-14 18:17:54 +00:00
Kevin Heis 43158e8392
Upgrade NPM packages (#21480)
* Upgrade a bunch of packages

* ...and upgrade highlightjs

* ... and ajv-formats (but not ajv)

* Revert graphql changes

* Revert "Revert graphql changes"

This reverts commit a5b8a34d52a48a7c2858415f6b1081c1d4902482.

* Update build-changelog.js

* Upgrade html-entities

* Upgrade commander, following migration guide
2021-09-13 23:31:43 +00:00
dependabot[bot] 60fb734c63
Bump next from 11.1.0 to 11.1.1 (#21242)
Bumps [next](https://github.com/vercel/next.js) from 11.1.0 to 11.1.1.
- [Release notes](https://github.com/vercel/next.js/releases)
- [Changelog](https://github.com/vercel/next.js/blob/canary/release.js)
- [Commits](https://github.com/vercel/next.js/compare/v11.1.0...v11.1.1)

---
updated-dependencies:
- dependency-name: next
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: James M. Greene <JamesMGreene@github.com>
2021-09-02 04:49:55 +00:00
Kevin Heis 9f7c20dae8
Upgrade Primer CSS to version 17, removing marketing styles (#20965)
* Package updates

* Fix up things that look broken

* Add to utils

* Lead now just sets font size, just use f3 where needed

* Update package-lock.json

* Update index.tsx

* Delete bump-link.scss

* Update trigger-error.js

* Update components/GenericError.tsx

Co-authored-by: Ash Guillaume <10384315+ashygee@users.noreply.github.com>

* Update ArticlePage.tsx

* Update ActionBar.tsx

* Changes from meeting

* Found a few more monos

* Fix from a merge conflict

* Missed a few f3s

* Update SubLandingHero.tsx

* Bye gradients

* Match up breadcrumbs

* Update SubLandingHero.tsx

* Update lists.scss

Co-authored-by: Ash Guillaume <10384315+ashygee@users.noreply.github.com>
2021-08-31 14:49:39 -07:00
Rachael Sewell 90bcf6c369
upgrade primer/components (#21190)
Co-authored-by: James M. Greene <JamesMGreene@github.com>
2021-08-27 13:16:42 -07:00
Mike Surowiec 06d8f81401
Two-pane Experiment (#21092)
* pull changes from docs-playground

* cleanup, add callout banner

* cleanup linting and test fixes

* add discussion link

Co-authored-by: James M. Greene <JamesMGreene@github.com>
2021-08-26 14:19:40 -04:00
Rachael Sewell df16267a8f
remove cached-index-names file and dry run sync used for Algolia (#21133) 2021-08-25 22:04:26 +00:00
James M. Greene 08db1c970c
Refactor Staging deployment workflow to support open source PRs (#20459)
* Add a Staging build workflow

* Remove all commented out code from build workflow

It will be handled in https://github.com/github/docs-engineering/issues/726

* Use pinned version of upload-artifact action

* Tweaks to build

* Minor deployment script refactoring

* Update the Staging deployment workflow

* Missed refactoring tweak

* Add relevant comments

* Update Heroku app naming convention for Actions deploy to include 'gha-' prefix

* Update Heroku app ConfigVars and SourceBlob for optional prebuilt app

* Remove obsolete 'dist/' dir from PR build artifact

See https://github.com/github/docs-internal/pull/20405

* Ensure a new enough version of npm is used

* Switch to creating a tarball for upload

* Remove obsolete 'layouts' dir from file list

* Ditch the verbosity for 'tar'... too many files

* Add tarball support to deploy

* Add esm workaround to deploy script

See https://github.com/actions/github-script/issues/168

* Temporarily ignore staging deploy workflow from workflow linter

* Update deployment to use a Heroku Build Source instead of a GitHub Actions Artifact

* Update undeploy workflow to use ESM workaround

See https://github.com/actions/github-script/issues/168

* Add 'esm' package to optionalDependencies to better support workaround

See https://github.com/actions/github-script/issues/168

* Add Slack notifications for workflow failures

* Wrap AppSetup polling in try-catch

* Improve dyno monitoring

* Rename 'script/deploy' to have a .js extension #esm

* Update script references to include the extension

* Use non-deprecated Sources API for Heroku

* Use normal quotes

* Stub in a step to mark deployment inactive after timing out

* Apply suggestions from code review

Co-authored-by: Rachael Sewell <rachmari@github.com>

Co-authored-by: Rachael Sewell <rachmari@github.com>
2021-08-25 20:45:51 +00:00
Kevin Heis 86b6b1ad6f
Remove storybook (#21037)
* Remove storybook

* Update index.js
2021-08-23 12:07:54 -07:00
Kevin Heis dc952b9dcf
Upgrade minor packages (#20960)
* Upgrade minor packages

* Add dockerfile syntax back

* Update create-processor.js

* Update create-processor.js
2021-08-19 12:57:39 -07:00
Kevin Heis 8d7bb82e47
Add basic auth to storybook (#20955)
* Add basic auth to storybook

* Update index.js

* Update index.js
2021-08-18 14:03:35 -07:00
Kevin Heis ae7b652463
Create a storybook with callout component (#20902)
* Create a storybook with callout component

* Add to dist/storybook

* Remove references to dist dir, storybook takes place

* Update Callout.stories.tsx

* Update Dockerfile

* Update Dockerfile
2021-08-17 20:28:59 +00:00
Grace Park ccaab2b375
updating package with the fix (#20922) 2021-08-17 16:56:55 +00:00
dependabot[bot] 798a42c904
Bump next from 11.0.1 to 11.1.0 (#20853)
Bumps [next](https://github.com/vercel/next.js) from 11.0.1 to 11.1.0.
- [Release notes](https://github.com/vercel/next.js/releases)
- [Changelog](https://github.com/vercel/next.js/blob/canary/release.js)
- [Commits](https://github.com/vercel/next.js/compare/v11.0.1...v11.1.0)

---
updated-dependencies:
- dependency-name: next
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Kevin Heis <heiskr@users.noreply.github.com>
2021-08-16 09:59:18 -07:00
Ramya Parimi 306751cd62 remove inter fonts, copy-webpack-plugin 2021-08-05 20:15:52 -05:00
Grace Park 2dbea3737a
Removing algolia (#20633) 2021-08-05 13:10:51 -04:00
Kevin Heis 7dd5c5ff67
Package upgrades (#20604)
* Upgrade all minor and patch versions

* Major updates that seem unlikely to impact

* Bring two back down one step

* Remove search-with-your-keyboard

* Remove unused packages

* Lock liquid version
2021-08-02 19:01:38 +00:00
Kevin Heis d68dde17d1
Upgrade pipeline with env `COMMONMARK=1 npm start` to see new, otherwise parse current (#20508)
* Update the trim nightmare

* Update create-processor.js

* Update other packages in the rendering pipeline

* A few more updates

* Fix tables

* Update lint-files.js

* Fix copy code blocks

* Update render-content.js

* remove whitespace from liquid conditionals

* We no longer need require eslint rules

* Neat, it worked

* Revert test change

* Update create-processor.js

* Without aliases

Co-authored-by: Chiedo John <2156688+chiedo@users.noreply.github.com>
Co-authored-by: Rachael Sewell <rachmari@github.com>
2021-07-29 14:24:26 +00:00
Grace Park 44f451eb09
Removing webpack build step (#20405)
* removing webpack build step

* keep copywebpackplugin and add fonts to assets/fonts

* update marketing font path

* update font path

* update font

* remove builtAssets

* remove copying front end code with dist

* move Inter fonts to /assets/fonts/inter

* move copy-webpack-plugin back to deps

Co-authored-by: Mike Surowiec <mikesurowiec@users.noreply.github.com>
2021-07-22 09:11:30 -07:00
Kevin Heis 83ff7ee609
Use a custom version of remark-parse based on 8.0.3 without the trim dependency (#20420)
* Use a custom version of remark-parse based on 8.0.3 without the trim dependency

* Update openapi-schema-check.yml

* Update openapi-schema-check.yml

* Update openapi-schema-check.yml

* Use a package instead of ssh to install

Co-authored-by: Rachael Sewell <rachmari@github.com>
2021-07-20 18:33:30 +00:00
Kevin Heis 57b08e7011
Update version of remark-rehype (#20419) 2021-07-20 10:23:53 -07:00
Mike Surowiec 6bc50f7e30
fix: filter hidden pages from the currentProductTree (SidebarProduct) (#20404)
* fix some async test things

* allow eslint to parse top-level awaits

* fix: filter out hidden pages closer to SidebarProduct usage
2021-07-20 12:32:35 -04:00
Mike Surowiec d45eb121b1
add lint-staged, pre-commit for eslint and prettier (#20368) 2021-07-15 16:41:25 +00:00
Kevin Heis 8a56437c93
Pretty format (#20352)
* Update prettier flow to include JS

* Run prettier

* ...run prettier
2021-07-14 14:35:01 -07:00
Kevin Heis 42e785b0a8
Migrate CommonJS to ESM (#20301)
* First run of script

* Get the app running --- ish

* Get NextJS working

* Remove `node:`

* Get more tests passing in unit directory

* Update FailBot test to use nock

* Update test.yml

* Update Dockerfile

* tests/content fixes

* Update page.js

* Update build-changelog.js

* updating tests/routing

* Update orphan-tests.js

* updating tests/rendering

* Update .eslintrc.js

* Update .eslintrc.js

* Install jest/globals

* "linting" tests

* staging update to server.mjs

* Change '.github/allowed-actions.js' to a ESM export

* Lint

* Fixes for the main package.json

* Move Jest to be last in the npm test command so we can pass args

* Just use 'npm run lint' in the npm test command

* update algolia label script

* update openapi script

* update require on openapi

* Update enterprise-algolia-label.js

* forgot JSON.parse

* Update lunr-search-index.js

* Always explicitly include process.cwd() for JSON file reads pathed from project root

* update graphql/update-files.js script

* Update other npm scripts using jest to pass ESM NODE_OPTIONS

* Update check-for-enterprise-issues-by-label.js for ESM

* Update create-enterprise-issue.js for ESM

* Import jest global for browser tests

* Convert 'script/deploy' to ESM

Co-authored-by: Grace Park <gracepark@github.com>
Co-authored-by: James M. Greene <jamesmgreene@github.com>
2021-07-14 13:49:18 -07:00
James M. Greene 0c48f41ae7
Restrict tasks usually done in CI (search indexing, browser tests) to a single server worker (#20146) 2021-06-24 19:53:54 -05:00
Rachael Sewell aa437c44c8
temp convenience scripts for short titles (#19939) 2021-06-23 04:03:06 +00:00
Mike Surowiec b24fe62965
always render with nextjs when FF is true (#20067)
* always render with nextjs when FF is true

* remove path-to-regexp from package.json
2021-06-22 11:29:51 -07:00
Grace Park d3d1902414
Merge pull request #20017 from github/upgrade-esm
Enforce and Move to Top Level require
2021-06-22 11:27:48 -07:00
Octomerger Bot 416b672168
Merge branch 'main' into repo-sync 2021-06-18 05:22:26 +10:00
Mike Surowiec 1fbaf92e90
upgrade nextjs to v11 (#19995) 2021-06-17 18:55:48 +00:00
Grace Park 52a53cd525
Update package.json 2021-06-16 16:41:57 -07:00
Grace Park 7c4baa9a1d adding packages 2021-06-16 15:30:57 -07:00
Grace Park 310cc5309b pull in main and conflicts 2021-06-16 14:02:31 -07:00
Mike Surowiec 83e33cc9bb
Quiet sass warnings (#19960)
* npm install sass@latest

* add quietDeps: true to webpack config

* prevent error message from hmr abort, cleans up the log

Co-authored-by: Sarah Schneider <sarahs@github.com>
2021-06-16 19:47:01 +00:00
Rachael Sewell bdf724c922
Update a few enterprise release steps (#19072) 2021-06-15 15:07:15 -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
Mike Surowiec 6fbfa7d263
feat: add catch for bad accept-language header, prevent downstream 500 (#19909) 2021-06-14 22:45:29 +00:00
Kevin Heis 75f90c9487
Update current JavaScripts to use Typescript (#19824)
* Update index to make it clear what has hasn't updated to Next/React yet

* Typescriptify events and experiments

* Typescript the old JS for easier integration

* Update release-notes.ts

* Lint

* Run npm i

* Fix a few lint issues

* Update airgap-links.ts

* Update airgap-links.ts

* Update set-next-env to ts

* Update airgap-links.ts

* Update package-lock.json

* Update set-next-env.ts

* Update package-lock.json

* Revert "Update package-lock.json"

This reverts commit b45e8250beeb700719d3b44e1092b0bbd093baba.

* readd fsevents

* Revert "readd fsevents"

This reverts commit 419f3c35080ac4a9072f0b4e8e291e1712ce3639.

* Update openapi-schema-check.yml

* Revert "Update openapi-schema-check.yml"

This reverts commit 5e9f4a29ea11ee343ca17291a40a751920c5b923.

* Update package-lock.json

* Update package-lock.json
2021-06-14 18:07:39 +00:00