1
0
mirror of synced 2025-12-19 18:10:59 -05:00
Commit Graph

28 Commits

Author SHA1 Message Date
Hector Alfaro
25b455c35f Remove unused CrowdIn workflows and scripts (#30234) 2022-09-12 17:59:28 +00:00
Grace Park
798dd62609 Update page-data to parseAndRender childPage titles (#29265)
* start

* updating page-data

* fix test'

* remove unnecessary file check

* remove line

* line

* remove file check

* fix title -> shortTitle

Co-authored-by: docubot <67483024+docubot@users.noreply.github.com>
2022-07-22 11:32:30 -07:00
Peter Bengtsson
8d4e1cda62 use shorthand notation (#27919) 2022-05-23 18:22:44 +00:00
Peter Bengtsson
d75c49b1c6 loadPages by 'en' only (#25846) 2022-03-04 16:24:24 +00:00
Peter Bengtsson
8018653103 calm down Backfill logging (#25031) 2022-02-04 17:40:23 +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
4406fd9834 treat list of files as space separated (#24176)
* treat list of files as space separated

* debuggnig

* debuggnig

* better

* test now

* cleanup

* all cleanups

* mention feature request on the action
2022-01-11 02:58:45 +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
Mike Surowiec
6bc50f7e30 fix: filter hidden pages from the currentProductTree (SidebarProduct) (#20404)
* fix some async test things

* allow eslint to parse top-level awaits

* fix: filter out hidden pages closer to SidebarProduct usage
2021-07-20 12:32:35 -04: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
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
c474291756 we don't need this async here since it falls into a Promise.all 2021-06-04 14:24:56 -04:00
Sarah Schneider
277d394245 clarify comment 2021-06-04 14:13:50 -04:00
Sarah Schneider
25448712f8 Merge branch 'middleware-perf-part2' of github.com:github/docs-internal into middleware-perf 2021-06-04 13:58:50 -04:00
Sarah Schneider
74b054054c Update lib/page-data.js
Co-authored-by: James M. Greene <JamesMGreene@github.com>
2021-05-27 15:59:40 -04:00
Sarah Schneider
cbf07fec4b the other middleware perf PR removes this 2021-05-26 15:43:19 -04:00
Sarah Schneider
2fcb38f30d move intro rendering back to middleware but do it conditionally 2021-05-21 16:14:14 -04:00
Sarah Schneider
0e39e763c4 update var name 2021-05-21 12:32:16 -04:00
Sarah Schneider
d258e77b17 move the tree rendering steps to lib/page-data which happens during warm-server 2021-05-21 12:06:27 -04:00
Sarah Schneider
5209705a52 Merge branch 'refactor-site-tree' of github.com:github/docs-internal into refactor-site-tree 2021-04-09 09:41:57 -04:00
Sarah Schneider
a08cd650d4 set basePath as constant 2021-04-09 09:15:37 -04:00
Sarah Schneider
0eebfc486b fix some pass-by-reference issues 2021-04-07 14:30:42 -04:00
Sarah Schneider
341465c83f export separate functions instead of single function from lib/page-data 2021-04-01 12:34:46 -04:00
Sarah Schneider
04460a0165 lint 2021-03-31 13:31:09 -04:00
Sarah Schneider
cf2d3a0103 update comments 2021-03-30 12:16:18 -04:00
Sarah Schneider
e06574b01b make comments nicer 2021-03-29 20:14:01 -04:00
Sarah Schneider
3a236bb128 create a new module page-data and revert lib/pages 2021-03-29 16:46:06 -04:00