1
0
mirror of synced 2025-12-23 11:54:18 -05:00
Commit Graph

114 Commits

Author SHA1 Message Date
Rachael Sewell
2ade7d8489 reactify rest pages (#25005) 2022-02-28 18:30:54 +00:00
Robert Sese
c200473442 Don't show hidden items with '/articles' (#25441) 2022-02-16 23:28:01 +00:00
Peter Bengtsson
7acccdac9b load webhook versions at runtime instead of import-time (#24788)
* load webhook versions at runtime instead of import-time

* fix tests
2022-01-28 18:27:00 +00:00
Rachael Sewell
a340162d84 reorganize repository apis (#23728)
Co-authored-by: Lucas Costi <lucascosti@users.noreply.github.com>
Co-authored-by: Peter Bengtsson <peterbe@github.com>
2022-01-11 11:53:12 +10:00
Rachael Sewell
45f1a41e79 prerender graphql mutations page (#23757) 2021-12-15 12:28:39 -08:00
Rachael Sewell
daafb8cb9d break up large rest pages (#23652) 2021-12-14 20:39:25 +00:00
Peter Bengtsson
6363640cb1 in-memory cache the changelog RSS downloads (#23582)
* in-memory cache the changelog RSS downloads

* fix tests
2021-12-11 16:52:27 -05:00
Peter Bengtsson
9a7a8a761e make lib/rest/index.js callable (#23214)
* Experiment with making the tarball smaller

Part of #1248

* try this

* stop debugging

* delete translations too

* delete heavy search indexes too

* push and popd

* try this hack

* delete but leave directory

* debug more

* faster delete of translations

* less loud

* async await

* async await

* no tree

* simplify

* experimenting more

* unfinished

* only the large files

* change order

* brotli with level 6

* cope better with decorated rest json files

* tidying

* keep images

* cleaning

* cleaning up

* refactored function

* try this

* better comment

* remove console logging

* more important changes

* make lib/rest/index.js callable

Part of #1177

* memoize

* remove console logging
2021-12-07 13:21:23 +00:00
Peter Bengtsson
1c4d326116 Make the staging files, for deployments, as lean as possible (#23049)
* Experiment with making the tarball smaller

Part of #1248

* try this

* stop debugging

* delete translations too

* delete heavy search indexes too

* push and popd

* try this hack

* delete but leave directory

* debug more

* faster delete of translations

* less loud

* async await

* async await

* no tree

* simplify

* experimenting more

* unfinished

* only the large files

* change order

* brotli with level 6

* cope better with decorated rest json files

* tidying

* keep images

* cleaning

* cleaning up

* refactored function

* try this

* better comment

* remove console logging

* more important changes

* improved fs.accessSync check
2021-12-01 19:01:46 +00:00
Kevin Heis
d6d40a974e 500 on /en/enterprise-server@2.16/admin (#22532)
* 500 on /en/enterprise-server@2.16/admin

* Update release-notes.js
2021-11-02 18:24:32 +00:00
Robert Sese
693e36bfdd Fix breadcrumbs when paths have partial match 🍞 (#22414)
* Add failing breadcrumb test for paths with partial match

* Handle overlapping paths when creating breadcrumbs
2021-10-26 21:24:54 +00:00
Mike Surowiec
3a1533b415 Fix breadcrumbs on translated pages (#21715)
* update breadcrumbs to fallback to english pages, fixes issue where breadcrumbs didn't appear on some translated pages
2021-09-24 17:31:06 +00:00
Laura Coursen
60b0d95f0d Hide the GitHub Insights docs (#20414) 2021-08-25 18:36:35 +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
Grace Park
27aa5d92ea Remove FEATURE_NEXTJS Flag Part 1 (#20176)
* cleanup FEATURE_NEXTJS

* fixing some server tests

* updating article a for server tests

* update h2 to h4 map topic tests

* data off on TOCs

* updating dropdown article versions links

* Update so markdown renders in intros

* updating typo and all server tests are now passing

* remove nextjs feature flag

* head.js tests pass

* updating article-version-picker

* remove nextjs feature flag browser test

* update header.js tests

* fix page-titles.js test

* fix deprecated-enterprise versions

* adding early access

* testing

* getting childTocItem

* fixing table of contents to show child toc items

* updated to 2 because the sidebar article also has the same link

* remove comment

* updating pick

* Update TocLandingContext.tsx

* update package.json and change className to h4 for h2

* updating with mikes feedback

* remove a.active test

* React clean up: Delete unnecessary layouts/includes Part 2 (#20143)

* Delete unnecessary layouts

* setting back tests failing :(

* update layouts

* delete unnecessary includes

* remove github-ae-release-notes and updating layouts

* remove a.active test
2021-07-16 14:54:25 -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
Sarah Schneider
a344b8f078 hide early access product TOC links 2021-06-29 19:27:54 -04:00
Kevin Heis
a92d820888 Remove remaining JSON requires (#20110)
* Remove remaining JSON requires

* Lint

* Update feature-flags.js
2021-06-23 14:57:50 -07:00
Sarah Schneider
7e3e75616c Merge branch 'main' of github.com:github/docs-internal into feature-versioning 2021-06-23 15:59:37 -04:00
James M. Greene
7ee7a1aaaa Merge branch 'main' into feature-versioning 2021-06-22 15:28:34 -05:00
Grace Park
23f586bb93 merge and fix conflicts 2021-06-22 11:41:10 -07:00
Grace Park
d3d1902414 Merge pull request #20017 from github/upgrade-esm
Enforce and Move to Top Level require
2021-06-22 11:27:48 -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
Sarah Schneider
1188fa557e Merge branch 'main' into feature-versioning 2021-06-22 11:07:27 -04:00
Sarah Schneider
b13ac1bd85 only hide TOC items on non-early access content; we want it to display on EA pages 2021-06-21 14:40:38 -04:00
Grace Park
7f6a277a8e clear out dynamic require 2021-06-18 13:08:28 -07:00
Grace Park
8154d3b701 adding mostly readfilesync of path updates to require 2021-06-17 20:22:04 -07:00
Sarah Schneider
53291a98e2 Merge branch 'main' of github.com:github/docs-internal into feature-versioning 2021-06-17 14:42:34 -04:00
Sarah Schneider
139f9e0aac name the boolean for clarity 2021-06-17 11:45:13 -04:00
Matt Pollard
fb928dfa70 Update logic to check for valid version number in release notes middleware (#19981) 2021-06-17 13:13:30 +00:00
Sarah Schneider
737b18bc5b Merge branch 'main' of github.com:github/docs-internal into feature-versioning 2021-06-16 13:39:49 -04:00
Sarah Schneider
acdf131b98 use all instead of supported because deprecated releases get special handling 2021-06-16 11:09:13 -04:00
Sarah Schneider
0553dd0b66 prevent 500s when a bogus version like enterprise-server@3.14788585 is attempted 2021-06-16 10:40:00 -04:00
Sarah Schneider
a1c1a81b94 Merge branch 'main' of github.com:github/docs-internal into feature-versioning 2021-06-15 19:41:29 -04:00
Sarah Schneider
d96fa5e2f0 add convience props to context and put supported ops in a separate module 2021-06-14 16:24:48 -04:00
Sarah Schneider
f3312199d8 Update middleware/contextualizers/short-versions.js 2021-06-14 15:33:18 -04:00
Sarah Schneider
7466e24a9b Merge branch 'main' of github.com:github/docs-internal into support-short-versions 2021-06-11 15:25:20 -04:00
Felicity Chapman
23b0b84111 Add Code security landing and guides pages (#19650) 2021-06-10 20:14:56 +00:00
Sarah Schneider
5d6d2d2cb7 Merge branch 'main' of github.com:github/docs-internal into support-short-versions 2021-06-09 17:00:37 -04:00
Sarah Schneider
d1cf56abd5 add short names = true to context object so we can access them in Liquid conditionals 2021-06-09 16:58:19 -04:00
Sarah Schneider
7448d3f3ef exclude links to hidden pages on TOC pages 2021-06-04 14:35:28 -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
52daa592d3 Merge branch 'main' of github.com:github/docs-internal into middleware-perf-part2 2021-06-04 13:58:30 -04:00
Sarah Schneider
c8e041832b Update middleware/contextualizers/features.js 2021-05-28 21:27:58 -04:00
Sarah Schneider
02915d5e4e add comments 2021-05-28 19:53:03 -04:00
Sarah Schneider
3a75d49a4f add middleware to enable feature-based versioning 2021-05-28 19:46:18 -04:00
Sarah Schneider
31631b4633 add localized fallbacks to English 2021-05-26 14:28:46 -04:00
Sarah Schneider
0379ba8436 lint 2021-05-24 13:46:55 -04:00
Sarah Schneider
dc44855690 preserve deprecated release notes 2021-05-24 12:39:33 -04:00