1
0
mirror of synced 2025-12-30 12:02:01 -05:00
Commit Graph

400 Commits

Author SHA1 Message Date
Robert Sese
2ee8aad472 Handle query parameters with PUT/POST operations (#26848)
Co-authored-by: Kevin Heis <heiskr@users.noreply.github.com>
2022-04-12 14:36:50 -05:00
Mike Surowiec
dce7f676ec fix(content): apostrophe in title renders incorrectly in production only (#26859)
* fix(content): apostrophe in title renders incorrectly in production only

* fix(ProductArticlesList): use renderedFullTitle to display childNodes

* fix(lint): run prettier
2022-04-11 18:29:08 -05:00
Rachael Sewell
02dbebbef3 render existing openapi examples (#26405) 2022-04-11 16:09:03 +00:00
Ramya Parimi
52889940a8 Merge branch 'main' into fix/#16313 2022-04-08 07:42:29 -05:00
Hector Alfaro
7e09e2ba85 offset underline for md content 2022-04-07 11:26:46 -04: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
Hector Alfaro
3a5f786e62 override minitoc bg for better contrast 2022-04-05 12:29:04 -04:00
Ritesh Patil
a739577639 fix: code examples searc componenth toescape special characters in regex formattion 2022-04-03 19:26:19 +00:00
Robert Sese
33c05d81ce Change product landing page introLinks to a general map of link titles to links (#26360)
* Add cta button to frontmatter and context

* Add cta to Page

* Render cta button in product landing hero

* Handle external links

* Add simple unit test for cta link

* Address feedback

Co-authored-by: Peter Bengtsson <mail@peterbe.com>

* Actually push condition update

* Show it's an external link

* Refactor FullLink so we use Link once

Co-authored-by: Peter Bengtsson <mail@peterbe.com>

* Custom link can also be null

* Rename 'cta' to 'custom' and make it the last introLink

* Update tests with 'cta' to 'custom' change

* Filter once

* Revert "Filter once"

This reverts commit a3f9a8a06b505d77fed47ca96a66c187c86c3c91.

* Update introLinks to a map of titles and URLs

* No more custom introLink in LandingHero

* Simplify introLinks processing

* introLinks can also be null

Co-authored-by: Peter Bengtsson <mail@peterbe.com>

* more concise

Co-authored-by: Peter Bengtsson <mail@peterbe.com>

* No longer necessary with the a plain introLinks map

Co-authored-by: Peter Bengtsson <mail@peterbe.com>

* '.entries()` is simpler

Co-authored-by: Peter Bengtsson <mail@peterbe.com>

* 'link' could be false depending on what version you're on

* Update test for new introLinks

Co-authored-by: Peter Bengtsson <mail@peterbe.com>
2022-04-01 11:01:37 -05:00
Lucas Costi
b49c768777 Version actions for GHES, use reusables (#26004)
Co-authored-by: Kevin Heis <heiskr@users.noreply.github.com>
Co-authored-by: Sarah Edwards <skedwards88@github.com>
2022-04-01 09:36:17 +10:00
Peter Bengtsson
43f0e5270c remove GHEC signup button for dotcom_user cookied users (#26521) 2022-03-29 20:21:38 +00: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
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