* Remove theme from HTML
* update for linting error
* Fix for overriding default color modes
Co-authored-by: Grace Park <lugraciecy@gmail.com>
Co-authored-by: Grace Park <gracepark@github.com>
* Add translation frontmatter to the schema
* Drop frontmatter in reusables.
Co-authored-by: Sarah Schneider <sarahs@github.com>
* Delete 'ms' property from data/ui.yml
Co-authored-by: Hector Alfaro <hectorsector@github.com>
Co-authored-by: Sarah Schneider <sarahs@github.com>
* Let be the caller, so events doesnt 403 on the first call
* Declare function
* Call all s so that the lang banner shows up consistently
* Update get-session.ts
* Change sign up button to browser-side only
* Remove console.log
* Try removing components/context/DotComAuthenticatedContext.tsx, I don't think anything else is using it
* Revert "Try removing components/context/DotComAuthenticatedContext.tsx, I don't think anything else is using it"
This reverts commit 64d72c5dcb2efc67273a84fed371ff2ecc6c6f43.
* simplify table-of-contents
* key
* fix rendering tests
* Not so much top margin
* Map topic ToC links are spans
* use p tag
* Back to span for the article title
* Update comment to match markup
* remove hack
* use h2 instead
* fix tests
* fix use of key
* use regular className instead
Co-authored-by: Robert Sese <734194+rsese@users.noreply.github.com>
* upgrade primer/react
* upgrade
* using deprecated
* remove lib"
* Upgrade primer/react: Upgrade Label (#28502)
update Label to primer/react 35.2.2
* fix merge conflicts
* primer/react v35: update ActionList (#28467)
* Update to v35 ActionList for LearningTrack
* Update to v35 ActionList for ArticleList
* Update to v35 ActionList for ProductArticleList
* Update to v35 ActionList for TableOfContents
* Update to v35 ActionList for ProductCollapsibleSection
* Update to v35 ActionList for RestCollapsibleSection
* Update to v35 ActionList for SidebarHomepage
* Update to v35 ActionList for MiniTocs
* Update to v35 ActionList for Search
* Extra div for rendering test
* One less div for rendering test
* All the style updates for v35 ActionList
* Works without setting as an li which is already the default (didn't before for some reason)
* Use deprecated ItemInput for now
* Picker update for primer/react (#28485)
* update picker
* inline picker for mobile
* set width to auto
* Update components/ui/Picker/Picker.tsx
Co-authored-by: Kevin Heis <heiskr@users.noreply.github.com>
* update
* Update Picker.tsx
* update onselect
* checking language code
* move language cookie setting to language picker
Co-authored-by: Kevin Heis <heiskr@users.noreply.github.com>
* Resolve package merge conflicts
* fresh npm install
* Primer update UnderlineNav (#28582)
* update underlinenav for primer/react update
* update tests
* update switches test
* update one last label
* update header test"
* remove href in underlinenav
* update rendering tests
* update cursor
* primer/react v35: update DropDownMenu to ActionMenu (#28576)
* Update to v35 ActionMenu for ArticleCards
* Update to v35 ActionMenu for Search
* Set button to inline-block
* Put the props on the overlay
* Update test for ActionMenu markup
* update package
* update package lock
* primer/react v35: CodeLanguagePicker update from SelectMenu to ActionMenu (#28625)
* Use octicon for menu down arrow
* Update to v35 ActionMenu for CodeLanguagePicker
* update to SubNav
Co-authored-by: Grace Park <gracepark@github.com>
* update package-lock
Co-authored-by: Robert Sese <734194+rsese@users.noreply.github.com>
Co-authored-by: Kevin Heis <heiskr@users.noreply.github.com>
* Recommend an `Accept` header for REST API requests which doesn't mention V3
In the documentation for every REST API, in the "Headers"
section, we say for the `Accept` header that:
> Setting to `application/vnd.github.v3+json` is recommended.
Putting the V3 bit in doesn't actually do anything - in fact,
a high proportion of API consumers don't do it - and this
recommendation is going to be confusing once we launch our
new API versioning. This recommends that people use
`application/vnd.gitrhub+json` instead.
We could just recommend `application/json` - I'd be in favour
of that! - but I'm trying to make this change as small as
possible.
* Update cURL and GitHub CLI code examples to use an `Accept` header without V3
Co-authored-by: Sarah Edwards <skedwards88@github.com>
* make miniToc pure data and no html strings
* fixups
* minimize content in miniToc prop
* minimize content in miniToc prop
* some types refactoring
* fix tests
* Remove contribution component from mobile temporarily
* Update components/page-footer/Contribution.tsx
Co-authored-by: Grace Park <gracepark@github.com>
* cleanup
Co-authored-by: Grace Park <gracepark@github.com>
* Show entire long mini-tocs
* Nudge top position
Co-authored-by: Joe Oak <41307427+joeoak@users.noreply.github.com>
* Use 'calc()` for max-height
Co-authored-by: Joe Oak <41307427+joeoak@users.noreply.github.com>
Co-authored-by: Joe Oak <41307427+joeoak@users.noreply.github.com>
* removing search from home page and adding to header
* remove homepage search
* adding description
* update to f5
* remove homepage search test
* removing homepage search rendering test
* showing preview of larger font
* update wording at breakpoint
* update to short description everywhere
* Update components/homepage/HomePageHero.tsx
Co-authored-by: Joe Oak <41307427+joeoak@users.noreply.github.com>
* remove unnecessary stylesheet
* Update data/ui.yml
Co-authored-by: Janice <janiceilene@github.com>
Co-authored-by: Joe Oak <41307427+joeoak@users.noreply.github.com>
Co-authored-by: Janice <janiceilene@github.com>
* first stage of test
* update test
* add rest test for categories and subcategories rendering
* update timeout back to original
* remove export
* remove testing
* refactor test-open-api-schema
* remove function
* remove check
* remove slash
* remove comment
* rearrange
* update getting the categories and maptopic levels
* update tests
* update copy
* add error message task
* 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>