* Working on tool picker
* Start on react version of tool picker
* Update ToolPicker.tsx
* Update tool-switcher.html
* Get it working
* Update browser.js
* Update browser.js
* Update ToolPicker.tsx
* refactor sidebar, scope css, wire up nav events to link component, update tests
* remove link onClick analytics event
* fix: missing key on breadcrumbs
* cleanup FEATURE_NEXTJS
* fixing some server tests
* updating article a for server tests
* update h2 to h4 map topic tests
* data off on TOCs
* updating dropdown article versions links
* Update so markdown renders in intros
* updating typo and all server tests are now passing
* remove nextjs feature flag
* head.js tests pass
* updating article-version-picker
* remove nextjs feature flag browser test
* update header.js tests
* fix page-titles.js test
* fix deprecated-enterprise versions
* adding early access
* testing
* getting childTocItem
* fixing table of contents to show child toc items
* updated to 2 because the sidebar article also has the same link
* remove comment
* updating pick
* Update TocLandingContext.tsx
* update package.json and change className to h4 for h2
* updating with mikes feedback
* remove a.active test
* React clean up: Delete unnecessary layouts/includes Part 2 (#20143)
* Delete unnecessary layouts
* setting back tests failing :(
* update layouts
* delete unnecessary includes
* remove github-ae-release-notes and updating layouts
* remove a.active test
* 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>
* 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>
* 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
* Upgrade primer to 16
* Upgrade colors in scss
* Get SCSS to build
* Initial dark mode support
* trashcan -> trash
* More specific search browser test
* Fix link color on homepage
* Update overrides.scss
* Upgrade some colors to primer variables
* Hide dark mode support for now
* Apply suggestions from code review
* Update overrides.scss
* Move site search to use an endpoint
* Update browser.js
* Update search.js
* Update lib/search/versions.js
Co-authored-by: James M. Greene <JamesMGreene@github.com>
* Fix URLs
Co-authored-by: James M. Greene <JamesMGreene@github.com>
* get link liquid tag to accept variables as param
* new liquid tag `link_as_article_card`
* refactor link liquid tag slightly so we can control what props get rendered
* generalize filterCodeExample to use in all guides section
* pass in `js-filter-card-max` instead of hardcode max
* tweaks and add `data` to CSP for images
* add liquid tag tests
* add some browser tests for card filters
* we still need to rely on `getPathWithLanguage` for hrefs that already have the language code embedded
Co-authored-by: Emily Gould <4822039+emilyistoofunky@users.noreply.github.com>
* End AB test on moving helpfulness prompt to bottom
* Move helpfulness to bottom of page only
* Update helpfulness.js
Co-authored-by: Chiedo John <2156688+chiedo@users.noreply.github.com>
* add frontend search support for GHAE version
* add support for GHAE version to Algolia sync
* add browser tests for frontend search
* if a version can be derived from a path, but it is not a real version (like from a path that 404s), fall back to dotcom
* Update javascripts/search.js
* Update lib/algolia/sync.js