1
0
mirror of synced 2025-12-25 02:17:36 -05:00

Update documentation for GitHub AE's December 2021 release (#23405)

This commit is contained in:
Matt Pollard
2021-12-07 10:36:37 +01:00
committed by GitHub
parent db3254bfe7
commit b3e1ff4e89
284 changed files with 623 additions and 2373 deletions

View File

@@ -16,9 +16,7 @@ export function GHAEReleaseNotePatch({ patch, didEnterView }: Props) {
}
}, [onScreen])
const bannerText = patch.currentWeek
? t('banner_text_current')
: `${t('banner_text_past')} ${patch.friendlyDate}.`
const bannerText = t('banner_text')
return (
<div
@@ -45,7 +43,7 @@ export function GHAEReleaseNotePatch({ patch, didEnterView }: Props) {
<button className="js-print btn-link ml-3 text-small text-bold">Print</button>
</div>
<p className="color-fg-muted mt-1">
{patch.friendlyDate} - {bannerText}
{bannerText} {patch.friendlyDate}.
</p>
</header>

View File

@@ -85,7 +85,7 @@ const CollapsibleReleaseSection = ({
{release.version}
<div className="d-flex">
<span className="color-fg-muted text-small text-normal mr-1">
{release.patches.length} releases
{release.patches.length} {release.patches.length === 1 ? 'release' : 'releases'}
</span>
<ChevronDownIcon className={isOpen ? 'rotate-180' : ''} />
</div>

View File

@@ -166,7 +166,7 @@ const CollapsibleReleaseSection = ({
{release.version}
<div className="d-flex">
<span className="color-fg-muted text-small text-normal mr-1">
{release.patches.length} releases
{release.patches.length} {release.patches.length === 1 ? 'release' : 'releases'}
</span>
<ChevronDownIcon className={isOpen ? 'rotate-180' : ''} />
</div>

View File

@@ -93,11 +93,7 @@ export function PatchNotes({ patch, withReleaseNoteLabel }: Props) {
</h4>
{item.notes.map((note) => {
return (
<li
key={note}
className={cx(!withReleaseNoteLabel && 'list-style-none', 'f4')}
dangerouslySetInnerHTML={{ __html: note }}
/>
<li key={note} className="f4" dangerouslySetInnerHTML={{ __html: note }} />
)
})}
</Fragment>