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

101 Коммитов

Автор SHA1 Сообщение Дата
Mike Surowiec 9386571aa4
fix: use named export for all-versions (#20478)
* fix: use named export for all-versions

* run prettier
2021-07-22 19:29:00 +00:00
Grace Park 27aa5d92ea
Remove FEATURE_NEXTJS Flag Part 1 (#20176)
* 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
2021-07-16 14:54:25 -07: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
Sarah Schneider a344b8f078 hide early access product TOC links 2021-06-29 19:27:54 -04:00
Kevin Heis a92d820888
Remove remaining JSON requires (#20110)
* Remove remaining JSON requires

* Lint

* Update feature-flags.js
2021-06-23 14:57:50 -07:00
Sarah Schneider 7e3e75616c Merge branch 'main' of github.com:github/docs-internal into feature-versioning 2021-06-23 15:59:37 -04:00
James M. Greene 7ee7a1aaaa
Merge branch 'main' into feature-versioning 2021-06-22 15:28:34 -05:00
Grace Park 23f586bb93 merge and fix conflicts 2021-06-22 11:41:10 -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
Mike Surowiec a24d01f78a
Fix NextJS 500s (#20048)
* feat: allow server to contextualize request when on a /_next/data path

* add client side routing test, run lint

* enable nextjs client side routing
2021-06-22 17:30:40 +00:00
Sarah Schneider 1188fa557e
Merge branch 'main' into feature-versioning 2021-06-22 11:07:27 -04:00
Sarah Schneider b13ac1bd85 only hide TOC items on non-early access content; we want it to display on EA pages 2021-06-21 14:40:38 -04:00
Grace Park 7f6a277a8e clear out dynamic require 2021-06-18 13:08:28 -07:00
Grace Park 8154d3b701 adding mostly readfilesync of path updates to require 2021-06-17 20:22:04 -07:00
Sarah Schneider 53291a98e2 Merge branch 'main' of github.com:github/docs-internal into feature-versioning 2021-06-17 14:42:34 -04:00
Sarah Schneider 139f9e0aac name the boolean for clarity 2021-06-17 11:45:13 -04:00
Matt Pollard fb928dfa70
Update logic to check for valid version number in release notes middleware (#19981) 2021-06-17 13:13:30 +00:00
Sarah Schneider 737b18bc5b Merge branch 'main' of github.com:github/docs-internal into feature-versioning 2021-06-16 13:39:49 -04:00
Sarah Schneider acdf131b98 use all instead of supported because deprecated releases get special handling 2021-06-16 11:09:13 -04:00
Sarah Schneider 0553dd0b66 prevent 500s when a bogus version like enterprise-server@3.14788585 is attempted 2021-06-16 10:40:00 -04:00
Sarah Schneider a1c1a81b94 Merge branch 'main' of github.com:github/docs-internal into feature-versioning 2021-06-15 19:41:29 -04: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 f3312199d8
Update middleware/contextualizers/short-versions.js 2021-06-14 15:33:18 -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
Felicity Chapman 23b0b84111
Add Code security landing and guides pages (#19650) 2021-06-10 20:14:56 +00: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 d1cf56abd5 add short names = true to context object so we can access them in Liquid conditionals 2021-06-09 16:58:19 -04:00
Sarah Schneider 7448d3f3ef exclude links to hidden pages on TOC pages 2021-06-04 14:35:28 -04:00
Sarah Schneider 25448712f8 Merge branch 'middleware-perf-part2' of github.com:github/docs-internal into middleware-perf 2021-06-04 13:58:50 -04: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
Sarah Schneider c8e041832b
Update middleware/contextualizers/features.js 2021-05-28 21:27:58 -04:00
Sarah Schneider 02915d5e4e add comments 2021-05-28 19:53:03 -04:00
Sarah Schneider 3a75d49a4f add middleware to enable feature-based versioning 2021-05-28 19:46:18 -04:00
Sarah Schneider 31631b4633 add localized fallbacks to English 2021-05-26 14:28:46 -04:00
Sarah Schneider 0379ba8436 lint 2021-05-24 13:46:55 -04:00
Sarah Schneider dc44855690 preserve deprecated release notes 2021-05-24 12:39:33 -04:00
Sarah Schneider 221de41388 more merge updates 2021-05-24 12:10:58 -04:00
Sarah Schneider de7d02af93 more merge-related updates 2021-05-24 11:59:55 -04:00
Sarah Schneider ff718d7fc1 Merge branch 'main' of github.com:github/docs-internal into github-ae-release-notes 2021-05-24 10:00:07 -04:00
Sarah Schneider 2fcb38f30d move intro rendering back to middleware but do it conditionally 2021-05-21 16:14:14 -04:00
Sarah Schneider 14632635ca fix the path 2021-05-21 15:16:18 -04:00
Sarah Schneider 41b11d4f98 version the path 2021-05-21 15:10:00 -04:00
Sarah Schneider c2324f893b Merge branch 'middleware-perf-part2' of github.com:github/docs-internal into middleware-perf 2021-05-21 12:24:12 -04:00
Sarah Schneider d258e77b17 move the tree rendering steps to lib/page-data which happens during warm-server 2021-05-21 12:06:27 -04:00
Sarah Schneider 912988ed6b refactor generic-toc to be more performant 2021-05-21 12:04:10 -04:00
Sarah Schneider 50386c9d10 use new helper module in middleware 2021-05-21 12:04:00 -04:00
Sarah Schneider 1666d890bc do not blow up if translated file cannot be found 2021-05-19 12:50:07 -04:00
Sarah Schneider 2a72558592 lint 2021-05-19 12:05:05 -04:00
Sarah Schneider c14063d22f use regex to be more precise in href matching than just startsWith 2021-05-19 11:58:34 -04:00