Grace Park
e3f8f71c42
Rest api versioning redo ( #33011 )
...
Co-authored-by: Rachael Sewell <rachmari@github.com >
Co-authored-by: Sarah Edwards <skedwards88@github.com >
Co-authored-by: Grace Park <gracepark@Graces-MacBook-Pro-2.local >
Co-authored-by: Sarah Schneider <sarahs@users.noreply.github.com >
Co-authored-by: Sarah Schneider <sarahs@github.com >
2022-11-28 11:55:02 -08:00
Peter Bengtsson
7a74d57966
don't use loadSiteData in tests/unit/toc-links.js ( #32730 )
2022-11-28 14:52:32 +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
6f694b4311
fall back to English on corrupt data files ( #32619 )
2022-11-17 20:33:51 +00:00
Peter Bengtsson
6d88215b46
fall back to English on corrupt content files ( #32629 )
2022-11-17 19:11:29 +00:00
Peter Bengtsson
988e68fa98
JIT data ( #32140 )
2022-11-17 13:08:49 +00:00
Peter Bengtsson
fc85041a08
always only use data/features from English ( #32529 )
...
Co-authored-by: Robert Sese <734194+rsese@users.noreply.github.com >
2022-11-10 21:05:06 +00:00
Kevin Heis
9b0eabecb1
Standardize workflow run crons ( #32488 )
2022-11-10 16:40:48 +00:00
Peter Bengtsson
26291a6e52
remove pageVersionTitle from page context data ( #32453 )
2022-11-10 13:38:40 +00:00
Peter Bengtsson
5630162802
JIT data core lib ( #32493 )
2022-11-10 13:17:18 +00:00
Peter Bengtsson
94b33badd7
exclude headings from minitoc that don't have links ( #32407 )
2022-11-07 19:46:21 +00:00
Peter Bengtsson
d484c0728e
unit tests for getApplicableVersions ( #32366 )
2022-11-05 21:44:21 +00:00
Rachael Sewell
738c16f6fc
filter OpenAPI dereferenced files ( #32112 )
...
Co-authored-by: Grace Park <gracepark@github.com >
2022-11-04 23:27:39 +00:00
Peter Bengtsson
eae2903419
don't re-read content pages that don't exist ( #32164 )
2022-10-28 20:46:22 +00:00
Rachael Sewell
8aa609ecd4
remove hardcoded enterprise versions from redirect test ( #31967 )
2022-10-24 21:31:51 +00:00
Peter Bengtsson
ff20457d54
notice potential repeated children key entries immediately ( #31898 )
2022-10-20 16:32:21 +00:00
Peter Bengtsson
994c09dc06
use cheerio-to-text ( #31479 )
2022-10-10 23:25:51 +00:00
Peter Bengtsson
124ebe134d
rename data files from .yaml to .yml ( #31162 )
2022-09-26 15:48:29 -04:00
Sarah Schneider
b7f48ea2c1
Support GHAE internal-only semantic versioning ( #29178 )
...
Co-authored-by: Peter Bengtsson <mail@peterbe.com >
Co-authored-by: Matt Pollard <mattpollard@users.noreply.github.com >
2022-09-22 08:26:58 +02:00
Peter Bengtsson
edc25dd421
re-read content on every request ( #30646 )
2022-09-13 13:06:33 +00:00
Hector Alfaro
25b455c35f
Remove unused CrowdIn workflows and scripts ( #30234 )
2022-09-12 17:59:28 +00:00
Kevin Heis
303d5190db
Create a translations test suite ( #30000 )
...
* Scaffold files for migration
* Move user-agent into unit suite
* Nothing to move from browser suite
* Migrate tests to translations/content
* Migrate existing translation test to meta
* No graphql tests to migrate
* Migrate lint-translation-reporter
* Migrate lint-translation-reporter
* Remove languages-schema, unused
* Restore languages-schema
* Restore languages-schema
* Migrate rendering
* Migrate routing
* Migrate most of unit
* Remove dead files, comment out tests that aren't expected to work yet
* Migrate from get-redirect
* Migrate page and pages
* Migrate linting code
* Fix lint issues
* Found a few more
* Run prettier
* Move crowdin-config test and helper
* Update crowdin-config.js
* Remove translation linting, crowdin config lint, reduce file count
* Remove test that's been skipped for a year
* Restore linting with note to remove later
* Update lint-translation-reporter.js
* Clean up rendering suite
* Update rendering.js
* Remove excessive describe blocks
* Redirect tests
* Clean up unit
* Remove test that's never called
* Don't compare early access
* Rename test suites
* Update "content" tests
* Update files.js
* Update search.js
* Update files.js
* Update files.js
2022-08-25 12:38:03 -07:00
Sarah Edwards
d2a2113c11
REST new user guidance ( #29642 )
2022-08-23 19:31:01 +00:00
Peter Bengtsson
c9cc69ca21
Archived enterprise assets should be cached longer ( #30165 )
2022-08-23 02:02:31 +00:00
Peter Bengtsson
ec302a668d
simplify and improve default cache-control headers ( #30162 )
...
simply and perfect cache-control headers
2022-08-22 19:57:42 +00:00
Kevin Heis
c8ae2081b7
Remove feature flags ( #29968 )
2022-08-16 11:23:02 +00:00
Kevin Heis
688a274f1f
Remove CSRF check ( #29910 )
...
* Use color_mode for gating "sign up" button
* Remove csrf check
* Add `res.removeHeader('set-cookie')` to cache-control
* Update static-assets.js
* Remove package
* Remove tough-cookie
* Update cache-control.js
* Update cache-control.js
* Update cache-control.js
2022-08-15 19:28:42 +00:00
Kevin Heis
04f38e4779
Parse color_mode cookie in browser ( #29738 )
...
* Parse color_mode cookie in browser
* Update useTheme.ts
* Update use-theme.js
* Update use-theme.js
* Add support for dark_high_contrast
Per https://primer.style/css/support/theming
I also checked all the color mode options, this is the only additional working with Primer 20 so far
* Remove gray bg
* Remove type
* Use defaults instead of types for fn args
* Thicker types
2022-08-09 16:48:18 +00:00
Rachael Sewell
467459af7c
Reactify graphql pages ( #28547 )
2022-08-03 10:51:21 -07:00
Peter Bengtsson
e61d71f42f
HTML to plain text is broken in various places ( #29006 )
...
* HTML to plain text is broken in various places
* remove comment
2022-07-13 21:29:55 +00:00
Peter Bengtsson
ee1f20f4fb
jest 28.1.1 ( #28797 )
...
* got 28.1.1
* wip
* force upgrade nth-check
* legacyFakeTimers
2022-06-29 11:55:03 +00:00
Matt Pollard
965e27ca3a
Merge branch 'main' into copilot-ga-megabranch
2022-06-20 09:43:14 +02:00
Kevin Heis
03e2cf22e6
Upgrade cheerio ( #28614 )
2022-06-17 16:34:56 +00:00
Jules
14b008c99b
Merge branch 'main' into copilot-ga-megabranch
2022-06-17 09:56:12 +02:00
Peter Bengtsson
029291195c
stop using supertest to unit test archived enterprise static assets ( #28528 )
...
* stop using supertest to unit test archived enterprise static assets
* feedbacked
2022-06-16 11:30:02 -04:00
Jules
1e806577de
Merge branch 'main' into copilot-ga-megabranch
2022-06-16 07:50:24 +02:00
Peter Bengtsson
2f37efd633
minimize content in miniToc prop ( #28522 )
...
* make miniToc pure data and no html strings
* fixups
* minimize content in miniToc prop
* minimize content in miniToc prop
* some types refactoring
* fix tests
2022-06-15 21:04:54 +00:00
Jules
c8951c2e15
Merge branch 'main' into copilot-ga-megabranch
2022-06-13 08:45:47 +02:00
Sarah Schneider
333a08804a
we do not need this test anymore
2022-06-08 09:19:57 -04:00
Matt Pollard
3e6bac801e
Update test to use different product
2022-06-08 14:44:14 +02:00
Sarah Schneider
ebbc664578
add a new test to validate versions FM in fixture
2022-06-07 16:14:29 -04:00
Peter Bengtsson
0504d968c6
stop mocking hydro calls with supertest ( #28179 )
...
* stop mocking hydro calls with supertest
* wip
* fix the tests
* nock.cleanAll()
2022-06-03 15:17:12 +00:00
Peter Bengtsson
107a40ebb3
move json versioning rendering tests to tests/rendering/ ( #28017 )
2022-05-26 17:13:34 +00:00
Peter Bengtsson
2dcd2df131
move products rendering tests to tests/rendering/ ( #28018 )
2022-05-26 17:07:13 +00:00
Peter Bengtsson
a8d45acea9
refactor getThemeProps to be available in JS ( #27439 )
...
* refactor getThemeProps to be available in JS
* wip
* mike's idea
* delete no longer used file
2022-05-18 18:47:27 +00:00
Rachael Sewell
5f4f858b94
REST two-pane layout ( #26954 )
2022-05-02 10:10:33 -07:00
Rachael Sewell
749efd7b99
Rest redirect endpoint ( #27027 )
2022-04-25 16:14:04 +00:00
Grace Park
b98c83e924
REST operations sidebar ( #26225 )
...
* testing out a rest operations sidebar
* cleanup
* renamed 5 files
* renamed 5 files
* set redirect_from on 5 files
* renamed 1 files
* renamed 1 files
* renamed 3 files
* renamed 1 files
* renamed 1 files
* renamed 3 files
* renamed 1 files
* renamed 2 files
* renamed 1 files
* renamed 4 files
* renamed 15 files
* renamed 2 files
* renamed 6 files
* renamed 1 files
* renamed 4 files
* renamed 7 files
* renamed 1 files
* renamed 3 files
* renamed 3 files
* renamed 1 files
* renamed 5 files
* renamed 1 files
* renamed 1 files
* renamed 3 files
* renamed 4 files
* renamed 1 files
* renamed 1 files
* renamed 2 files
* renamed 4 files
* renamed 1 files
* renamed 1 files
* renamed 1 files
* renamed 6 files
* renamed 6 files
* renamed 4 files
* move files
* adding more
* updating to add restcontext and start of removing data/reusables/rest-reference
* removed data/reusables
* add a RestMiniTocItem and updating the filtering to add a subcategory so all manually added H3s are in mini tocs in addition to operations
* remove console log
* [WIP]: REST New Proposal Sidebar (#26471 )
* saving
* update sidebar
* remove console log
* update guides and overview
* import Category for category level rest pages
* update undefined restOperations
* update restOperationData category and subcategory levels"
* minor updates
* update get mini toc items function
* updating REST context for sidebar
* updating rest data
* remove console logs
* WIP: mini-toc-ing the sidebar
Co-authored-by: Robert Sese <rsese@github.com >
* A little cleanup
* Fix first subcategory link and add some comments
* updating anchor links in sidebar
* adding updates
* remove standalone
* update product and maptopic pages using article context
* add conditional link wrapper
* fix sidebar toggle and versions for enterprise admin
* update versions per subcategory
* Highlight sidebar link for current page
* Update miniToc hash links and hash change tracking
* fix unique key in CollapsibleSection
* Fix list markup
* remove title
* update permissions
* Hide minitocs on landing (#26594 )
* hide minitocs on landing page
* simplify page components and remove minitoc from sidebar for guides/overview
* fix carats and category fix
* remove id
Co-authored-by: Grace Park <gracepark@github.com >
* updating content based on versions script check with the OpenAPI
* update script and content files
* update script and content/rest files
* update to add TocLanding
* update script
* update index files
* add codespaces repository-secrets
* remove openapi schema check script
* remove minitocs at the top
* add h2 about the {title} api
* fix tests/unit/openapi-schema.js
* Fix linting tests
* fix search/topics test
* fix tests/unit/pages test
* update rest/reference links in components
* run prettier
* Update components/rest/RestReferencePage.tsx
Co-authored-by: Rachael Sewell <rachmari@github.com >
* Update components/rest/RestReferencePage.tsx
Co-authored-by: Rachael Sewell <rachmari@github.com >
* Update pages/[versionId]/rest/[category]/[subcategory].tsx
Co-authored-by: Rachael Sewell <rachmari@github.com >
* Update pages/[versionId]/rest/[category]/[subcategory].tsx
Co-authored-by: Rachael Sewell <rachmari@github.com >
* Update pages/[versionId]/rest/[category]/[subcategory].tsx
Co-authored-by: Rachael Sewell <rachmari@github.com >
* Update pages/[versionId]/rest/[category]/[subcategory].tsx
Co-authored-by: Rachael Sewell <rachmari@github.com >
* Update tests/unit/openapi-schema.js
Co-authored-by: Rachael Sewell <rachmari@github.com >
* updating comment location
* remove dependabot override
* remove path-utils current product update for rest
* run linter
* remove dependabot.md and remove h2 heading on restreference
* update the correct product to rest for rest pages
* adding comments for updates to path-utils
* remove console log
* REST sidebar: handle legacy v3 redirects (#26686 )
* Add script to handle legacy v3 REST redirects
* Run the script
* Handle a redirect to a redirect
* Update REST test URLs
* 'await' and test runs subcategory of checks
* Update REST URLs for routing/developer-site-redirects tests
* Update developer-redirects fixture with new REST URLs
* Resolve merge conflicts
* Update rest-redirects fixture with new REST URLs
* Fix broken links with REST pages re-org
* redirectTo could be undefined
* Fix script for posterity, can't redirect paths with hashes
* Remove invalid hash redirects
* Typically don't need to save one-off scripts
* Undo redirect changes (not necessary for handling v3 redirects)
* Remove script-added redirects
* Update old v3 redirects with new REST URLs
* No more GHES search indexing page
* 'org' not 'organization'
* Update fixture data for new REST URLs
* revert any content directory changes
Co-authored-by: Grace Park <gracepark@github.com >
Co-authored-by: Rachael Sewell <rachmari@github.com >
* Adding test rest (#26750 )
* add test to check openapi schema versions and content rest frontmatter versions
* update lib/redirects
* fix test and add error messages
* adding repository secrets
* adding repository-secrets.md
* Revert "update lib/redirects"
This reverts commit 3aafe28265764d5bc09c0c478c8e0ca099c8fbcf.
* remove lib/redirects changes and console logs
* Update lib/rest/index.js
Co-authored-by: Rachael Sewell <rachmari@github.com >
* update unique key
* Rest client side redirects (#26754 )
* adding tags subcategory for the rest content repos category
* run prettier
* bug fix for anchor scrolls" (#26892 )
* updating width size for rest reference page
* Rest sidebar consolidation (#26862 )
* refactor sidebar
* fix articlecontext provider issue on rest product landing page for all versions
* fix a bug, create new component
* revert change to create new component and fix bug
Co-authored-by: Rachael Sewell <rachmari@github.com >
* Set currentAnchor with a hashchange handler (#26923 )
* Rest sidebar design tweaks (#26807 )
* Rest sidebar design tweaks
* tweak color to subtle
* use muted color and margin for line
* update to design feedback
Co-authored-by: Grace Park <gracepark@github.com >
* Remove cheerio from rest-collapsible (#26948 )
* remove cheerio from rest-collapsible
* update type
* adding endswith instead
* use productId instead
* one off edge case for secret-scanning
* Reorganize subcategory and category, Update pre -> div, Add RestContext (#26950 )
* reorganize subcategory and category
* add RestContext
* update comment
* update for endpoints page
* add comment
* move object to restcontext
* remove effectiveDate in restcontext
* remove width calculation for rest reference page
* fix adding manual writer's minitocs to sidebar
* update with feedback
* update comment
* update isRestReferencePage
* remove page component and fix bug
* adding back rest/index.tsx
Co-authored-by: Rachael Sewell <rachmari@github.com >
* update content/rest"
* add back design tweak
* update to div
* update margins on rest api reference
* remove page component
* adding tests
* separate product from rest sidebar (#27065 )
* separate product from rest sidebar
* Use ProductCollapsibleSections for product pages
* fix tests
Co-authored-by: Robert Sese <rsese@github.com >
Co-authored-by: Grace Park <gracepark@github.com >
* Rest sidebar translations (#27052 )
* update translations
* remove general test
Co-authored-by: Robert Sese <rsese@github.com >
Co-authored-by: Rachael Sewell <rachmari@github.com >
2022-04-20 10:19:48 -07:00
Rachael Sewell
e86dc05ecc
add openapi example tests ( #26860 )
2022-04-11 16:08:15 -07:00
Rachael Sewell
02dbebbef3
render existing openapi examples ( #26405 )
2022-04-11 16:09:03 +00:00