1
0
mirror of synced 2025-12-22 19:34:15 -05:00
Commit Graph

19 Commits

Author SHA1 Message Date
Rachael Sewell
02dbebbef3 render existing openapi examples (#26405) 2022-04-11 16:09:03 +00:00
Hector Alfaro
ba27b2e62c use functional variables 2022-04-05 18:43:11 -04:00
Hector Alfaro
cd732d19e1 override bg on rest toc for better contrast 2022-04-05 12:29:40 -04:00
Rachael Sewell
622eda013c change error codes table to all status codes table (#26518) 2022-03-29 13:16:34 -07:00
Rachael Sewell
7f3b2597ad Rest required previews are deprecated (#26527) 2022-03-29 12:52:12 -07:00
Grace Park
2c8713037d Move deploy keys from deployments to keys in rest pages (#26166)
* move deploy keys from deployments to keys in rest pages

* move minitocs above intro

* Update content/rest/reference/keys.md

Co-authored-by: Sarah Edwards <skedwards88@github.com>

* add to banner, add redirects from deployments

* remove deploy keys from deployments intro

* update data/reusables name

* update - to _

* update script and add redirects for subcategories turned categories

Co-authored-by: Sarah Edwards <skedwards88@github.com>
2022-03-17 17:25:12 +00:00
Grace Park
c26936f900 fixing styling on code blocks for rest pages (#26237) 2022-03-16 20:06:05 +00:00
Robert Sese
50a8de0769 Separate REST error responses (#26082)
* 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>
2022-03-15 21:14:53 +00:00
Grace Park
21b59b5805 Move mini tocs rest + collapsible (#26069)
* 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>
2022-03-14 10:50:53 -07:00
Grace Park
7850f08058 Update key to rerender RestCodeSamples (#26093) 2022-03-11 09:40:45 -08:00
Rachael Sewell
2f925d57a3 Remove lazy highlighting for now (#26091) 2022-03-10 21:12:38 -08:00
Grace Park
0dda6a1893 remove copy icon from non code samples (#26075) 2022-03-09 16:55:26 -08:00
Grace Park
b16be00f3e adding copy button click event (#26074) 2022-03-09 15:55:17 -08:00
Grace Park
28e81ba93b adding copy code to code samples in rest docs (#26043) 2022-03-09 17:41:48 +00:00
Grace Park
1a6bee4601 Refactor to add RestReferencePage (#25781)
* 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>
2022-03-08 18:00:38 +00:00
Rachael Sewell
9fd4fe0a6c remove prerendered response rest docs (#25652) 2022-03-04 21:24:46 +00:00
Rachael Sewell
a9b0936b97 remove Preview notice header when no previews (#25785) 2022-03-03 04:26:10 +00:00
Grace Park
9b39fcbce3 Refactor parameter tables (#25676)
* 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>
2022-03-01 09:39:00 -08:00
Rachael Sewell
2ade7d8489 reactify rest pages (#25005) 2022-02-28 18:30:54 +00:00