-
Notifications
You must be signed in to change notification settings - Fork 60.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #19319 from github/repo-sync
repo sync
- Loading branch information
Showing
468 changed files
with
1,168,421 additions
and
1,282 deletions.
There are no files selected for viewing
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file added
BIN
+17.7 KB
assets/images/enterprise/configuration/enforce-tls-for-smtp-checkbox.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+277 KB
...mages/enterprise/site-admin-settings/comment-authors-profile-name-drop-down.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+247 KB
...s/images/enterprise/site-admin-settings/enforce-for-all-repositories-option.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-40.8 KB
(40%)
assets/images/help/discussions/edit-existing-category-details.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+83.2 KB
(890%)
assets/images/help/security/advisory-database-dependabot-alerts-filters.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+23.9 KB
assets/images/help/security/suggest-improvements-to-advisory-on-github-com.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
import { useState, useEffect } from 'react' | ||
import { useRouter } from 'next/router' | ||
import dynamic from 'next/dynamic' | ||
|
||
import { DefaultLayout } from 'components/DefaultLayout' | ||
import { ArticleTitle } from 'components/article/ArticleTitle' | ||
import { MarkdownContent } from 'components/ui/MarkdownContent' | ||
import { Lead } from 'components/ui/Lead' | ||
import { ArticleGridLayout } from './ArticleGridLayout' | ||
import { MiniTocs } from 'components/ui/MiniTocs' | ||
import { useAutomatedPageContext } from 'components/context/AutomatedPageContext' | ||
|
||
const ClientSideHighlightJS = dynamic(() => import('./ClientSideHighlightJS'), { ssr: false }) | ||
|
||
type Props = { | ||
children: React.ReactNode | ||
} | ||
|
||
export const AutomatedPage = ({ children }: Props) => { | ||
const { asPath } = useRouter() | ||
const { title, intro, renderedPage, miniTocItems } = useAutomatedPageContext() | ||
|
||
// If the page contains `[data-highlight]` blocks, these pages need | ||
// syntax highlighting. But not every page needs it, so it's conditionally | ||
// lazy-loaded on the client. | ||
const [lazyLoadHighlightJS, setLazyLoadHighlightJS] = useState(false) | ||
useEffect(() => { | ||
// It doesn't need to use querySelector because all we care about is if | ||
// there is greater than zero of these in the DOM. | ||
// Note! This "core selector", which determines whether to bother | ||
// or not, needs to match what's used inside ClientSideHighlightJS.tsx | ||
if (document.querySelector('[data-highlight]')) { | ||
setLazyLoadHighlightJS(true) | ||
} | ||
|
||
// Important to depend on the current path because the first page you | ||
// load, before any client-side navigation, might not need it, but the | ||
// consecutive one does. | ||
}, [asPath]) | ||
|
||
return ( | ||
<DefaultLayout> | ||
{/* Doesn't matter *where* this is included because it will | ||
never render anything. It always just return null. */} | ||
{lazyLoadHighlightJS && <ClientSideHighlightJS />} | ||
|
||
<div className="container-xl px-3 px-md-6 my-4"> | ||
<ArticleGridLayout | ||
topper={<ArticleTitle>{title}</ArticleTitle>} | ||
intro={ | ||
intro && ( | ||
<Lead data-testid="lead" data-search="lead"> | ||
{intro} | ||
</Lead> | ||
) | ||
} | ||
toc={ | ||
miniTocItems.length > 1 && <MiniTocs pageTitle={title} miniTocItems={miniTocItems} /> | ||
} | ||
> | ||
<div id="article-contents"> | ||
{renderedPage && ( | ||
<MarkdownContent className="pt-3 pb-4">{renderedPage}</MarkdownContent> | ||
)} | ||
{children && <MarkdownContent className="pt-3 pb-4">{children}</MarkdownContent>} | ||
</div> | ||
</ArticleGridLayout> | ||
</div> | ||
</DefaultLayout> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
42 changes: 35 additions & 7 deletions
42
...on-github/managing-personal-account-settings/managing-accessibility-settings.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,50 @@ | ||
--- | ||
title: Managing accessibility settings | ||
intro: 'You can disable character key shortcuts on {% data variables.product.prodname_dotcom %} in your accessibility settings.' | ||
shortTitle: Manage accessibility settings | ||
intro: "{% data variables.product.product_name %}'s user interface can adapt to your vision, hearing, motor, cognitive, or learning needs." | ||
versions: | ||
feature: keyboard-shortcut-accessibility-setting | ||
redirect_from: | ||
- /account-and-profile/setting-up-and-managing-your-github-user-account/managing-user-account-settings/managing-accessibility-settings | ||
type: how_to | ||
miniTocMaxHeadingLevel: 3 | ||
--- | ||
|
||
## About accessibility settings | ||
|
||
{% data variables.product.product_name %} includes a variety of keyboard shortcuts so that you can perform actions across the site without using your mouse to navigate. While shortcuts are useful to save time, they can sometimes make {% data variables.product.prodname_dotcom %} harder to use and less accessible. | ||
To accommodate your vision, hearing, motor, cognitive, or learning needs, you can customize the user interface for {% data variables.product.product_location %}. | ||
|
||
All keyboard shortcuts are enabled by default on {% data variables.product.product_name %}, but you can choose to disable character key shortcuts in your accessibility settings. This setting does not affect keyboard shortcuts provided by your web browser or {% data variables.product.prodname_dotcom %} shortcuts that use a modifier key such as <kbd>Control</kbd> or <kbd>Command</kbd>. | ||
## Managing accessibility settings | ||
|
||
## Managing character key shortcuts | ||
You can decide whether you want to use some or all keyboard shortcuts on {% ifversion fpt or ghec %}{% data variables.product.product_location %}{% elsif ghes or ghae %}the website for {% data variables.product.product_location %}{% endif %}, and you can control the display of animated images. | ||
|
||
### Managing keyboard shortcuts | ||
|
||
You can perform actions across the {% data variables.product.product_name %} website without using your mouse by using your keyboard instead. Keyboard shortcuts can be useful to save time for some people, but may interfere with accessibility if you don't intend to use the shortcuts. | ||
|
||
By default, all keyboard shortcuts are enabled on {% data variables.product.product_name %}. For more information, see "[Keyboard shortcuts](/get-started/using-github/keyboard-shortcuts)." | ||
|
||
{% data reusables.user-settings.access_settings %} | ||
{% data reusables.user-settings.accessibility_settings %} | ||
1. Select or deselect the **Enable character key shortcuts** checkbox. | ||
![Screenshot of the 'Enable character key shortcuts' checkbox](/assets/images/help/settings/disable-character-key-shortcuts.png) | ||
2. Click **Save**. | ||
1. Under "Keyboard shortcuts", manage settings for your keyboard shortcuts. | ||
|
||
- Optionally, to disable or enable shortcut keys that don't use modifiers keys like <kbd>Control</kbd> or <kbd>Command</kbd>, under "General", deselect **Character keys**. If you disable character keys, you may still be able to trigger shortcuts for your web browser, and you can still trigger shortcuts for {% data variables.product.product_name %} that use a modifier key. | ||
{%- ifversion command-palette %} | ||
- Optionally, to customize the keyboard shortcuts for triggering the command palette, under "Command palette", use the drop-down menus to choose a keyboard shortcut. For more information, see "[{% data variables.product.company_short %} Command Palette](/get-started/using-github/github-command-palette)." | ||
{%- endif %} | ||
|
||
{% ifversion motion-management %} | ||
|
||
### Managing motion | ||
|
||
You can control how {% data variables.product.product_name %} displays animated images. | ||
|
||
By default, {% data variables.product.product_name %} syncs with your system-level preference for reduced motion. For more information, see the documentation or settings for your operating system. | ||
|
||
{% data reusables.user-settings.access_settings %} | ||
{% data reusables.user-settings.accessibility_settings %} | ||
1. Under "Motion", manage settings for motion. | ||
|
||
- Optionally, to control how {% data variables.product.product_name %} displays animaged images, under "Autoplay animated images", select **Sync with system**, **Enabled**, or **Disabled**. | ||
|
||
{% endif %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.