forked from github/docs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into content-template-versions
- Loading branch information
Showing
125 changed files
with
1,372 additions
and
1,178 deletions.
There are no files selected for viewing
Binary file modified
BIN
+58.2 KB
(150%)
assets/images/enterprise/github-ae/settings/access-token-scopes-for-ghae.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
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
+14 KB
(240%)
assets/images/help/settings/password-recovery-email-request.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.
Binary file modified
BIN
+62.6 KB
(760%)
assets/images/help/sponsors/access-github-sponsors-dashboard.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.
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.
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
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,58 @@ | ||
import Link from 'next/link' | ||
import { useRouter } from 'next/router' | ||
import { Dropdown } from '@primer/components' | ||
|
||
import { useMainContext } from 'components/context/MainContext' | ||
import { useVersion } from 'components/hooks/useVersion' | ||
import { useTranslation } from 'components/hooks/useTranslation' | ||
|
||
export const ArticleVersionPicker = () => { | ||
const router = useRouter() | ||
const { currentVersion } = useVersion() | ||
const { allVersions, page, enterpriseServerVersions } = useMainContext() | ||
const { t } = useTranslation('pages') | ||
|
||
if (page.permalinks && page.permalinks.length <= 1) { | ||
return null | ||
} | ||
|
||
return ( | ||
<div className="d-none d-lg-flex flex-justify-end"> | ||
<Dropdown | ||
css={` | ||
ul { | ||
width: unset; | ||
} | ||
`} | ||
> | ||
<summary className="f4 h5-mktg btn-outline-mktg btn-mktg p-2"> | ||
<span className="d-md-none d-xl-inline-block">{t('article_version')}</span>{' '} | ||
{allVersions[currentVersion].versionTitle} | ||
<Dropdown.Caret /> | ||
</summary> | ||
<Dropdown.Menu direction="sw"> | ||
{(page.permalinks || []).map((permalink) => { | ||
if (permalink.pageVersion === 'homepage') { | ||
return null | ||
} | ||
|
||
return ( | ||
<Dropdown.Item key={permalink.href}> | ||
<Link href={permalink.href}> | ||
<a>{permalink.pageVersionTitle}</a> | ||
</Link> | ||
</Dropdown.Item> | ||
) | ||
})} | ||
<div className="pb-1"> | ||
<Link href={`/${router.locale}/${enterpriseServerVersions[0]}/admin/all-releases`}> | ||
<a className="f6 no-underline color-text-tertiary pl-3 pr-2 no-wrap"> | ||
See all Enterprise releases | ||
</a> | ||
</Link> | ||
</div> | ||
</Dropdown.Menu> | ||
</Dropdown> | ||
</div> | ||
) | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
import { useRouter } from 'next/router' | ||
import Link from 'next/link' | ||
import cx from 'classnames' | ||
|
||
import type { TocItem } from '../context/ProductLandingContext' | ||
|
||
export const TableOfContents = (props: { items?: Array<TocItem> }) => { | ||
const router = useRouter() | ||
|
||
return ( | ||
<div> | ||
{(props.items || []).map((obj) => { | ||
if (!obj) { | ||
return null | ||
} | ||
const { fullPath: href, title, intro } = obj | ||
const isActive = router.pathname === href | ||
return ( | ||
<div key={href} className={cx('mb-5', isActive && 'color-auto-gray-4')}> | ||
<Link href={href}> | ||
<a className="Bump-link--hover no-underline d-block py-1 border-bottom color-border-primary"> | ||
<h4> | ||
{title} | ||
<span className="Bump-link-symbol">→</span> | ||
</h4> | ||
</a> | ||
</Link> | ||
{intro && <p className="f4 mt-3" dangerouslySetInnerHTML={{ __html: intro }} />} | ||
</div> | ||
) | ||
})} | ||
</div> | ||
) | ||
} |
Oops, something went wrong.