1
0
mirror of synced 2026-01-01 18:05:46 -05:00
Commit Graph

209 Commits

Author SHA1 Message Date
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
Sarah Edwards
f710813a92 prevent jumping when select application (#19789) 2021-06-11 18:21:09 +00:00
Kate Higa
a28fb1ab4d Merge branch 'main' into kh-enable_jsx_a11y_linter 2021-06-10 07:49:20 -07:00
Mike Surowiec
a88e99c83a Reactify: release notes (#19799)
* reactify release-notes pages

* update GHAE/ES react release notes to not rely on javascripts/release-notes.js
2021-06-09 20:44:32 +00:00
Kate Higa
9075069371 add a11y plugin 2021-06-09 09:37:15 -07:00
Kate Higa
d578acf8f6 add necessary eslint/prettier/typescript plugins 2021-06-09 09:37:15 -07:00
Sarah Schneider
32065442d4 undo sass downgrade, it did not fix staging 2021-06-08 13:06:50 -04:00
Sarah Schneider
634ef767bc see if downgrading sass fixes the staging failure 2021-06-08 12:43:03 -04:00
Sarah Schneider
ae8e4dfa9b rewrite get-english-headings to use AST instead of regex 2021-06-08 10:03:50 -04:00
Grace Park
e8c6d272d0 Merge branch 'main' into localization-grace 2021-06-07 13:19:03 -07:00
James M. Greene
3ed5bb77da Clean up dependencies (#19633)
* Just use core Node assert module instead of the browserify one

* Get peerDeps for styled-components into lockfile

* Remove 2 unused csv-parse(r) devDeps that probably got installed during interviews LOL whoops

* Remove unused jest-silent-reporter devDep

* Remove unused mime devDep

* Remove unused postcss devDep

* Remove unused process devDep

* Update sass devDep to latest

* Reintroduce postcss devDep

Error: Cannot find module 'postcss'
Require stack:
- /home/runner/work/docs-internal/docs-internal/node_modules/cssnano-simple/src/index.js
- /home/runner/work/docs-internal/docs-internal/node_modules/next/dist/build/webpack/plugins/font-stylesheet-gathering-plugin.js
- /home/runner/work/docs-internal/docs-internal/node_modules/next/dist/build/webpack-config.js
- /home/runner/work/docs-internal/docs-internal/node_modules/next/dist/build/index.js
- /home/runner/work/docs-internal/docs-internal/node_modules/next/dist/cli/next-build.js
- /home/runner/work/docs-internal/docs-internal/node_modules/next/dist/bin/next
2021-06-02 10:43:39 -05: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
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
James M. Greene
542a459c06 Move script-only dependencies to devDependencies (#19542)
* Move lib/search/sync.js to script/search/sync.js

* Move mdast-util-from-markdown to devDeps

* Move lib/redirects/add-redirect-to-frontmatter.js to script/helpers/

* Move mkdirp to devDeps

* Move linkinator to devDeps

* Move rimraf to devDeps

* Fix script/search/sync.js require paths

* Move lib/search/build-records.js to script/search/

* Move lib/search/find-indexable-pages to script/search/

* Fix require paths for build-records

* Fix require paths for find-indexable-pages

* Move lib/search/algolia-get-remote-index-names.js to script/search/

* Movbe lib/search/algolia-search-index.js to script/search/

* Move lib/search/lunr-search-index.js to script/search/

* Move lib/search/lunr-get-index-names.js to script/search/

* Fix Lunr search index paths

* Move lib/search/validate-records.js to script/search/

* Move is-url to devDeps

* Move lib/search/algolia-client.js to script/search/

* Move lib/search/parse-page-sections-into-records.js to script/search/

* Move lib/search/rank.js to script/search/

* Fix path to cached-index-names.json file

* Normalize require for fs.promises
2021-05-25 20:44:19 +00:00