1
0
mirror of synced 2025-12-21 10:57:10 -05:00
Commit Graph

20 Commits

Author SHA1 Message Date
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
15e33f05e7 Revert "Revert "Fix homepage versions dropdown" (#20087)"
This reverts commit f9f0b2ce86.
2021-06-23 10:12:36 -04:00
Matt Pollard
f9f0b2ce86 Revert "Fix homepage versions dropdown" (#20087) 2021-06-23 09:11:51 +02:00
Sarah Schneider
bc071c7dff remove homepage-specific version, no longer needed 2021-06-22 15:15:11 -04:00
Sarah Schneider
c7f647f68a update references 2021-04-01 15:29:59 -04:00
Emily Gould
052a540cdb Getting started category landing page (#17841)
* Start building out landing page in index file

* Add articles

* Add a couple more popular articles

* Tweak intro to cover more audiences

* Add TOC back with new organization

* Update content/github/getting-started-with-github/index.md

* Category as product guides section

* Update breadcrumbs.js

* Update server.js

* Update product-landing.html

* Remove TOC listing

* Revert removing TOC

* Update index.md

* Update index.md

* Update content/github/getting-started-with-github/index.md

* Apply suggestions from code review

Co-authored-by: Laura Coursen <lecoursen@github.com>

Co-authored-by: Kevin Heis <heiskr@users.noreply.github.com>
Co-authored-by: Laura Coursen <lecoursen@github.com>
2021-03-09 10:04:45 -06:00
Sarah Schneider
4be15f7b87 account for paths with or without version (#17443) 2021-01-22 15:07:08 +00:00
Sarah Schneider
3ff1bfca5a account for early access 2021-01-15 10:49:12 -05:00
Sarah Schneider
33f93e39c7 remove overloaded helper functions and move code directly where it is used 2021-01-07 13:14:44 -05:00
Sarah Schneider
75deecd386 add some clarifying comments 2020-12-17 10:50:52 -05:00
Sarah Schneider
78895184a7 updates for clarity 2020-12-17 10:19:44 -05:00
Sarah Schneider
dca73aa39c Merge branch 'check-links-improvement-redux' of github.com:github/docs-internal into check-links-improvement-redux 2020-12-17 09:58:16 -05:00
Sarah Schneider
8d84a90e6f do more path checking 2020-12-16 21:24:50 -05:00
Kevin Heis
d9ab8f3b08 In path utils, speed up version lookups (#16915) 2020-12-14 16:07:44 +00:00
Kevin Heis
62590cc976 getPathWithoutLanguage, remove split-slice-join pattern (#16914)
Co-authored-by: Vanessa Yuen <6842965+vanessayuenn@users.noreply.github.com>
2020-12-14 15:45:45 +00:00
Sarah Schneider
9bfaee1dc1 use new module 2020-11-12 13:28:38 -05:00
Sarah Schneider
cf7ffc9cfb Fix bug in path handler (#15858)
* minor clarification in comment

* handle scenario where a new version has been injected into an old path

* update oldEnterprisePath regex and comment

* lint
2020-10-02 19:36:23 -04:00
Sarah Schneider
aa5a62d49d Remove versions feature flag code (#15793)
* remove FEATURE_NEW_VERSIONS from feature-flags.json

* remove process.env.FEATURE_NEW_VERSIONS from include files

* remove process.env.FEATURE_NEW_VERSIONS from lib files

* remove process.env.FEATURE_NEW_VERSIONS from middleware files

* remove process.env.FEATURE_NEW_VERSIONS from script files

* remove process.env.FEATURE_NEW_VERSIONS from test files

* update test fixtures to use new versions as canonical fixtures
2020-09-29 13:36:07 -04: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