* fix(content): apostrophe in title renders incorrectly in production only
* fix(ProductArticlesList): use renderedFullTitle to display childNodes
* fix(lint): run prettier
* 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>
* 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>
* 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>
* 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>
* 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