1
0
mirror of synced 2025-12-22 03:16:52 -05:00
Commit Graph

66 Commits

Author SHA1 Message Date
Rachael Sewell
97594c6b59 Remove 2.21 static files (#20952) 2021-08-19 10:42:02 -07:00
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
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
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
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
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
Sarah Schneider
a5d52dcef0 Add landing page for GitHub Enterprise (#19041) 2021-05-12 11:55:32 +00:00
Sarah Schneider
879c512b65 add oneoff redirect 2021-04-26 15:35:14 -04:00
Sarah Schneider
2f7bfc15bb some lib updates 2021-04-15 14:38:38 -04:00
skullface
53dfd7fae9 redirect to Support site, not Contact form 2021-03-04 14:53:19 +00:00
Sarah Schneider
ca3d587f58 lint 2021-02-26 13:49:24 -05:00
Sarah Schneider
2c8902f826 asyncify redirect loading 2021-02-26 13:23:50 -05:00
Sarah Schneider
7563adce8a add enterprise-server@latest redirect to real latest version 2021-02-26 13:23:37 -05:00
Kevin Heis
408fcdf4fd Remove an old redirect that no one has used in a long time (#17868) 2021-02-22 18:14:51 +00:00
Sarah Schneider
7e0e865c3f few readme edits 2021-01-26 12:28:42 -05:00
Sarah Schneider
f01b56813f make the enterprise developer paths more future-proof for new versions 2021-01-25 13:09:48 -05:00
Sarah Schneider
2846a160e9 draft of redirects README 2021-01-20 15:41:47 -05:00
Sarah Schneider
35b938a8f3 no longer need to precompile developer redirects now that we have the static redirects file 2021-01-19 20:51:48 -05:00
Sarah Schneider
efa186ca73 restore legacy redirect handling needed for (internal docs) links 2021-01-19 20:51:18 -05:00
Sarah Schneider
7e4286f76d replace developer routes with static developer redirects file 2021-01-19 20:50:10 -05:00
Sarah Schneider
d060fddc6f Merge branch 'main' of github.com:github/docs-internal into remove-legacy-redirects 2021-01-19 17:47:30 -05:00
Sarah Schneider
b47aaec71f remove all the legacy redirect handling! 2021-01-19 17:44:42 -05:00
Sarah Schneider
ca395716c5 add latest GHES release to path 2021-01-19 17:44:24 -05:00
Sarah Schneider
e560fb229d add new static file 2021-01-19 17:43:38 -05:00
Sarah Schneider
f0e9369a16 remove never used file 2021-01-19 16:50:21 -05:00
Sarah Schneider
02e95f583a change path.join to path.posix.join for Windows friendliness 2021-01-19 14:47:45 -05:00
Sarah Schneider
752edcfc53 use new static redirects file instead of precompiling on every server restart 2021-01-19 10:46:32 -05:00
Sarah Schneider
a92789ab73 turn static routes file into static redirects file 2021-01-19 10:46:04 -05:00
Sarah Schneider
ba661d65b7 do not create this redirect for deprecated enterprise versions 2021-01-15 15:32:23 -05:00
Sarah Schneider
36c3b108b2 Merge branch 'remove-fpt' of github.com:github/docs-internal into remove-fpt-helper 2021-01-15 11:06:16 -05:00
Sarah Schneider
a8470e9034 remove unnecessary redirect (cuts down on about 18k redirects) 2021-01-15 11:05:48 -05:00
Sarah Schneider
51da7a9749 few tweaks 2021-01-15 10:11:17 -05:00
Sarah Schneider
4d4acd39ca Merge branch 'remove-fpt' of github.com:github/docs-internal into remove-fpt-helper 2021-01-15 09:58:18 -05:00
Sarah Schneider
308e62616d use path.join instead of string interpolation for consistency 2021-01-15 09:56:52 -05:00
Sarah Schneider
b4690547a7 remove no-longer-needed feature flag 2021-01-15 09:42:29 -05:00
Sarah Schneider
374112c55f few tweaks to get passing tests 2021-01-14 17:08:15 -05:00
Sarah Schneider
a78828a443 remove debugging code 2021-01-14 13:51:18 -05:00
Sarah Schneider
64ada8a292 remove debugging code 2021-01-14 13:35:16 -05:00
Sarah Schneider
b511758057 add remove-fpt helper function 2021-01-14 13:34:32 -05:00
Sarah Schneider
b6032f285c remove helper from this branch (to be re-added in child branch for easier reviewing) 2021-01-14 12:07:49 -05:00
Sarah Schneider
79a7a7972f Merge branch 'main' of github.com:github/docs-internal into remove-fpt 2021-01-13 16:58:05 -05:00
Sarah Schneider
d752732b16 update refs to reinstated findPage() 2021-01-13 16:49:35 -05:00
Sarah Schneider
ead1dc202c Merge branch 'main' of github.com:github/docs-internal into remove-fpt 2021-01-07 14:43:50 -05:00
Sarah Schneider
33f93e39c7 remove overloaded helper functions and move code directly where it is used 2021-01-07 13:14:44 -05:00
Kevin Heis
4e781a553c Fix some typos in the lib directory (#17131)
Co-authored-by: Chiedo John <2156688+chiedo@users.noreply.github.com>
2021-01-05 15:53:05 +00:00
Kevin Heis
d507eec2e8 Fix load site data reporting wrong timing data (#17050) 2020-12-17 11:40:25 -08:00
Sarah Schneider
ee7b67bbb5 lint 2020-12-17 12:10:21 -05:00
Sarah Schneider
1aa80996e0 try to make this check as fast as we can 2020-12-17 12:03:45 -05:00
Sarah Schneider
5762bbaad4 support hardcoded versions in frontmatter redirects 2020-12-16 16:23:20 -05:00