1
0
mirror of synced 2025-12-23 11:54:18 -05:00
Commit Graph

56 Commits

Author SHA1 Message Date
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
Rachael Sewell
01e52046f0 migrate away from AWS S3 (#17669) 2021-02-12 10:25:45 -08:00
Jason Etcovitch
e68e6a5185 Revert "Revert "Absorb @github-docs/frontmatter (#17783)" (#17793)" (#17799)
* Revert "Revert "Absorb @github-docs/frontmatter (#17783)" (#17793)"

This reverts commit 11baf43eee.

* Move revalidator to depedencies
2021-02-11 11:15:59 -05:00
Jason Etcovitch
11baf43eee Revert "Absorb @github-docs/frontmatter (#17783)" (#17793)
This reverts commit 1e96c03489.
2021-02-10 20:28:41 +00:00
Jason Etcovitch
1e96c03489 Absorb @github-docs/frontmatter (#17783) 2021-02-10 15:10:46 -05:00
James M. Greene
fb30a0766f Unravel pages (the array + map object) (#16708)
* Revise the 'pages' module to export two methods: 'loadPages' and 'loadPageMap'

Update all existing references to use 'loadPages' for now

* Remove explicit Promise resolutions on loadPage* methods

* Condense reduction method into its now-singular usage spot

* Opt for for-of instead of forEach

* Make require of pages in warm-server more explicit

* Be more explicit about find-page using a pageMap

* Be more explicit about find-page-in-version using a pageMap

* Be more explicit about site-tree using a pageMap

* Extract the map creation from loadPageMap

* Be more explicit about using a pageMap

* Update redirects precompile to take two arguments: pageList, pageMap

* Rename internal loadPages method to loadPageList

* Clarify pageMap is what is stored in context.pages

* Use loadPageMap in tests and stuff
2020-12-03 22:31:10 +00:00
Sarah Schneider
710310c2a7 Merge branch 'main' into remove-html-comments-from-index-files 2020-12-01 09:17:49 -05:00
Sarah Schneider
f606d4754e better regex replacement 2020-11-24 13:14:31 -05:00
Sarah Schneider
04235256af add script 2020-11-24 09:10:34 -05:00