* upgrade primer/react
* upgrade
* using deprecated
* remove lib"
* Upgrade primer/react: Upgrade Label (#28502)
update Label to primer/react 35.2.2
* fix merge conflicts
* primer/react v35: update ActionList (#28467)
* Update to v35 ActionList for LearningTrack
* Update to v35 ActionList for ArticleList
* Update to v35 ActionList for ProductArticleList
* Update to v35 ActionList for TableOfContents
* Update to v35 ActionList for ProductCollapsibleSection
* Update to v35 ActionList for RestCollapsibleSection
* Update to v35 ActionList for SidebarHomepage
* Update to v35 ActionList for MiniTocs
* Update to v35 ActionList for Search
* Extra div for rendering test
* One less div for rendering test
* All the style updates for v35 ActionList
* Works without setting as an li which is already the default (didn't before for some reason)
* Use deprecated ItemInput for now
* Picker update for primer/react (#28485)
* update picker
* inline picker for mobile
* set width to auto
* Update components/ui/Picker/Picker.tsx
Co-authored-by: Kevin Heis <heiskr@users.noreply.github.com>
* update
* Update Picker.tsx
* update onselect
* checking language code
* move language cookie setting to language picker
Co-authored-by: Kevin Heis <heiskr@users.noreply.github.com>
* Resolve package merge conflicts
* fresh npm install
* Primer update UnderlineNav (#28582)
* update underlinenav for primer/react update
* update tests
* update switches test
* update one last label
* update header test"
* remove href in underlinenav
* update rendering tests
* update cursor
* primer/react v35: update DropDownMenu to ActionMenu (#28576)
* Update to v35 ActionMenu for ArticleCards
* Update to v35 ActionMenu for Search
* Set button to inline-block
* Put the props on the overlay
* Update test for ActionMenu markup
* update package
* update package lock
* primer/react v35: CodeLanguagePicker update from SelectMenu to ActionMenu (#28625)
* Use octicon for menu down arrow
* Update to v35 ActionMenu for CodeLanguagePicker
* update to SubNav
Co-authored-by: Grace Park <gracepark@github.com>
* update package-lock
Co-authored-by: Robert Sese <734194+rsese@users.noreply.github.com>
Co-authored-by: Kevin Heis <heiskr@users.noreply.github.com>
* Recommend an `Accept` header for REST API requests which doesn't mention V3
In the documentation for every REST API, in the "Headers"
section, we say for the `Accept` header that:
> Setting to `application/vnd.github.v3+json` is recommended.
Putting the V3 bit in doesn't actually do anything - in fact,
a high proportion of API consumers don't do it - and this
recommendation is going to be confusing once we launch our
new API versioning. This recommends that people use
`application/vnd.gitrhub+json` instead.
We could just recommend `application/json` - I'd be in favour
of that! - but I'm trying to make this change as small as
possible.
* Update cURL and GitHub CLI code examples to use an `Accept` header without V3
Co-authored-by: Sarah Edwards <skedwards88@github.com>
* Add error response variant
* Add response table styles
* Already filtered
* Don't need these styles
* Fallback to http code status messsage
* Add translation strings
* Proper heading level
Co-authored-by: Grace Park <gracepark@github.com>
* Match table styling with params table
* Typing unnecessary
Co-authored-by: Peter Bengtsson <mail@peterbe.com>
* Typing unnecessary
Co-authored-by: Peter Bengtsson <mail@peterbe.com>
* Work with the status code as a number
* Move error responses to operation end
* Make RestResponseTable a standalone component
Co-authored-by: Grace Park <gracepark@github.com>
Co-authored-by: Peter Bengtsson <mail@peterbe.com>
* starting minitocs change
* moving rest mini tocs and adding functionality to collapse
* adding some comments
* update margins
* minor updates: fix scroll to top button add padding to resthttpmethod verbs and background color for nested arrows in minitocs
* 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>
* fix comment
* fix wording and z index
* bring back articlegridlayout
* updating margins for lg and xl
Co-authored-by: Rachael Sewell <rachmari@github.com>
* refactor to add RestReferencePage
* remove structured data from article page
* add back clientsidehightlight js and remove structuredcontent
* update endpoint available for github apps page to use RestReferencePage
* check for minitocs
* use children for ArticlePage for overview endpoints page and move category data to RestReferencePage
* create MiniTocs component
* add MiniTocs
* fix unique key issue
* break into out into own div
* remove some unnecessary ts
* refactor looping section
* simplify markdown component usage
* add key prop
* add key prop
* add unique key
Co-authored-by: Rachael Sewell <rachmari@github.com>
* reactify rest pages
* add space
* speed up pages by only sending applicable rest operations
* reactify rest operation part 1
* remove restpage
* sync translations directory with origin/main
* remove translation file
* clean up
* fix openapi tests
* fix tests
* remove unused variables
* add apps available page component (#25086)
* simplify getRest module
* add code sample component
* revert translation files
* revert translation files
* update tests
* add rest response and notes
* refactor and create codeblock and add styling changes from design systems
* nested all returned jsx into one single fragment
* update style name
* remove unnecessary div
* update title and add response max height and overflow
* refactor entry to RestOperation component
* cleanup types and unique keys
* update decorated files
* Rest page data (#25346)
* update endpoints for apps layout
* remove null type
* Update components/rest/CodeBlock.tsx
Co-authored-by: Peter Bengtsson <mail@peterbe.com>
* updating renderTableRows
* cannot set p tag - should be div
* Ashs new feedback on the code blocks
* remove rest html pages
* Removing and updating decorated files (#25484)
* removing and updating decorated files
* bring back default tool
* fix tests
* add types
* fix styling in nested tables
* semantic changes
* adding unique key index
* remove unnecessary styling
* update styling for categories
* place app file in own directory
* update types
* update function in code samples
* fix some bad conflict resolution
* add rest banner back to rest pages
* Move all rest Markdown to data directory (#25598)
* Update components/rest/RestNotes.tsx
Co-authored-by: Peter Bengtsson <mail@peterbe.com>
* adding translation (#25673)
* revert change to Dockerfile
* refactor parameter tables
* move toc to server side
* adding missing files
* updating spacing
* update body table
* Update components/rest/BodyParametersRows.tsx
Co-authored-by: Peter Bengtsson <mail@peterbe.com>
* adding Fragment
* remove key from tr since it is on Fragment
* move around imports
* Update components/rest/BodyParametersRows.tsx
Co-authored-by: Peter Bengtsson <mail@peterbe.com>
* Update components/rest/BodyParametersRows.tsx
Co-authored-by: Peter Bengtsson <mail@peterbe.com>
* Update components/rest/ParameterRows.tsx
Co-authored-by: Peter Bengtsson <mail@peterbe.com>
* Update components/rest/ParameterRows.tsx
Co-authored-by: Peter Bengtsson <mail@peterbe.com>
* Update components/rest/BodyParametersRows.tsx
Co-authored-by: Peter Bengtsson <mail@peterbe.com>
* Update components/rest/BodyParametersRows.tsx
Co-authored-by: Peter Bengtsson <mail@peterbe.com>
* Update components/rest/BodyParametersRows.tsx
Co-authored-by: Peter Bengtsson <mail@peterbe.com>
* small changes and adding anchor link to table instead of empty div
* adding name type and description to translation
* adding more translation
* refactor and break out ChildBodyParameterRows
* fix table css
* check
* change the rest parameters table to fixed to show all description
* update name to match
* run prettier
* Update components/rest/RestCodeSamples.tsx
Co-authored-by: Peter Bengtsson <mail@peterbe.com>
* Update components/rest/ChildBodyParametersRows.tsx
Co-authored-by: Peter Bengtsson <mail@peterbe.com>
* Update components/rest/ChildBodyParametersRows.tsx
Co-authored-by: Peter Bengtsson <mail@peterbe.com>
* Update components/rest/BodyParametersRows.tsx
Co-authored-by: Peter Bengtsson <mail@peterbe.com>
* updating CHildBodyParameterRows
* run prettier
Co-authored-by: Rachael Sewell <rachmari@github.com>
Co-authored-by: Peter Bengtsson <mail@peterbe.com>