* 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>
* 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>
* 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>
* Match label with selection
* defaultText is a better default
Co-authored-by: Peter Bengtsson <peterbe@github.com>
* No longer used
* Also no longer used
* No longer used in the dropdown pickers
* Add translation strings for pickers
* Use translated strings in picker components
Co-authored-by: Peter Bengtsson <peterbe@github.com>
* Search on submit
* Should be a ul
* Fix broken link
* No search on change event
* Add translation strings
* Add role for the 0 results message
* Update test with new search behavior
* Make search input a controlled component
Co-authored-by: Peter Bengtsson <peterbe@github.com>
* Trim whitespace in search text
Co-authored-by: Peter Bengtsson <peterbe@github.com>
* Better variable names
Co-authored-by: Peter Bengtsson <peterbe@github.com>
* Update visible results count in useEffect
* Control the input's value with the typed state
Co-authored-by: Peter Bengtsson <peterbe@github.com>
* Inline the submit handler
Co-authored-by: Peter Bengtsson <peterbe@github.com>
Co-authored-by: Peter Bengtsson <peterbe@github.com>
* Adjust heading level and only heading with intro text
* Adjust heading level
* Adjust code example and guide card heading levels
* Adjust tests for new heading levels
* Adjust rendering test for new heading levels
* accessibility: make label autofocus on dropdown when clicked
* update to div element
* fix keyboard focus on X more guides and load more guides
* tabIndex is optional
* programmatically group breadcrumbs
* forgot to commit li
'
'
* adding inline-block
* add emphasis color on border to meet accessibility color contrast ratio
* update border for footer buttons to meet accessibility color contrast ratio
* run prettier
* update to use heading markup
* updating to h3 for accessibility
* increase opactiy to meet 5.5:1 color contrast ratio
* update opacity to meet color contrast ratio
* update styling to match original but use heading markup
* remove aria-hidden for accessibility
* add h1 title search results and update scroll tip colors
* add number of matches
* remove no results since we are showing 0 results
* add overflow to fix border bottom on version search
* Update components/Search.tsx
Co-authored-by: Peter Bengtsson <peterbe@github.com>
* Update components/Search.tsx
Co-authored-by: Peter Bengtsson <peterbe@github.com>
* incorporating feedback and update padding
Co-authored-by: Peter Bengtsson <peterbe@github.com>
* Add new video properties frontmatter
* Handle video links in the middleware
* Video links don't have intros, authors, or full titles
* Make videos available from context
* Add default video heading
* Add basic tests for videos
* tmp videos test
* Remove stray test debugging
* more tmp videos testing
* Add videos test fixture
* Revert "more tmp videos testing"
This reverts commit 382946a5603ff217014797f77f37216bb8bb6c9c.
* Revert "tmp videos test"
This reverts commit 8767d0eaf08bd4ca04e2dacd12d476a2506c0367.
* adding to view
* updating the portal location
* add new line
* updating font styling to class
* Update components/Search.tsx
Co-authored-by: Kevin Heis <heiskr@users.noreply.github.com>
* Update components/Search.module.scss
Co-authored-by: Kevin Heis <heiskr@users.noreply.github.com>
* update ItemInput
* using router.replace and import updates
* Update components/Search.tsx
Co-authored-by: Peter Bengtsson <peterbe@github.com>
* run prettier
* Update components/Search.tsx
Co-authored-by: Peter Bengtsson <peterbe@github.com>
Co-authored-by: Kevin Heis <heiskr@users.noreply.github.com>
Co-authored-by: Peter Bengtsson <peterbe@github.com>
* WIP: ActionList ProductArticleList
* remove mb
* Put article count in link
* Full width links
* remove indent
* fixing link space for mini tocs
Co-authored-by: Grace Park <gracepark@github.com>
* Working on tool picker
* Start on react version of tool picker
* Update ToolPicker.tsx
* Update tool-switcher.html
* Get it working
* Update browser.js
* Update browser.js
* Update ToolPicker.tsx
* Initial move to ActionLists nav, handle terminal links
* ActionList-ify map topic items
* Some 🎨
* ActionList-ify homepage sidebar
* More 🎨
* Resolve test failures (and 'better' markup?)
* Properties don't exist on ActionList
* Use ul + li elements for ActionLists
* Workaround for TS error with 'as='
Co-authored-by: Octomerger Bot <63058869+Octomerger@users.noreply.github.com>
* updating images styling on design systems feedback
* maintaining ul li structure for accessiblity
Co-authored-by: Octomerger Bot <63058869+Octomerger@users.noreply.github.com>
* rewrite search state from useRouter (take 2)
* fix the problem with isHeaderSearch
* cleaning ups
* updating mobile search results ui (#22841)
* remove useCallback
Co-authored-by: Grace Park <gracepark@github.com>
* updating search icon
* remove no fill
* update fill color
* using ActionList and Overlay
* update to ActionList, Overlay, add Label to Breadcrumbs, and change Mark
* add search-results test data and move header search results to right
* make search results scrollable and fix max-width in header search
* update header search and styling updates
* add highlight
* update styling
* styling and lint errors
* fix lint error and fetch
* Update components/Search.tsx
* update label color
* remove bottom margin
Co-authored-by: Rachael Sewell <rachmari@github.com>
* Move version picker next to product picker
* Always render in header
* Inline variant
* Remove topper-sidebar
* Handle breadcrumb length
* Have breadcrumbs use Primer breakpoint
* Make a breadcrumbs scss module
* Update Breadcrumbs.tsx
* Update Breadcrumbs.module.scss
* Update Breadcrumbs.module.scss
* Update server.js
* Use responsive classes for hide/show breadcrumb
* updating to scroll past notification and keep header sticky
* Update components/page-header/Header.tsx
Co-authored-by: Kevin Heis <heiskr@users.noreply.github.com>
Co-authored-by: Kevin Heis <heiskr@users.noreply.github.com>
* moving breadcrumbs to sticky header
* update scroll
* update color-bg-primary to color-bg-default
* change back to primary since were on primer 17
* add effect dependency
* not changing
* clip left box shadow of header and unmount
* update to default
* update breadcrumbs tests
* sticky editor
* Create migrate-colors-primer-18.js
* Update colors round 1
* upgrade primer packages
* Update index.scss
* Replace auto colors
* remove btn-primary-matte
* Turns out the class names and variables names DONT LINE UP... ugh....
* Check for allowed var colors
* minor sidebar updates batch
* Update components/sidebar/SidebarNav.tsx
Co-authored-by: Ash Guillaume <10384315+ashygee@users.noreply.github.com>
* Update components/sidebar/SidebarProduct.tsx
Co-authored-by: Ash Guillaume <10384315+ashygee@users.noreply.github.com>
* changing back to bg-primary since we are on primer 17
Co-authored-by: Ash Guillaume <10384315+ashygee@users.noreply.github.com>
* homepage: reduce padding below search area
Bring as much useful content up "above the fold".
* homepage: add groups for the front page sections
Group the homepage links into sections that map to the GitHub features
page (`/features`) plus two groups that are bespoke to the docs ("Get
started" and "Developers").
* homepage: update group design
Group the feature list area using the design exploration work by
@arisacoba. Remove the description.
* homepage: remove ungrouped items from main area
Remove ungrouped items (like the external links) from the main feature
area. Users can still navigate to ungrouped items in the sidebar.
* fix tsc error, use Link component
* homepage: support empty icon in group
Don't assume that we have icons everywhere on the landing page groups.
* homepage: drop octocat/invertocat
Looks weird with the modern icons, looks bad in dark mode. Drop them
for now.
* homepage: document the childGroups frontmatter property
* homepage: don't test that sidebar == main content
We're reducing the links on the homepage in the main content area, but
the sidebar should be the complete list of products. Remove the tests
that ensure that the main content area has all the sidebar content. But
keep the tests that ensure that the sidebar content has all the links in
the main content area.
* homepage: remove "GitHub" doc set
The "GitHub" doc set "will be removed soon as we keep moving more content
out of it, so let's not include it here to keep the page more
evergreen."
* homepage: don't test that `/github` is linked on the main page
We're removing the `/github` doc set, and it's now not in the main page
grouped links. Remove the test that `/github` exists, now look for
`/get-started`.
* homepage: use octicons instead of images
The images from https://github.com/features will be updated 🔜 - in
the meantime, let's use octicons which are consistent and give visual
interest.
* homepage: use octicons from @primer/octicons-react
Using the react components adds `<svg>` elements instead of `<img>`
elements, which lets the element use the current fill color, supporting
both light and dark themes.
Co-authored-by: Mike Surowiec <mikesurowiec@users.noreply.github.com>
Co-authored-by: Emily Gould <4822039+emilyistoofunky@users.noreply.github.com>
* adding effectiveDate frontmatter property
* Update components/article/ArticlePage.tsx
Co-authored-by: Peter Bengtsson <peterbe@github.com>
* adding validation for correct date
* update to dateTime
* update to year month day
* update error date validation
* moving validation to getArticleContextFromRequest and moving id to div
* remove enteredDate
* Update content/README.md
Co-authored-by: Laura Coursen <lecoursen@github.com>
Co-authored-by: Peter Bengtsson <peterbe@github.com>
Co-authored-by: Laura Coursen <lecoursen@github.com>
* adding switcher to creating a codespace guide
* adding additional switcher for vscode and updating codespaces name
* using webui in codespaces coontext
* updating internal documentation
* remove default tool
Co-authored-by: hubwriter <hubwriter@github.com>
* Make guide filter accessible
Explain that the fields will filter a list.
Display a status message indicating the number of results found.
* update no guides found display, fix yaml issue
Co-authored-by: Kevin Heis <heiskr@users.noreply.github.com>
Co-authored-by: Mike Surowiec <mikesurowiec@users.noreply.github.com>
* semantic rendering of miniTocItems
* feat: create nested mini toc structure to simplify semantic rendering
* remove className usage of indentationLevel in miniToc rendering
* manually run script/graphql/update-files.js to update pre-rendered files
* use less brittle regex method to extract number
* close Language and ArticleVersion pickers after click
* cleanup ArticleGridLayout due to VersionPicker changes
* fix tsc errors resulting from primer upgrade
* fix / update tests
* cleanup mobile pickers visual consistency
* use btn-sm on VersionPicker
* update translation and close on click for enterprise releases
Co-authored-by: Kevin Heis <heiskr@users.noreply.github.com>
* update autolinkHeadings to use Doctocat link header style
* fix header link test
* update graphql/rest rendering to use doctocat header link
* fix: miniToc issue with stray anchor
Co-authored-by: Rachael Sewell <rachmari@github.com>
* Create a lead component
* Update to remove markdown-body from Lead, copy over <code> styles
* ...so I can read the test output
* Update Lead.tsx
* Update Lead.tsx
* Package updates
* Fix up things that look broken
* Add to utils
* Lead now just sets font size, just use f3 where needed
* Update package-lock.json
* Update index.tsx
* Delete bump-link.scss
* Update trigger-error.js
* Update components/GenericError.tsx
Co-authored-by: Ash Guillaume <10384315+ashygee@users.noreply.github.com>
* Update ArticlePage.tsx
* Update ActionBar.tsx
* Changes from meeting
* Found a few more monos
* Fix from a merge conflict
* Missed a few f3s
* Update SubLandingHero.tsx
* Bye gradients
* Match up breadcrumbs
* Update SubLandingHero.tsx
* Update lists.scss
Co-authored-by: Ash Guillaume <10384315+ashygee@users.noreply.github.com>
* update article content to markdown ui component
* decouple lunr indexing from class name
* remove summary outline none rule, apply utility class instead
* improve typing
* scope more styles down to markdown-body/extended-markdown
* move all markdown-body style overrides to MarkdownContent component
* fix class targeting within css module
* clean up MarkdownContent header style
* rename data-lunr to data-search
* fix: inline code color issue
* fix: update article markdown to work with MarkdownContent
* pull changes from docs-playground
* cleanup, add callout banner
* cleanup linting and test fixes
* add discussion link
Co-authored-by: James M. Greene <JamesMGreene@github.com>
* fix: clean up getThemeProps, use better fallbacks for unknown themes
* fix: fallback to unsupported theme color_mode, pass theme props into <ThemeProvider />
* refactor sidebar, scope css, wire up nav events to link component, update tests
* remove link onClick analytics event
* fix: missing key on breadcrumbs
* adding product feedback redirect for community on sponsors, discussions, and actions community link
* remove community redirect from actions and add to codespaces and add tests
* update wording for these links
* updating to add name of the button to frontmatter
* Set cookie on os switch
* Set os based on cookie value
* Add os preference schema details
* Send os preference on page request
* Send os preference on os switch
* Add color_mode for event tracking
* Grab color_mode info from body and media queries
* Make color_mode schema more specific
* Get color mode preference in its own function
* Add 'auto' for potential future color modes
* turn article.scss into a module + componentized
* Update Survey to use only component styles, add cancel button
* Update GenericError + 404 page to use only standard classes
* update LearningTrack to not use markdown-body
* remove / consolidate stylesheets
* cleanup Graphiql explorer page and scss
* Componentize Breadcrumb styles
* Componentize DeprecationBanner styles
* scope h2 a link style to markdown-body
* cleanup nav, organize page-header and page-footer components
* remove unused scroll-button.scss
* organize LanguagePicker and ProductPicker
* add declarations file
* remove featured-links.scss, update tests
* update list utility and toc test
* fix bad merge resolution
* update breadcrumbs test
* initial documentation changes
* editing layouts terminology
* update to match other files
* move javascripts to components/lib
* fix: dockerfile
* update based on Mikes updates to the javascripts directory
* update components/README.md
Co-authored-by: Mike Surowiec <mikesurowiec@users.noreply.github.com>
* cleanup FEATURE_NEXTJS
* fixing some server tests
* updating article a for server tests
* update h2 to h4 map topic tests
* data off on TOCs
* updating dropdown article versions links
* Update so markdown renders in intros
* updating typo and all server tests are now passing
* remove nextjs feature flag
* head.js tests pass
* updating article-version-picker
* remove nextjs feature flag browser test
* update header.js tests
* fix page-titles.js test
* fix deprecated-enterprise versions
* adding early access
* testing
* getting childTocItem
* fixing table of contents to show child toc items
* updated to 2 because the sidebar article also has the same link
* remove comment
* updating pick
* Update TocLandingContext.tsx
* update package.json and change className to h4 for h2
* updating with mikes feedback
* remove a.active test
* React clean up: Delete unnecessary layouts/includes Part 2 (#20143)
* Delete unnecessary layouts
* setting back tests failing :(
* update layouts
* delete unnecessary includes
* remove github-ae-release-notes and updating layouts
* remove a.active test