1
0
mirror of synced 2026-01-08 03:01:54 -05:00

Merge branch 'main' into review-assignment-busy

This commit is contained in:
Ben Drucker
2021-09-16 12:51:34 -07:00
committed by GitHub
94 changed files with 233 additions and 182 deletions

View File

@@ -4,6 +4,7 @@ import { useRouter } from 'next/router'
import { MarkGithubIcon, CommentDiscussionIcon } from '@primer/octicons-react'
import { useVersion } from 'components/hooks/useVersion'
import { Lead } from 'components/ui/Lead'
export function GenericError() {
const { isEnterprise } = useVersion()
@@ -20,7 +21,7 @@ export function GenericError() {
<div className="container-xl p-responsive py-9 width-full flex-1">
<article className="col-md-10 col-lg-7 mx-auto">
<h1 className="mb-3 pb-3 border-bottom">Ooops!</h1>
<p className="f2 color-text-secondary">It looks like something went wrong.</p>
<Lead>It looks like something went wrong.</Lead>
<p className="f3">
We track these errors automatically, but if the problem persists please feel free to
contact us.

View File

@@ -12,6 +12,7 @@ import { useArticleContext } from 'components/context/ArticleContext'
import { useTranslation } from 'components/hooks/useTranslation'
import { LearningTrackNav } from './LearningTrackNav'
import { MarkdownContent } from 'components/ui/MarkdownContent'
import { Lead } from 'components/ui/Lead'
import { ArticleGridLayout } from './ArticleGridLayout'
// Mapping of a "normal" article to it's interactive counterpart
@@ -63,11 +64,7 @@ export const ArticlePage = () => {
</Callout>
)}
{intro && (
<MarkdownContent className="f2 color-text-secondary mb-3" data-testid="lead">
{intro}
</MarkdownContent>
)}
{intro && <Lead data-testid="lead">{intro}</Lead>}
{permissions && (
<div

View File

@@ -7,6 +7,7 @@ import { Link } from 'components/Link'
import { useProductLandingContext } from 'components/context/ProductLandingContext'
import { useTranslation } from 'components/hooks/useTranslation'
import { useVersion } from 'components/hooks/useVersion'
import { Lead } from 'components/ui/Lead'
export const LandingHero = () => {
const { airGap } = useMainContext()
@@ -27,7 +28,7 @@ export const LandingHero = () => {
{beta_product && <span className="Label Label--success v-align-middle">Beta</span>}
</h1>
<div className="f2 color-text-secondary" dangerouslySetInnerHTML={{ __html: intro }} />
{intro && <Lead>{intro}</Lead>}
{introLinks &&
Object.entries(introLinks)

View File

@@ -8,6 +8,7 @@ import { ArticleList } from 'components/landing/ArticleList'
import { useTranslation } from 'components/hooks/useTranslation'
import { ArticleGridLayout } from 'components/article/ArticleGridLayout'
import { Callout } from 'components/ui/Callout'
import { Lead } from 'components/ui/Lead'
export const TocLanding = () => {
const { title, introPlainText, tocItems, productCallout, variant, featuredLinks, renderedPage } =
@@ -22,9 +23,7 @@ export const TocLanding = () => {
<ArticleGridLayout className="mt-7">
<ArticleTitle>{title}</ArticleTitle>
<div className="f2 color-text-secondary">
<p>{introPlainText}</p>
</div>
{introPlainText && <Lead>{introPlainText}</Lead>}
{productCallout && (
<Callout variant="success" dangerouslySetInnerHTML={{ __html: productCallout }} />

View File

@@ -62,7 +62,6 @@ export const Survey = () => {
aria-label={t`yes`}
hidden
onChange={vote(ViewState.YES)}
defaultChecked={state === ViewState.YES}
checked={state === ViewState.YES}
/>
<label
@@ -82,7 +81,6 @@ export const Survey = () => {
aria-label={t`no`}
hidden
onChange={vote(ViewState.NO)}
defaultChecked={state === ViewState.NO}
checked={state === ViewState.NO}
/>
<label

View File

@@ -4,6 +4,7 @@ import { ArrowRightIcon, StarFillIcon } from '@primer/octicons-react'
import { useTranslation } from 'components/hooks/useTranslation'
import { Link } from 'components/Link'
import { TruncateLines } from 'components/TruncateLines'
import { Lead } from 'components/ui/Lead'
export const SubLandingHero = () => {
const { title, intro, featuredTrack } = useProductSubLandingContext()
@@ -45,7 +46,7 @@ export const SubLandingHero = () => {
<div className="col-12">
<Breadcrumbs />
<h1 className="my-3">{title} guides</h1>
<div className="color-text-secondary f2" dangerouslySetInnerHTML={{ __html: intro }} />
{intro && <Lead>{intro}</Lead>}
</div>
</header>
{featuredTrack && (

View File

@@ -0,0 +1,6 @@
.container code {
font-size: 85%; // Same as markdown-body code
background-color: var(--color-canvas-subtle); // Same as markdown-body code
border-radius: 6px; // Same as markdown-body code
padding: 0.1em 0.2em; // Same as markdown-body code
}

View File

@@ -0,0 +1,21 @@
import { ReactNode } from 'react'
import cx from 'classnames'
import styles from './Lead.module.scss'
export type LeadPropsT = {
children: string | ReactNode
className?: string
as?: keyof JSX.IntrinsicElements
}
export function Lead({ children, className, as: Component = 'div', ...restProps }: LeadPropsT) {
return (
<Component
className={cx('f2 color-text-secondary mb-3', styles.container, className)}
{...restProps}
{...(typeof children === 'string'
? { dangerouslySetInnerHTML: { __html: children } }
: { children })}
/>
)
}

View File

@@ -0,0 +1 @@
export { Lead } from './Lead'

View File

@@ -12,8 +12,6 @@ topics:
- Billing
---
{% data reusables.codespaces.codespaces-trial-period %}
## {% data variables.product.prodname_codespaces %} pricing
{% data variables.product.prodname_codespaces %} usage is billed for all accounts on the Team and Enterprise plans, and does not include any entitlements. Individual accounts are not currently billed for {% data variables.product.prodname_codespaces %} usage.

View File

@@ -50,4 +50,7 @@ Enterprise owners and billing managers can manage the spending limit for {% data
{% data reusables.codespaces.exporting-changes %}
## Managing usage and spending limit email notifications
{% data reusables.billing.email-notifications %}
Email notifications are sent to account owners and billing managers when spending reaches 50%, 75%, and 90% of your account's spending limit.
You can disable these notifications anytime by navigating to the bottom of the **Spending Limit** page.

View File

@@ -15,8 +15,6 @@ product: '{% data reusables.gated-features.codespaces %}'
shortTitle: Understanding billing
---
{% data reusables.codespaces.codespaces-trial-period %}
This article explains how billing works for your codespaces, and explains how your organization's billing manager can help.
## Getting access to {% data variables.product.prodname_codespaces %}

View File

@@ -96,3 +96,9 @@ You can create a codespace from any branch, commit, or pull request in your proj
Using {% data variables.product.prodname_vscode %} in your codespace gives you access to the {% data variables.product.prodname_vscode %} Marketplace so that you can add any extensions you need. For information on how extensions run in {% data variables.product.prodname_codespaces %}, see [Supporting Remote Development and GitHub Codespaces](https://code.visualstudio.com/api/advanced-topics/remote-extensions) in the {% data variables.product.prodname_vscode %} docs.
If you already use {% data variables.product.prodname_vscode %}, you can use [Settings Sync](https://code.visualstudio.com/docs/editor/settings-sync) to automatically sync extensions, settings, themes, and keyboard shortcuts between your local instance and any {% data variables.product.prodname_codespaces %} you create.
## Further reading
- [Enabling {% data variables.product.prodname_codespaces %} for your organization](/codespaces/managing-codespaces-for-your-organization/enabling-codespaces-for-your-organization)
- [Managing billing for {% data variables.product.prodname_codespaces %} in your organization](/codespaces/managing-codespaces-for-your-organization/managing-billing-for-codespaces-in-your-organization)
- [Setting up your project for Codespaces](/codespaces/setting-up-your-project-for-codespaces)

View File

@@ -93,5 +93,10 @@ Within a codespace, you have access to the Visual Studio Code Marketplace. For t
You've successfully created, personalized, and run your first application within a codespace but there's so much more to explore! Here are some helpful resources for taking your next steps with {% data variables.product.prodname_codespaces %}.
- [Deep dive](/codespaces/getting-started/deep-dive): This quickstart presented some of the features of {% data variables.product.prodname_codespaces %}. The deep dive looks at these areas from a technical standpoint.
- [Setting up your project for {% data variables.product.prodname_codespaces %}](/codespaces/getting-started-with-codespaces). These guides provide information on setting up your project to use {% data variables.product.prodname_codespaces %} with specific languages
- [Setting up your project for {% data variables.product.prodname_codespaces %}](/codespaces/getting-started-with-codespaces): These guides provide information on setting up your project to use {% data variables.product.prodname_codespaces %} with specific languages
- [Configuring {% data variables.product.prodname_codespaces %} for your project](/codespaces/setting-up-your-codespace/configuring-codespaces-for-your-project): This guide provides details on creating a custom configuration for {% data variables.product.prodname_codespaces %} for your project.
## Further reading
- [Enabling {% data variables.product.prodname_codespaces %} for your organization](/codespaces/managing-codespaces-for-your-organization/enabling-codespaces-for-your-organization)
- [Managing billing for {% data variables.product.prodname_codespaces %} in your organization](/codespaces/managing-codespaces-for-your-organization/managing-billing-for-codespaces-in-your-organization)

View File

@@ -24,7 +24,7 @@ To use codespaces in your organization, you must do the following:
- Ensure that users have [at least write access](/organizations/managing-access-to-your-organizations-repositories/repository-permission-levels-for-an-organization) to the repositories where they want to use a codespace.
- [Enable {% data variables.product.prodname_codespaces %} for users in your organization](#configuring-which-users-in-your-organization-can-use-codespaces). You can choose allow {% data variables.product.prodname_codespaces %} for selected users or only for specific users.
- [Set a spending limit](/billing/managing-billing-for-github-codespaces/about-billing-for-codespaces)
- [Set a spending limit](/billing/managing-billing-for-github-codespaces/managing-spending-limits-for-codespaces)
By default, a codespace can only access the repository from which it was created. If you want codespaces in your organization to be able to access other organization repositories that the codespace creator can access, see "[Managing access and security for {% data variables.product.prodname_codespaces %}](/codespaces/managing-codespaces-for-your-organization/managing-access-and-security-for-your-organizations-codespaces)."

View File

@@ -14,12 +14,13 @@ topics:
## Overview
To learn about pricing for {% data variables.product.prodname_codespaces %}, see "[{% data variables.product.prodname_codespaces %} pricing](/billing/managing-billing-for-github-codespaces/about-billing-for-codespaces#codespaces-pricing)."
{% data reusables.codespaces.codespaces-billing %}
- You can manage Codespaces billing for your organization: ["About billing for Codespaces"](/billing/managing-billing-for-github-codespaces/about-billing-for-codespaces)
- As an an organization owner or a billing manager you can manage {% data variables.product.prodname_codespaces %} billing for your organization: ["About billing for Codespaces"](/billing/managing-billing-for-github-codespaces/about-billing-for-codespaces)
- For users, there is a guide that explains how billing works ["Understanding billing for Codespaces"](/codespaces/codespaces-reference/understanding-billing-for-codespaces)
- For users, there is a guide that explains how billing works: ["Understanding billing for Codespaces"](/codespaces/codespaces-reference/understanding-billing-for-codespaces)
## Usage limits

View File

@@ -37,7 +37,6 @@ You can also personalize aspects of your codespace environment by using a public
## About billing for {% data variables.product.prodname_codespaces %}
{% data reusables.codespaces.codespaces-trial-period %}
For information on billing for {% data variables.product.prodname_codespaces %}, see "[About billing for {% data variables.product.prodname_codespaces %}](/billing/managing-billing-for-github-codespaces/about-billing-for-codespaces)."
For information on billing for {% data variables.product.prodname_codespaces %}, see "[Managing billing for {% data variables.product.prodname_codespaces %}](/billing/managing-billing-for-github-codespaces/about-billing-for-codespaces)."
{% data reusables.codespaces.codespaces-spending-limit-requirement %} For information on how organizations owners and billing managers can manage the spending limit for {% data variables.product.prodname_codespaces %} for an organization, see "[Managing your spending limit for {% data variables.product.prodname_codespaces %}](/billing/managing-billing-for-github-codespaces/managing-spending-limits-for-codespaces)."

View File

@@ -12,8 +12,13 @@ shortTitle: Creation and deletion
## Creating codespaces
### No access to create a codespace
{% data variables.product.prodname_codespaces %} are not available for all repositories. If the “Open with Codespaces” button is missing, {% data variables.product.prodname_codespaces %} may not be available for that repository. For more information, see "[Creating a codespace](/codespaces/developing-in-codespaces/creating-a-codespace#access-to-codespaces)."
If you believe your organization has [enabled {% data variables.product.prodname_codespaces %}](/codespaces/managing-codespaces-for-your-organization/enabling-codespaces-for-your-organization#about-enabling-codespaces-for-your-organization), make sure that an organization owner or billing manager has set the spending limit for {% data variables.product.prodname_codespaces %}. For more information, see "[Managing your spending limit for {% data variables.product.prodname_codespaces %}](/billing/managing-billing-for-github-codespaces/managing-spending-limits-for-codespaces)."
### Codespace does not open when created
If you create a codespace and it does not open:
1. Try reloading the page in case there was a caching or reporting problem.

View File

@@ -1,6 +1,6 @@
{% note %}
**Note:** After the {% data variables.product.prodname_codespaces %} trial period ends, you must set a spending limit before you can use {% data variables.product.prodname_codespaces %}. By default, your organization or enterprise will have a {% data variables.product.prodname_codespaces %} spending limit of $0, which prevents any codespaces from being created or existing codespaces from being opened. To allow your users to create codespaces in your organization, set the limit to a value higher than $0.
**Note:** You must set a spending limit before you can use {% data variables.product.prodname_codespaces %}.
{% endnote %}

View File

@@ -1,5 +0,0 @@
{% note %}
**Note:** {% data variables.product.prodname_codespaces %} is free to use for all organizations on a {% data variables.product.prodname_team %} or {% data variables.product.prodname_ghe_cloud %} plan during the trial period. Once billing starts on September 13, 2021, you must set a spending limit to continue to use Codespaces. For more information, see "[Managing spending limits for Codespaces](/billing/managing-billing-for-github-codespaces/managing-spending-limits-for-codespaces)."
{% endnote %}

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:fbc588b5e09445497fada86ba64d1f62f067a43d2dbc929e326467569b4a367f
size 507039
oid sha256:d269650d37cc7870d02459376d766a4436e1227e5665af9ccfa7540fe2a742f4
size 506877

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:1647889689a67502f78d3a39496474635326d54cfb697a37cfb724e0e27615e9
size 803464
oid sha256:a0e15e639107879f89645d1ceb98977dd9f033c5dccf92c0e2d671bc60180686
size 802548

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:58103444352dfc8984fa069be1624174da97910b30c3d4af4a27b5ec7170e197
size 469431
oid sha256:9b66f5855dd233da3f727ba2b9fecbaeebfe8a34713dbb171a15cde97f9e82d9
size 470035

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:eaff9322c3b694e8dd38103b1a68d01c025ceb1640b8b5848a5f9b90e663965e
size 2078416
oid sha256:b09fde1c45d7fc6c46604c39beeb475a375534b5c13aa4fa5f96edebc2e4403e
size 2079451

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:c1a6ec01452ea7bb5ef4dadea2d9a9a06606b494a8b5b77555bb1dfc9517652d
size 430967
oid sha256:600fca44f1f0bb4bef452a05b971a267119724a989e0235cb4a2f326fd8b6fc1
size 431066

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:8689549ec9f43c834451356b9b25da1a1ef41818cd659e893240a0227f3b4faa
size 1683661
oid sha256:017951ad41d6918ccb73c5d587cf043301c96d61fe3e2faf6ef2228c54f2a654
size 1682297

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:30556da3c036d922cc2fe8457b35b81bf4b48beb72e6e28e6d2e58aac801fd63
size 280305
oid sha256:cca198701106fa816bf7360a482f85190254afe72a5edc54ce3f3273d2c1970e
size 280209

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:6e0201ba3567f807d7c54db12a18c73e884f516bc8a45614f64c0be538bd329e
size 1067821
oid sha256:416bdbc79547d87ae80f7124c76d0dbeef6552f73516b62ac01179fa138f05db
size 1067125

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:e9e5754f4c70d854ea73cb74c3ad8f9d9176f5a8c77a9d930a436d1e690bfff8
size 528892
oid sha256:dead795c65b06ab902c1943b1c035e6a5a5bc388cb575eff330bc961c4ccd6aa
size 529088

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:f11e00992d6ffd4e02b905ed80a248f7064686a3ddbafe5f9e7b46151d3a3bb5
size 2798062
oid sha256:77480a9a9c5161cd3c0454c77e0d72e985d902f2c25c6adda1b5f1ee647a9b7d
size 2800619

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:c9ab8fb5490828356944c94567f7a1f69bc478f383ce3844dc7b03409315a7d9
size 443874
oid sha256:d7137a38de5949bccac9b1eb4821f5560c6e9b639f1209579b4c4da828d894d8
size 443323

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:bc44478da3155d1c07a94cb7b33421f09fc90900a6d570e6b69ef0ca4741e865
size 1853213
oid sha256:ba9d54cf9037fee5b12ebd84de7c29d6d54f82b6b246879ade77373496b2608c
size 1851470

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:389ccb7d1136458f41065ee1f50b293d3de191ca9916c84bcf8eee97a852ec3e
size 524630
oid sha256:8716af11e84e9108484ee1c5b47838c9bdf1908c0e56efdd3356f75022eef5c7
size 524938

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:d691542afe0a000f8bcf2d57dcc53d3460411a9dc6c5431014345a44a53c2a88
size 834418
oid sha256:26491a875dc667bb5803c1fb0f941c41aaf22da1ce1525cd3b7af88351f020cd
size 834731

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:9d512b17b68d921f65c2742b3dc91f3bbf262247c3ec718b914c138dde6efdaf
size 490238
oid sha256:92ebe041c1d039c9b5ce215fcee14d6535a698396a5d921f6493baa0acfe43fc
size 490814

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:e665bb5992f436cf766db3e30b114196362c99dbabf96422aa8ff09f1cc604da
size 2178821
oid sha256:a9ee9a44416db82c2ead929f5f4a1e40e48812c568cda3b8b66302e6b1840cc4
size 2181618

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:ed5e9047a66d1826aabc0a7a1e8c7bca2e320c3fd76d5ec1a98a1dd62e69f0f8
size 450368
oid sha256:a33ce0389cffbd2e7d070cff66004bc5893fae4e2ca853528c2d72eff43cf992
size 450734

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:62f0717241ac8ce6d911687d79a05ebc10decf2eec79bdd58582f3b2a06a7594
size 1757798
oid sha256:f0b873da1b2cb8408510e75245bc0f5dbf01b880e98c45394117cf05e3593761
size 1755590

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:54bde42aa438471d6cab773599e04af264da6f276a6f09437799e6d42b005eb6
size 278110
oid sha256:cb82712cefd7ac8f0b1010fc1d3b3408ae33907c437f4b8b8e6ff6b8db8c5c51
size 278345

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:223ab5242c7296c1dc234ca319348a3b805b86c324ad797f39399c12d3ae830f
size 1055801
oid sha256:d35e97a9ca9cbbc256833e278686319a98c568f8b47e6a2b4fb2a5e66ebfaa23
size 1055895

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:1b93cd6b7742d0cea19f5936ae81b330662e8d0c2c9bc8886aa8b1046f63f894
size 550380
oid sha256:212eb688c57607cc718bf8bdc1be815da0f6052581c9ee3e51207f2b642e1b7e
size 550507

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:feead7b520f9c896bd0a724914a4e25dfd09e8f7b3bd0637f3cecc34e295756b
size 2911735
oid sha256:1dc996688438abea7083ee35eaedd517645017e5fd9238244a3a4537846288d7
size 2913156

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:0559a535a891f83a3b221e0d18eea93d96f35879f57d8fa666d03b47abf5cabc
size 464769
oid sha256:a2f45a5c490ed0736568be166ecf0c38566970c4b3b27eadfa16e3fa14d19b55
size 464458

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:0f6420569be6183f35e11cef9862907b4b98684aa375baf0dd5b093ad030d2dd
size 1937842
oid sha256:49e0b02ef01b65336883da01f0c69ef0767b2dcaa6f5a37449e57188f2c0c127
size 1936961

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:a64e94f1ba57a931ec364b1015d5dae0e1261c9ed2cd5245a3c14dc9d21f24f5
size 534344
oid sha256:3e4777923b90803d6e4fba831e6a22d748f747728688808df4b8ec741bb01b0c
size 534040

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:768540d5864021c0935040b20cfdf663968b682cc58b297c0c8b317b31591ae8
size 846820
oid sha256:4c8001d69139b9fdefa9e233a71ae20f5f4519a8f56b7457440ebddc3fd6dcb8
size 846075

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:b6f4da047b2392b2a2583f0cf5e30189bd942a83ef6f2714e5efda7359d0b252
size 497363
oid sha256:5be355df03512b55d1d590e0272bd131af0658a5e35bc8e4c175cfd4d9b1d20b
size 497395

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:fd29e21f71b11e6b946e425a6d2faf9b4ed9f072f7c63340c96a80a735e12700
size 2221269
oid sha256:aefd91219bdc94681d5f84a1cbe85753a0f7cfeb043e82b12744a729e1a539ff
size 2221494

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:60a5039c9d6a44567354fde0b251c2eb301f57d74ca98bb14286867dc4950b95
size 459484
oid sha256:8e2dca2f8ae2fdbc392944d28f165e0b887c5597390c0dd6c93d17ebece85f41
size 459548

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:ff57128c730744b45ff448dfe8bb5a27bf7e65a361d9f3355062007f7a2cfec2
size 1793716
oid sha256:5c818624eef8b3f0f467eb5b0cebba1bf60b416b2b7843d88a34ca2d4c0bf60b
size 1792920

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:c7fb794377937e853276c923e9d22dc944b0a49e748d2f44d9cfcb050525555c
size 278531
oid sha256:bd857d8d54ad647e17822538c7b40ebaf93162eb0302067377d0bcdc49856af4
size 278450

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:8a04c7f7b140679d4ae7921491c6c7108c356f542901c8fe5c168f3f878e3411
size 1058350
oid sha256:de42307f12c20e1254d3d83097a5551183db7620edd512c7cef3979ffc2a8bbe
size 1056743

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:81ebae829414908efa0bf066a1f80a0be86afdb004c197ff9aa00a2fa316f3d2
size 559035
oid sha256:09611e84147d392d0229c5091fe73b4f68838ad5d7dc1b904c611096badb7932
size 558774

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:b99a5e00f166700504dac76754aa6e06cd8a0238f21842cd4d485418f75b2473
size 2967468
oid sha256:c1f57bc4c1218cb4364ddcca637b072510558ebbb591dbb118f34ef1c60d05e2
size 2964767

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:6af8333fa9d0e76f52953ea280868fe5337d1cfd74e9901a3f1a53fbb5e51e12
size 472393
oid sha256:d04e285896b6dfc49f6bde8b8eaf48dcb94745d2318e0caf767968a8b2c92ace
size 472524

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:a54d3328b337d3345f01c71885c92777d763dbf68aad69fde0e5cb6cdca897dc
size 1972896
oid sha256:0f1ec50c239abfacf0a7c21e83e74ee66db9af1666c47c4cc5e7db1726029c6a
size 1973046

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:74d84dec40cf8079f18165089ef76766fbe059e97de8fbd20071d30d19b69a19
size 539652
oid sha256:8baf623182fcb3a3071adbf38996bccd6077abbc8e13a23a638873e2539b51e8
size 539273

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:7b7dff01e55ec0714713bdc23eb124f9f57200da27bf3f41572a55c3782f3225
size 853546
oid sha256:ac0db697261c93596622d680dbf8b2c6643b8de7e82e80d3e5cef6e38d8701a4
size 853193

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:d2abe473a0d23435f441b87456512ad108397181275426231aba56e39464e87b
size 501892
oid sha256:3ccc32f1f7fe307ffeaa8a5203bd3ac1b4470919663205c276e5326742cfac65
size 501864

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:ebe5df46362412a8d667fb92b69e21916ddb82ca0646b2b0c3aaca7c352ee583
size 2245246
oid sha256:b592327273ca40cb4786a4df2b1d094da73164bbef5915091e83e26de41b1324
size 2244973

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:30e96c19167617ce88bbd6e982bd9eda6ac9b13784bd7ee8e13a026a1e738fc5
size 468091
oid sha256:e46536e8c4c84c406fee64d75a0dfa26943d3218b544189afff3fd5512068bfc
size 468046

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:fa6d10f087bef87caf99245ce31ff9280045bb22119d4deb74f1031e6c965381
size 1824564
oid sha256:f91933ca3521a85f5d6426ad252551141a98d55a816a83ffbfefc5f9cf6891cf
size 1824971

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:693ad80697b596e5a1fa3822600eb114590ce7319af948d343a9e53e77deb94c
size 278492
oid sha256:045ad91171148d91c63cd81f8516f941d73099f8e60d30fc87f9befb21eb3ccf
size 278597

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:d769b31175447ca9ecbcf0c45460a1ff03e07e33097dc6c63e4f081ed506e1a3
size 1057577
oid sha256:c3150f2a60815d8303db9378b100993a45e9abac623bf7e9ab728e814055ced5
size 1056787

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:89ee8f8bd0938ef09bed7e9000fe0c1d9e89c7851ec84e55c55e8b134623a838
size 564965
oid sha256:cd53020b7c4b0e48f502625dadb33270ce2e4237997f66bcf0aab555bba224e9
size 564780

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:00e6c91aee7b38fc9b8714c32686d43e61bf8df262b7d57ccb7ffb27e18a96d6
size 2997022
oid sha256:d51aa4e7171ea39a03cddacbb1b0d19e5e50b582dbb9dac7012d869a9f404a4a
size 2996061

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:b4adf574191226b4d5727bb9d8945be59007221d65a493084cff86aa710e50a8
size 477488
oid sha256:56bcc749be302f580c2ffa124b6701563f494e2d2f3f37fd6d3d513c40e002ce
size 476984

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:aff960d18adf1f8d9f36aa7de66389bd76695e1c89f450353e2c1dda23e2338c
size 1997602
oid sha256:ab6b573493f98984d1c409710abad13b800128111123005a131f66ca85fe3b60
size 1995283

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:6bf4d6cb6e45c50f3124cf260c0e5ea5b2af1e016893c4ebea4c476ae48217b1
size 695856
oid sha256:2e8fff2a80c5cf19f0eb0a12808f9bc849963c54bc91669678de76e3bb3aa2dc
size 695549

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:ddf6593fb85ab9ae80edc4e6af13f99b4a2cad972a13a8525bb0b0b84abfcc02
size 947258
oid sha256:a0ff3719f849acb2a3b6d997915d0da8b02bf5eff1faca9e6eb3bb29c4720d68
size 947346

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:4ff66382804838ff4e0a4a33cb19cd97dc869741f13a49440adfbe67bd0f1074
size 634161
oid sha256:83274d201b931eacab0cbfdbd0591e170d9910c9016ba514ebac8309b4a4f8d5
size 633971

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:24cec7375e4c2e1831868e3b0133454f974ca6941bae8aa25835b637ec410004
size 2821131
oid sha256:fbecc113412f20bb773882aa88dfa6aadcb5e4abf8551de8d55b67ee8e9ec569
size 2820398

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:c5f055e3ddf888804d8842f627d38a69453f0ea33cca77445921f1ceecdf31d8
size 624416
oid sha256:b4c8d142fca73f07ab4b747c2baabf045fce6bd0bc6474331fc9e6c7dc91edf1
size 623805

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:8b186651be72034201e37916fc0ed6ecf501500a2beef4e5ae26067d0c47799e
size 2370998
oid sha256:4eb0573b35e7a42ba5c8a34f90c2a877a02d726d96501b16a02600b32302e298
size 2370628

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:6bcdd2c4ae44a9267c9abe5066e376cbca29d09c831b663895bbef44f1fddb80
size 306774
oid sha256:70a26eabbcbae9d2f3e4985d43de456779fcad32d9b90870bbae9dc0740050ae
size 306522

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:91c212aba06b50ecbc929dcd55a73e890abbdc8414798997e28faf93917b8a5d
size 1089249
oid sha256:4c563ab0d24a642717bf20e55afc9bb708cd6e52e34808fc6bc536f26ea2cde9
size 1089236

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:cddc0ec5d16d9fbd4cd040e43fc57d15b298964ee41500418dea4661a0cca40b
size 723673
oid sha256:9ca74feb823fe09013181970c2c2bb6e4f53b25b1a10faaff64aead739e5a34c
size 723559

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:218932466a9f24747a9048ff1da42162502d2d25135d01d88caf120a9d3d6dc7
size 3756340
oid sha256:a7711ee042777dad3d26a9f1a10b3459064887017ee95e1b0474bee7ece36539
size 3756565

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:7557c57ec988b502c7b51441adb30919370751d8c7a713e1ea6121281dd03aad
size 607321
oid sha256:771493bb915ee6dc840944d59bde936041401641538e4fb4821e14ff4461fbf7
size 607461

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:d176bf305ef61db8cc2e6fcab8c4ac9d28b241f60220d1c66066bb04f8d9a7ec
size 2488708
oid sha256:c39738b815c415c669beba1275fdca1872947cbc891c2b457262a8ddfec2d145
size 2488699

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:3fabd450dcc43576882f1eed9d0ada779f62cadf588223cc5f5d57dcb9bd1fa7
size 413979
oid sha256:bd277823b54d5defc83e4c6c6207d7b4a6c4356721df95cbad069d78b31bf1cd
size 414136

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:d575e25934102a419a2f8c6cbceb81ea8746aa0adcc77ca8da9e346ffb2138c8
size 630718
oid sha256:c4c4c0756c53246af70968b7648f83beb7b0c4ccddd98caa69a26a5b5743af68
size 630429

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:aa628370718ed4a97c4b09dd580051ae2c152a8ba2918130e71c4da4407aa98d
size 390868
oid sha256:b06d12d1319decb13648bd982a3e999cf759ef10372221df52e920c61360c49a
size 391043

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:4fcf7b4943c12eb6d384c75c0a0084f412f61cc03bac761db3f5b494f47f7c71
size 1699246
oid sha256:290b1ccd352d3ea0c3fddfc9b4d9bd38d1bfaf49dce8b44ce4240f31ad94e073
size 1700864

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:d5f6225a39b4a810de0f63d38689c54da358bb0dce7085e83f94e4d4023b1d72
size 360845
oid sha256:ec3f3aa637caf1c505c3af328464c27f11d10766825cf0a7150c118502e971da
size 360650

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:c28121c2ab2273a1dde235e4e47ba43edb61f38615b99231d35ba734fd275476
size 1344237
oid sha256:86278bd1f8106b63a6870073441f662f34c882073819b6622b8a3f0f05a9c26b
size 1343677

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:2e628fa753da047129c7c1d8d4d2d02b620068004644e4e9ee996e1535562c8f
size 200718
oid sha256:a90f6f39ce83175bc14a956a3b0a3277bfdf39494a421a734b62f7668fde4628
size 200880

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:2a7a8ab73f2ae2b98f6799969df1d8088f0c218f1a2c052b740ed89caafa0a35
size 719008
oid sha256:130940879495cb09c9ac994738852d1f41473369bda8284252f69651417e6bb5
size 718589

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:b2e7d43acd46b0b9dad24f909cc1d30f7ee4fd0bfcb81cae87c28e77bb4dd2d4
size 435448
oid sha256:6d38283150c7a18508ee022416b6733e4a44a047d41dae806854f60efac8654c
size 435248

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:c7d0b46a3a2526de93876739494922b1a46d51f5c94975c19400d2dc6782cb7e
size 2216057
oid sha256:cca8616eaadd0e9c1ceb36bc27e07f9d13f2efc88743f364908a0010839d55d8
size 2215961

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:5385fb7f2d25d29ece6881328d93e5ab2b59e696342ffda8166789c85c625a8c
size 371575
oid sha256:4db988d666c7b19e4784125c5e7b73172629f91f5f713eef1573d4a6d6355839
size 371622

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:fc55dbca7d7bbd5d7903ef4c337995dfcc2e401e2d1d2a126de62d19db435cea
size 1496434
oid sha256:7a1a618a1539b779a2ab088e5804bf4b0c710f2126896575910cd510e5ea79d8
size 1497074

View File

@@ -2,6 +2,7 @@ import { SimpleHeader, SimpleFooter } from 'components/GenericError'
import Head from 'next/head'
import { CommentDiscussionIcon } from '@primer/octicons-react'
import { useVersion } from 'components/hooks/useVersion'
import { Lead } from 'components/ui/Lead'
const Custom404 = () => {
const { isEnterprise } = useVersion()
@@ -17,7 +18,7 @@ const Custom404 = () => {
<div className="container-xl p-responsive py-6 width-full flex-1">
<article className="col-md-10 col-lg-7 mx-auto">
<h1 className="mb-3 pb-3 border-bottom">Ooops!</h1>
<p className="f2 color-text-secondary">It looks like this page doesn't exist.</p>
<Lead>It looks like this page doesn't exist.</Lead>
<p className="f3">
We track these errors automatically, but if the problem persists please feel free to
contact us.

View File

@@ -2,6 +2,7 @@ import React from 'react'
import ReactDomServer from 'react-dom/server'
import { BumpLink, BumpLinkPropsT } from 'components/ui/BumpLink/BumpLink'
import { Callout, CalloutPropsT } from 'components/ui/Callout/Callout'
import { Lead, LeadPropsT } from 'components/ui/Lead/Lead'
import {
MarkdownContent,
MarkdownContentPropsT,
@@ -78,9 +79,10 @@ const markdownExample = (
</>
)
// Trying to keep these alphabetical order
const stories = [
{
name: 'BumpLink',
name: 'BumpLink', // {component.name} gets optimized away
component: BumpLink,
variants: [
{ title: 'Think basic', href: 'http://example.com' } as BumpLinkPropsT,
@@ -98,7 +100,7 @@ const stories = [
],
},
{
name: 'Callout', // {component.name} gets optimized away
name: 'Callout',
component: Callout,
variants: [
{ variant: 'success', children: 'Yay you did it!', className: '' } as CalloutPropsT,
@@ -107,6 +109,21 @@ const stories = [
{ variant: 'success', children: 'I am a little font', className: 'f6' } as CalloutPropsT,
],
},
{
name: 'Lead',
component: Lead,
variants: [
{ children: 'Lead by example' } as LeadPropsT,
{ children: 'Lead by blue', className: 'color-bg-info' } as LeadPropsT,
{
children: (
<>
You can personalize Codespaces by using a <code>dotfiles</code> repository on GitHub.
</>
),
} as LeadPropsT,
],
},
{
name: 'MarkdownContent',
component: MarkdownContent,
@@ -128,9 +145,7 @@ export default function Storybook() {
return (
<div className="p-4 mx-auto" style={{ maxWidth: 1200 }}>
<h1>GitHub Docs Storybook</h1>
<p className="f2 color-text-secondary">
This page lists React components unique to the GitHub docs.
</p>
<Lead>This page lists React components unique to the GitHub docs.</Lead>
<div className="my-4 d-lg-flex flex-items-start">
<nav className="menu col-12 col-lg-3 mr-4 color-bg-secondary position-lg-sticky top-0">
{stories.map(({ name }) => (