1
0
mirror of synced 2025-12-21 10:57:10 -05:00
Commit Graph

64 Commits

Author SHA1 Message Date
Kevin Heis
b29e37318a Remove import x statements (#20594)
* Clear out most import x

* Update rimraf use

* Move up readme blocks in scripts
2021-07-29 20:28:30 +00:00
Kevin Heis
0b1ff73a46 Update some readFileSync to await readFile with top level await (#20525)
* Update some readFileSync to await readFile with top level await

* More updates

* Update all-products.js

* Use 'lib/readfile-async.js' in runtime files for better performance

* Remove unnecessary use of 'for await...of' loops

* Revert to importing 'fs/promises'

Co-authored-by: James M. Greene <jamesmgreene@github.com>
2021-07-29 16:45:46 +00: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
fa0fbd0db9 Delete unneeded script files (#20426)
* Delete convert-cjs-to-esm.mjs

* Delete commonmark-indent.js
2021-07-20 16:35:38 -07:00
Sarah Schneider
cc2d10d1b3 Rewrite Liquid deprecation script (#20225) 2021-07-19 22:36:15 +00:00
Kevin Heis
c451f3269e Script to update ol/ul indents from 2 to 4 spaces (#20384)
* Script to update ol/ul indents from 2 to 4 spaces

* Update commonmark-indent.js

* Update commonmark-indent.js
2021-07-19 15:04:22 +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
Sarah Schneider
5e10cea9ac Merge branch 'main' of github.com:github/docs-internal into script-to-use-short-versions 2021-06-23 14:45:10 -04:00
Rachael Sewell
aa437c44c8 temp convenience scripts for short titles (#19939) 2021-06-23 04:03:06 +00:00
Sarah Schneider
e7bd9cb1f0 run script on early access 2021-06-22 13:27:00 -04:00
Sarah Schneider
47184804e2 allow the script to be run on files that already have short names 2021-06-22 13:03:19 -04:00
Sarah Schneider
f5b2590d62 update deprecated frontmatter as part of script run 2021-06-22 12:53:22 -04:00
Sarah Schneider
0c35c0233b Merge branch 'main' of github.com:github/docs-internal into script-to-use-short-versions 2021-06-22 12:50:47 -04:00
Sarah Schneider
bc1a3336e1 update versions props in yaml too 2021-06-16 12:33:44 -04:00
Sarah Schneider
c954c6c3ea add the script! 2021-06-15 15:04:20 -04:00
Grace Park
1823cff641 updating pages to page-data 2021-06-15 11:02:05 -07:00
Grace Park
29e6a7fed8 adding 1 time script to add mini toc frontmatter 2021-06-10 18:02:15 -07:00
Grace Park
05fb4cb9b2 adding just the styling for header update 2021-06-04 10:29:21 -07:00
Grace Park
10b9f0fd18 adding update minitocmaxheadinglevel 2021-06-02 17:04:01 -07:00
Grace Park
de55aeffe9 Adding console log for files that have later headers that are larger than the first 2021-05-27 13:18:31 -07:00
Grace Park
cd9402818a Updating script and tests to include feedback 2021-05-27 12:57:38 -07:00
Grace Park
ab473d0f5f Adding header update script and test 2021-05-26 22:56:47 -07:00
Grace Park
6cbf126291 adding script and tests for checking h2 header start 2021-05-26 22:20:45 -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
Mike Surowiec
37f73f0bb3 Heroku dev deps (#19431)
* fix: req.csrfToken doesn't always exist (e.g. 500 page)

* feat: update dockerfile and add nextjs to build

* fix: run linter

* move @babel deps -> dev deps

* move webpack looking things from deps -> dev deps

* move pa11y-ci to optional dep

* explicitly include optional deps for pa11y

* allow heroku dev deps to be installed

* fix: update postcss module

* fix: update dockerfile build

* tmp: disable renderReact

* see if another deploy is slower/faster

* move a few more packages to devDeps

* upgrade to package-lock v2

* use dayjs instead of date-fns

* move cross-env to devDeps

* remove unused 'del' package

* commit husky precommit hooks

* add hrtime to clone-for-build.js

* Revert "add hrtime to clone-for-build.js"

This reverts commit 70ee647bacce833f4ed2f621f62c63c1d85e5413.

* update babel/eslint

* fix: remove unused plugin

* try a .slugignore

* fix: heroku-postbuild to use npm run build

* fix: i cannot spell dereferenced

* add .next/cache to heroku cacheDirectories

* test cached build

* remove aws-sdk, see what breaks

* move jest-puppeteer to optional deps

* fix: update browser-test.yml to use newer node version

* move jimp to optional dependencies

* move puppeteer to optional dependencies

* fix: ci optional include

* fix: bad copy pasta

* remove previous react experiment

* update tests/README.md with note about optional deps

* bump node test version back to 14

* convert package-lock back to v1

* fix: use node 15.x to leverage npm optional deps

* fix: optional dep install

* test: see what happens with heroku/nodejs-typescript buildpack

* back to heroku/nodejs buildpack

* move jest to optional

* revert jest move

* remove .slugignore

* cleanup dockerfile, move xlsx-population to optional, add comment about optional deps

* Update Dockerfile

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

Co-authored-by: James M. Greene <JamesMGreene@github.com>
2021-05-24 15:40:50 -07:00
Sarah Schneider
22f7957036 Update script/content-migrations/comment-on-open-prs.js 2021-05-17 16:50:28 -04:00
Sarah Schneider
42baac12b6 use a regular issue comment instead of a PR review comment 2021-05-17 16:15:35 -04:00
Sarah Schneider
805ddfec49 new script to add a comment to all open PRs in docs-internal 2021-05-17 15:41:46 -04:00
Sarah Schneider
0235ab938c return early, do not run on empty array 2021-05-17 15:41:27 -04:00
Rachael Sewell
a926da8b08 Update topics to sentence case (#19069) 2021-04-30 19:30:36 -07:00
Sarah Schneider
0093f2e0ee conditionally remove blank lines in TOC content unless they are within extended markdown tags 2021-04-20 14:41:35 -04:00
Sarah Schneider
5e2a1b51c8 update scripts to fix a few bugs 2021-04-20 12:49:57 -04:00
Sarah Schneider
c3f4dcb368 remove hardcoded TOC links from index files but leave other content 2021-04-20 12:02:57 -04:00
Sarah Schneider
27f0448219 preserve hardcoded markdown content in TOC files 2021-04-20 11:25:22 -04:00
Sarah Schneider
eb44f9947d add new content migration script for early access updates 2021-04-15 14:36:36 -04:00
Sarah Schneider
b198a6adf8 update script too 2021-04-01 15:54:54 -04:00
Sarah Schneider
ef8602c639 lint 2021-03-31 12:57:14 -04:00
Sarah Schneider
cdf807fbbd Update script/content-migrations/remove-map-topics.js
Co-authored-by: Rachael Sewell <rachmari@github.com>
2021-03-31 12:51:15 -04:00
Sarah Schneider
61e2ae95cb we do not actually need any body content in index.md files anymore 2021-03-30 13:16:15 -04:00
Sarah Schneider
335b95e330 Update script/content-migrations/update-tocs.js 2021-03-30 11:33:12 -04:00
Sarah Schneider
c31c0c39eb Update script/content-migrations/update-tocs.js 2021-03-30 11:26:38 -04:00
Sarah Schneider
3fc88b58e7 Update script/content-migrations/update-tocs.js 2021-03-30 11:19:08 -04:00
Sarah Schneider
bec9cfdb53 run script on translations 2021-03-30 10:55:46 -04:00
Sarah Schneider
2ff36db754 run script on translations and also update category index files 2021-03-30 10:55:36 -04:00
Sarah Schneider
088aaf648c add script and helper module 2021-03-29 19:38:29 -04:00
Rachael Sewell
80bdffe636 restructure map topics (#18042) 2021-03-29 12:59:08 -07:00
Rachael Sewell
02ee72fa25 add topics attribute to search (#18212) 2021-03-17 13:11:29 -07:00
Rachael Sewell
834163a07a add topic frontmatter (#18238) 2021-03-12 08:17:37 -08:00
Rachael Sewell
e067616355 add script to read topics spreadsheet (#18175) 2021-03-11 17:20:27 -08:00