1
0
mirror of synced 2025-12-22 11:26:57 -05:00
Commit Graph

386 Commits

Author SHA1 Message Date
Martin Lopes
93e179940b Merge branch 'main' into pwsh-commands 2022-03-18 09:23:02 +10: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
Peter Bengtsson
021198411a close intersection observer on dismount (#26292) 2022-03-17 12:14:53 -04:00
Martin Lopes
9176a26a56 Merge branch 'main' into pwsh-commands 2022-03-17 17:19:26 +10:00
Grace Park
c26936f900 fixing styling on code blocks for rest pages (#26237) 2022-03-16 20:06:05 +00:00
Grace Park
e0e2ed3de3 adding observer disconnect (#26228) 2022-03-15 16:54:32 -07: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
Brian Evans
cbc92f1956 Update Support.tsx
making the linter happy
2022-03-14 08:32:20 -07:00
Brian Evans
2fe134919e Update GenericError.tsx
Making the linter happy
2022-03-14 08:25:48 -07:00
Brian Evans
2de792f3ae Update components/page-footer/Support.tsx
Co-authored-by: Peter Bengtsson <mail@peterbe.com>
2022-03-14 07:55:37 -07:00
Brian Evans
f69a72a718 Update components/GenericError.tsx
Co-authored-by: Peter Bengtsson <mail@peterbe.com>
2022-03-14 07:55:28 -07:00
Brian Evans
1ba55397c8 update enterprise contact link 2022-03-11 20:45:46 +00:00
Grace Park
7850f08058 Update key to rerender RestCodeSamples (#26093) 2022-03-11 09:40:45 -08:00
Octomerger Bot
334c8fae2c Merge branch 'main' into repo-sync 2022-03-11 05:25:09 -08:00
Rachael Sewell
2f925d57a3 Remove lazy highlighting for now (#26091) 2022-03-10 21:12:38 -08:00
Ramya Parimi
ae8beecb78 Sidebar Nav improvements (#21500)
* 300px sidebar

* Show nested child page count

* labels to left and ellipses

* section header lowercase

* prettier removed ,

* show more button

* Update components/sidebar/SidebarProduct.tsx

Co-authored-by: Kevin Heis <heiskr@users.noreply.github.com>

* Update components/sidebar/SidebarProduct.tsx

Co-authored-by: Kevin Heis <heiskr@users.noreply.github.com>

* show more for child pages instead of products.
Font size of product title increased.

* remove truncate

* show more

* state-ify terminalpagelink component

* product name lowercase

* added counter label

* merge conflicts, remove counter label

* Update components/sidebar/SidebarProduct.tsx

Co-authored-by: Robert Sese <rsese@github.com>

Co-authored-by: Robert Sese <sese@github.com>
Co-authored-by: Kevin Heis <heiskr@users.noreply.github.com>
Co-authored-by: Robert Sese <rsese@github.com>
2022-03-10 09:42:20 -08:00
Martin Lopes
be52570814 Merge branch 'main' into pwsh-commands 2022-03-10 16:03:39 +10:00
newmanrs
4f748be951 Python versions in examples should be type string, not float 2022-03-09 18:16:51 -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
Peter Bengtsson
95297c3c9d Simplify getBreadcrumbs (#26015)
* fix getBreadcrumbs

* don't go too deep

* remove commented out code
2022-03-09 01:14:49 +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
Mike Surowiec
23a481db9a Merge branch 'main' into pwsh-commands 2022-03-08 11:46:59 -06:00
Peter Bengtsson
9d4b913bdc language redirects without cache (#25872)
* redirect to your preferred language (#25664)

* redirect to your preferred language

* refactorings

* use js-cookies

* make sure no cache when language is involved in the redirect

* fix tests
2022-03-07 16:25:22 +00:00
Martin Lopes
fbcc8f4950 Merge branch 'main' into pwsh-commands 2022-03-07 13:49:31 +10:00
Peter Bengtsson
881a6d2212 Revert "redirect to your preferred language (#25664)" (#25869)
This reverts commit a9947c086c.
2022-03-04 21:56:57 +00:00
Rachael Sewell
9fd4fe0a6c remove prerendered response rest docs (#25652) 2022-03-04 21:24:46 +00:00
Peter Bengtsson
a9947c086c redirect to your preferred language (#25664)
* redirect to your preferred language

* refactorings

* use js-cookies
2022-03-04 16:29:11 +00:00
Martin Lopes
e40ef8cb0c Merge branch 'main' into pwsh-commands 2022-03-04 13:12:00 +10:00
Jonathan Tamsut
d04e4046ae bump version for upload-artifact and download-artifact code snippets (#25782) 2022-03-04 10:17:09 +10:00
Martin Lopes
499f36e3aa Merge branch 'main' into pwsh-commands 2022-03-03 16:35:30 +10:00
Martin Lopes
53a274d3c2 Added tool picker options for powershell and bash 2022-03-03 15:35:41 +10:00
Rachael Sewell
a9b0936b97 remove Preview notice header when no previews (#25785) 2022-03-03 04:26:10 +00:00
Grace Park
5f0a0ffbf1 Bandaid for ToolPicker/VersionPicker (#25776)
* bandaid for incorrect theme

* adding comments and making it keyboard accessible

* removing internal repo
2022-03-02 15:24:09 -08: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
Robert Sese
9c8ab14c46 Set meta description on homepage (#25546)
* Set meta description on homepage

* Update data/ui.yml

Co-authored-by: Janice <janiceilene@github.com>

* Better naming

Co-authored-by: Kevin Heis <heiskr@users.noreply.github.com>

* Update string key

* Always rendered

Co-authored-by: Emily Gould <4822039+emilyistoofunky@users.noreply.github.com>
Co-authored-by: Janice <janiceilene@github.com>
Co-authored-by: Kevin Heis <heiskr@users.noreply.github.com>
2022-02-28 18:24:57 +00:00
Grace Park
28659e92ad Upgrade primer css (#25634)
* upgrade primer css

* upgrade package.json @primer/css

* removing import
2022-02-24 21:33:10 +00:00
Mike Surowiec
f3fc80cf05 Upgrade primer/components -> primer/react (#25591)
* upgrade primer/components -> primer/react

* fix jest failure
2022-02-24 00:30:14 +00:00
Robert Sese
ea1881c8aa Don't show contribution section when not English (#25583) 2022-02-23 21:28:08 +00:00
Robert Sese
55a0cbf674 Fix string key (#25576) 2022-02-23 11:48:55 -06:00
Robert Sese
c8e95ee460 Set explicit height so things can stick (#25471)
* Set explicit height so things can stick

* Add comment about explicit height

* Fix printing with explicit height set
2022-02-22 21:17:00 +00:00
Robert Sese
2e4187733f Add link to versions doc in version picker (#25012)
* Add link to 'about versions' in version picker

* Add translation string

* Match article short title

* Better text contrast

* Key names is 'docs_versions'

* 'About versions'

* Show version picker when only 1 version

Co-authored-by: Matt Pollard <mattpollard@users.noreply.github.com>
Co-authored-by: Laura Coursen <lecoursen@github.com>
2022-02-22 17:53:32 +00:00
Robert Sese
9eaca93bdb Don't show contribution section in early access (#25444) 2022-02-17 16:59:11 +00:00
Lucas Costi
e6af9ae1e6 Remove Actions REST enterprise subcategory (moved to Actions page) (#25065)
Co-authored-by: Rachael Sewell <rachmari@github.com>
2022-02-17 15:18:07 +10:00
Peter Bengtsson
53796d44ac make octicon search svgs cached longer (#25421)
* make octicon search svgs cached longer

* not an orphan exception
2022-02-16 17:11:43 +00:00
Robert Sese
918a0956e0 Update icon colors (#25189) 2022-02-09 18:25:23 +00:00
Mike Surowiec
e1a2860adb add shallow true to search to avoid triggering page data requests (#25184) 2022-02-09 16:23:10 +00:00