Граф коммитов

18 Коммитов

Автор SHA1 Сообщение Дата
Peter Bengtsson 2ec905fc77
trailingCommas:all on prettier (#38888) 2023-07-11 11:44:52 +00:00
Peter Bengtsson 5fc846c0ea
Plain text 404 page for non language urls (#37752) 2023-06-12 20:19:48 +00:00
Peter Bengtsson 92f989aa2d
Run and test server with test fixture root (#33816) 2023-02-06 19:29:45 +00:00
Peter Bengtsson e541364c9a
404 if the applicable version no longer matches (#33086) 2022-11-30 16:27:29 +00:00
Peter Bengtsson dd120617ef
no language drop-down on early-access docs (#32749) 2022-11-18 16:46:52 +00:00
Peter Bengtsson dd62ec0b2f
Ability to start with different translation roots (#32348) 2022-11-07 19:00:16 +00:00
Peter Bengtsson eae2903419
don't re-read content pages that don't exist (#32164) 2022-10-28 20:46:22 +00:00
Sarah Schneider 370e8e8a85 fix bug so versioned homepages do not 404 2022-09-15 08:45:29 -04:00
Peter Bengtsson edc25dd421
re-read content on every request (#30646) 2022-09-13 13:06:33 +00:00
Peter Bengtsson 5f4672549e
simplify find-page middleware (#30642) 2022-09-12 12:12:07 +00:00
Peter Bengtsson 7e614adc12
wrap async middlewares correctly (#28030)
* wrap async middlewares correctly

* clean up more

* feedbacked
2022-06-01 15:13:23 +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
Peter Bengtsson 53e3077973
use 302 when redirecting from without language prefix (#23409)
Part of #1312
2021-12-07 14:07:11 +00:00
Rachael Sewell bd7d82b550
fallback to English page when translation unavailable (#22638) 2021-11-05 09:43:47 -07: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
Mike Surowiec a24d01f78a
Fix NextJS 500s (#20048)
* feat: allow server to contextualize request when on a /_next/data path

* add client side routing test, run lint

* enable nextjs client side routing
2021-06-22 17:30:40 +00:00
Vanessa Yuen 3df90fc9b8 Hello git history spelunker!
Are you looking for something? Here is all of the GitHub Docs history in one single commit. Enjoy! 🎉
2020-09-27 14:10:11 +02:00