1
0
mirror of synced 2025-12-20 10:28:40 -05:00
Commit Graph

19 Commits

Author SHA1 Message Date
Peter Bengtsson
5c73e13291 remove cheerioObject option (#33585) 2022-12-15 18:10:56 +00:00
Peter Bengtsson
07c8fc3c2a Decouple redirects from language (#24597)
* experimenting with redirects

* cleanup developer.json

* wip

* clean console.log

* progress

* some progress

* progress

* much progress

* debugging tests

* hacky progress

* ditch latest -> number redirects

* minor

* hacky progress

* lots of progress

* some small fixes

* fix rendering tests

* small fixes

* progress

* undo debugging

* better

* routing tests OK

* more cleaning

* unit tests

* undoing lineending edit

* undoing temporary debugging

* don't ever set this.redirects on Page

* cope with archived version redirects

* adding code comments on the major if statements

* address all feedback

* update README about redirects

* delete invalid test

* fix feedback
2022-02-14 20:19:10 +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
d68dde17d1 Upgrade pipeline with env COMMONMARK=1 npm start to see new, otherwise parse current (#20508)
* Update the trim nightmare

* Update create-processor.js

* Update other packages in the rendering pipeline

* A few more updates

* Fix tables

* Update lint-files.js

* Fix copy code blocks

* Update render-content.js

* remove whitespace from liquid conditionals

* We no longer need require eslint rules

* Neat, it worked

* Revert test change

* Update create-processor.js

* Without aliases

Co-authored-by: Chiedo John <2156688+chiedo@users.noreply.github.com>
Co-authored-by: Rachael Sewell <rachmari@github.com>
2021-07-29 14:24:26 +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
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
Grace Park
1823cff641 updating pages to page-data 2021-06-15 11:02:05 -07:00
Sarah Schneider
67c90c636e lint 2021-03-02 15:42:37 -05:00
Sarah Schneider
86b39f888b script should not walk translations content dirs 2021-03-02 15:25:16 -05:00
Sarah Schneider
fc18a1b6ea fix the regex 2021-03-02 15:11:31 -05:00
Sarah Schneider
4e75f0392e handle currentVersion with spaces around it that prevent the AST parser from recognizing it as a link 2021-03-02 10:40:31 -05:00
Sarah Schneider
5f223ce630 Merge branch 'check-for-outdated-links' of github.com:github/docs-internal into check-for-outdated-links 2021-02-24 16:13:43 -05:00
Sarah Schneider
030eb97366 simplify boolean var 2021-02-24 16:12:58 -05:00
Sarah Schneider
7fb5ab6da5 Update script/update-internal-links.js
Co-authored-by: Kevin Heis <heiskr@users.noreply.github.com>
2021-02-24 15:33:23 -05:00
Sarah Schneider
50bbee7793 lint 2021-02-23 21:27:16 -05:00
Sarah Schneider
d747ab227d preserve any inline markup in link titles 2021-02-23 21:18:06 -05:00
Sarah Schneider
a687c39e8a lint 2021-02-23 20:48:38 -05:00
Sarah Schneider
6fa5bd69f0 add script to update internal links 2021-02-23 20:29:57 -05:00