Граф коммитов

361 Коммитов

Автор SHA1 Сообщение Дата
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
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
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
Jonathan Tamsut d04e4046ae
bump version for upload-artifact and download-artifact code snippets (#25782) 2022-03-04 10:17:09 +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
Robert Sese a8565f507a
Depend on the path for the tool switcher (#25018) 2022-02-04 22:12:38 +00:00
Robert Sese 62ce173b76
Fix when we show the 'All Enterprise Releases' link (#25002)
* Enterprise versions start with 'enterprise-server'

* Show only if all versions are ghes versions

* Show link if there's any ghes versioning
2022-02-04 21:59:02 +00:00
Robert Sese c5f9788223
Version the 'All products' link (#24972)
* Don't show link no matter what version you're on

* Maintain current version in link

* No 'All products' link on homepage for all versions
2022-02-03 16:31:05 +00:00
Mike Surowiec 1d42bbebb3
catch sendBeacon failures and console.warn (#24990) 2022-02-03 16:26:52 +00:00
Lucas Costi a7860a720f
Change code-example test to not use Actions (#24979)
* Change code-example test to not use Actions

* Use discussions instead

* Use code-security, but make the 'more' test not an exact number

* Removed references to actions/code-examples.yml

* Update tests/browser/browser.js

Co-authored-by: Robert Sese <robert.sese@gmail.com>

Co-authored-by: Martin Lopes <martin389@github.com>
Co-authored-by: Robert Sese <robert.sese@gmail.com>
2022-02-02 22:32:39 -06:00
Peter Bengtsson a34f2c3787
reduce flash of sign-up CTA button (#24933) 2022-02-02 22:36:56 +00:00
Grace Park d78f1dfa5a
Fix screen width - release notes (#24881)
* fix screen width

* center items

* set maxwidth

* set back to justify between

* adding overflow auto to default layout

* remove center alignment for release note content

* fix vertically align release candidate button

Co-authored-by: Rachael Sewell <rachmari@github.com>
2022-02-02 21:28:47 +00:00
Laura Coursen 4ede312204
Add early access docs for GEI-CLI (#24592) 2022-02-02 14:25:05 -06:00
Rachael Sewell 0d20dc0972
remove unused variables (#24847)
* remove unused variables

* moving label to center

* update span to h3

Co-authored-by: Grace Park <gracepark@github.com>
2022-01-31 23:50:11 +00:00
Grace Park c7ff324110
Release Notes Primer Update: Remove top navigation buttons convert download link to button (#24844)
* remove navigation buttons at top and convert download link to button

* remove background color
2022-01-31 22:17:23 +00:00
Rachael Sewell bd0cc83d73
use accessible text for view all links (#24747) 2022-01-31 22:02:29 +00:00
Rachael Sewell 845de4f29d
add underline to categories in all docs section (#24818) 2022-01-31 18:22:49 +00:00
Grace Park 934b255119
add keyboard focus to scroll top and remove wording to keep one button (#24817) 2022-01-31 17:45:44 +00:00
Anosike Osifo ec73762b3e
Add GHEC Trial CTA to header of docs.github (#23324)
* Add GHEC Trial CTA to header of docs.github

* use i18n logic

* add signup cta

* add signup cta

* Update the Trial CTA href to allow users choose trial plan

* Update logic to conditionally display signup CTA. Also remove GH EC Trial CTA

* update logic to use && operator

* fix wrapping search bar bug
2022-01-28 20:15:54 +00:00
Peter Bengtsson 9a3adcff9c
lazy highlight json examples on Webhooks page (#24785)
* lazy-highlight JSON examples on Webhooks page

* it works

* using intersectionobserver

* explain in  formatAsJsonCodeBlock

* fix tests
2022-01-28 12:20:56 -05:00
Robert Sese abe3881aa3
a11y: link style updates (#24680)
* Remove opacity classes on REST pages

* Underline links in article page content

* Typo 🔨

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

Co-authored-by: Kevin Heis <heiskr@users.noreply.github.com>
2022-01-28 11:11:23 -06:00
Rachael Sewell ef4dee2e7d
Revert "Revert "rest/reference/repos#statuses redirect"" (#24559) 2022-01-27 22:09:20 +00:00
Rachael Sewell f9095482cf
accessible description for learning paths (#24742) 2022-01-27 22:01:49 +00:00
Robert Sese 60aa8347f5
Bold-ify supported release card links (#24736) 2022-01-27 15:46:32 -06:00
Robert Sese 850aa34e05
a11y: set focus after submitting survey (#24666)
* Set focus after submitting survey

* Add role=status to success message
2022-01-26 18:14:39 +00:00
Peter Bengtsson b32df3dfb9
display title if no shortTitle on product landing pages (#24657)
* display 'title' if no 'shortTitle' on product landing pages

* remove pointless shortTitles

* Revert "Fix search sync (#24620)"

This reverts commit 16c9fc3ec5.

* undo

* undo sample changes
2022-01-26 16:30:45 +00:00
Grace Park 8374263842
a11y: Remove redundant banner (#24605)
* remove redundant banner

* adding flex-1
2022-01-25 17:32:34 +00:00
Robert Sese 96118839a9
Make scrollable code blocks focusable (#24607) 2022-01-25 17:26:34 +00:00
Grace Park a3b81bb93c
restructure footer and header (#24601) 2022-01-24 15:19:45 -08:00
Grace Park 66d8e2b15c
skip link for screen readers to main content (#24599) 2022-01-24 14:19:15 -08:00