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

31 Commits

Author SHA1 Message Date
Peter Bengtsson
2ec905fc77 trailingCommas:all on prettier (#38888) 2023-07-11 11:44:52 +00:00
Sarah Schneider
f002576a3c [Take 2] Throw error if children entry can't be found, even if early access (#35523) 2023-03-14 13:57:24 +00:00
Peter Bengtsson
4f3201efdf remove warning about early-access (#35516) 2023-03-13 15:00:46 +00:00
Peter Bengtsson
e42f32a3de Fix bug with reloading site tree (#35491) 2023-03-13 12:36:38 +00:00
Peter Bengtsson
214a8b7642 Revert "Throw error if children entry can't be found, even if early access" (#35496) 2023-03-11 00:28:03 +00:00
Sarah Schneider
9c5f1ade48 Throw error if children entry can't be found, even if early access (#35452)
Co-authored-by: Peter Bengtsson <peterbe@github.com>
2023-03-10 21:27:58 +00:00
Peter Bengtsson
8e2038f745 Unbreak error about docs-early-access preventing server start (#35347) 2023-03-07 13:51:55 +00:00
Peter Bengtsson
7505613264 Reloading the site tree (#34877) 2023-03-06 19:44:59 +00:00
Peter Bengtsson
00b7ba1a6b only load site tree from English and "translate" the others (#32761) 2022-11-21 12:37:48 +00:00
Peter Bengtsson
6d88215b46 fall back to English on corrupt content files (#32629) 2022-11-17 19:11:29 +00:00
Peter Bengtsson
dd62ec0b2f Ability to start with different translation roots (#32348) 2022-11-07 19:00:16 +00:00
Peter Bengtsson
43a959b8fa warn about early-access page creations that failed (#32352) 2022-11-04 18:36:05 +00:00
Peter Bengtsson
ff20457d54 notice potential repeated children key entries immediately (#31898) 2022-10-20 16:32:21 +00:00
Peter Bengtsson
14ca55f670 cope with possible translation drift (#24842)
* cope with possible translation drift

* fix test

* don't shallow clone

* fix unit tests

* update code comments

* more code comment corrections

* more code comment

* feedbacked
2022-02-04 14:31:56 +00:00
Peter Bengtsson
88ba2a671a remove leftover console log debugging (#22689) 2021-11-10 16:12:05 +00:00
Peter Bengtsson
3499d5eb8f avoid some path.posix.join with simple caching (#22614) 2021-11-05 00:50:58 +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
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
c032403ec7 add comment 2021-07-01 12:33:37 -04:00
Sarah Schneider
083ba4e1eb Update lib/create-tree.js
Co-authored-by: James M. Greene <JamesMGreene@github.com>
2021-07-01 12:28:37 -04:00
Sarah Schneider
0333ea39fb initialize Pages for existing translated paths, not just English paths with localized versions of those paths 2021-07-01 12:13:43 -04:00
Sarah Schneider
e4d464e9b6 remove unnecessary sortBy 2021-05-21 12:06:39 -04:00
Sarah Schneider
2a12a3c599 go back to ignoring translated paths that do not exist because we cannot initialize a fake translated page using the English base path 2021-04-15 14:37:43 -04:00
Sarah Schneider
35922bc57c fall back to English if translated path not found 2021-04-09 09:36:10 -04:00
Sarah Schneider
a08cd650d4 set basePath as constant 2021-04-09 09:15:37 -04:00
Sarah Schneider
a2e2017e57 only require fs.promises 2021-04-09 09:11:01 -04:00
Sarah Schneider
2c79093832 do not throw error on translations, and also do not add redundant data to siteTree item that is already on the page object 2021-03-30 12:11:13 -04:00
Sarah Schneider
e06574b01b make comments nicer 2021-03-29 20:14:01 -04:00
Sarah Schneider
07a5435e69 not ready to set this prop yet... 2021-03-29 16:42:25 -04:00
Sarah Schneider
4ffcff3703 add lib modules for refactored siteTree 2021-03-29 14:34:09 -04:00