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

81 Commits

Author SHA1 Message Date
Tina Barfield
0e1dc7862a Create & migrate a subject folder for Redirects (#39052) 2023-07-17 13:50:04 +00:00
Peter Bengtsson
2ec905fc77 trailingCommas:all on prettier (#38888) 2023-07-11 11:44:52 +00:00
Kevin Heis
f520432027 Create and migrate observability directory (#37448) 2023-06-05 15:42:53 +00:00
Hector Alfaro
4cd28fd735 Remove support for miniTocMaxHeadingLevel (#34758) 2023-02-17 16:29:02 +00:00
Kevin Heis
83af1896b8 Translation cleanup (#33738) 2023-01-04 18:06:51 +00:00
Sarah Schneider
7164f82b48 Script to create or update index.md files (#32416) 2022-11-07 19:17:18 +00:00
Hector Alfaro
9eb0c2c0e1 Update orphaned assets workflow for use with translation repos (#31869) 2022-10-24 15:37:17 +00:00
Hector Alfaro
a02baa2e2e Remove translation-dependent content migration scripts (#31837) 2022-10-19 16:08:46 +00:00
Hector Alfaro
7fe89141b3 Remove translation directory dependency from convert-if-to-ifversion.js (#31835) 2022-10-18 20:59:56 +00:00
Hector Alfaro
25b455c35f Remove unused CrowdIn workflows and scripts (#30234) 2022-09-12 17:59:28 +00:00
Hector Alfaro
077195f5ab REST: Script for adding a GHEC key to API operations (#29683)
* add draft of ghec api rewrite script

* fix regex to allow for any location of the githubCloudOnly prop

* add better logging

* account for missing x-github key

* skip and log each time dotcom isn't a version

* log oauth categories

* move script to a better spot

* remove oauth logging, add more clarity to logs
2022-08-16 17:40:31 +00:00
Peter Bengtsson
88f0b1686f delete script/content-migrations/deduplicate-enterprise-assets.js (#29011)
* delete script/content-migrations/deduplicate-enterprise-assets.js

* update package-lock
2022-07-13 20:48:09 +00:00
Sarah Schneider
14c8fc570e add script 2022-06-06 18:11:17 -04:00
Peter Bengtsson
5733237c00 remove add-tags-to-articles script (#27639) 2022-05-12 10:51:40 -04:00
Sarah Edwards
67e194eea9 Organization discussions and polls (#26517)
Co-authored-by: Steve Guntrip <stevecat@github.com>
2022-04-12 16:11:20 +00:00
Peter Bengtsson
9e2cb3b03e remove update-short-titles-from-csv.js (#25129) 2022-02-08 21:05:05 +00:00
Peter Bengtsson
6efd78b0ac move 'csv-parse' to optional dependencies (#24852) 2022-02-01 12:45:30 +00:00
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