Skip to content

Commit 6c1c861

Browse files
authored
Merge pull request #12951 from github/repo-sync
repo sync
2 parents b021ce9 + e8639aa commit 6c1c861

76 files changed

Lines changed: 166 additions & 153 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

components/release-notes/GHAEReleaseNotePatch.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export function GHAEReleaseNotePatch({ patch, didEnterView }: Props) {
2626
>
2727
<header
2828
style={{ zIndex: 1 }}
29-
className="container-xl position-sticky top-0 color-bg-subtle border-bottom px-3 pt-4 pb-2"
29+
className="container-xl color-bg-subtle border-bottom px-3 pt-4 pb-2"
3030
>
3131
<div className="d-flex flex-items-center">
3232
<h2 className="border-bottom-0 m-0 p-0">{patch.title}</h2>

components/release-notes/GHAEReleaseNotes.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ import { GHAEReleaseNotePatch } from './GHAEReleaseNotePatch'
55
import { GHAEReleaseNotesContextT } from './types'
66
import { MarkdownContent } from 'components/ui/MarkdownContent'
77

8+
import styles from './PatchNotes.module.scss'
9+
810
type GitHubAEProps = {
911
context: GHAEReleaseNotesContextT
1012
}
@@ -35,8 +37,10 @@ export function GHAEReleaseNotes({ context }: GitHubAEProps) {
3537
</article>
3638

3739
<aside
38-
className="position-sticky top-0 d-none d-md-block border-left no-print color-bg-default flex-shrink-0"
39-
style={{ width: 260, height: '100vh' }}
40+
className={cx(
41+
'position-sticky d-none d-md-block border-left no-print color-bg-default flex-shrink-0',
42+
styles.aside
43+
)}
4044
>
4145
<nav className="height-full overflow-auto">
4246
<MarkdownContent data-search="article-content">

components/release-notes/GHESReleaseNotePatch.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export function GHESReleaseNotePatch({
4040
>
4141
<header
4242
style={{ zIndex: 1 }}
43-
className="container-xl position-sticky top-0 color-bg-subtle border-bottom px-3 pt-4 pb-2"
43+
className="container-xl color-bg-subtle border-bottom px-3 pt-4 pb-2"
4444
>
4545
<div className="d-flex flex-items-center">
4646
<h2 className="border-bottom-0 m-0 p-0">

components/release-notes/GHESReleaseNotes.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ import { MarkdownContent } from 'components/ui/MarkdownContent'
1515
import { GHESReleaseNotesContextT } from './types'
1616
import { GHESReleaseNotePatch } from './GHESReleaseNotePatch'
1717

18+
import styles from './PatchNotes.module.scss'
19+
1820
type Props = {
1921
context: GHESReleaseNotesContextT
2022
}
@@ -82,8 +84,10 @@ export function GHESReleaseNotes({ context }: Props) {
8284
</article>
8385

8486
<aside
85-
className="position-sticky top-0 d-none d-md-block border-left no-print color-bg-default flex-shrink-0"
86-
style={{ width: 260, height: '100vh' }}
87+
className={cx(
88+
'position-sticky d-none d-md-block border-left no-print color-bg-default flex-shrink-0',
89+
styles.aside
90+
)}
8791
>
8892
<nav className="height-full overflow-auto">
8993
<MarkdownContent data-search="article-content">
Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
@import "@primer/css/layout/index.scss";
22

33
.sectionHeading {
4-
scroll-margin-top: 280px !important;
5-
@include breakpoint(sm) {
6-
scroll-margin-top: 200px !important;
7-
}
4+
scroll-margin-top: 70px !important;
5+
}
6+
7+
.aside {
8+
width: 260px;
9+
height: calc(100vh - 70px);
10+
top: 70px;
811
}

lib/rest/index.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,11 @@ export default async function getRest() {
1212
const operations = {}
1313
fs.readdirSync(schemasPath).forEach((filename) => {
1414
// In staging deploys, the `.json` files might have been converted to
15-
// to `.json.br`. The `readCompressedJsonFileFallback()` function
16-
// can handle both but you need to call it with the `.json` filename.
17-
const key = path.parse(filename).name
15+
// to `.json.br`. In that case, we need to also remove the `.json`
16+
// extension from the key
17+
const key = path.parse(filename).name.replace('.json', '')
18+
// The `readCompressedJsonFileFallback()` function
19+
// will check for both a .br and .json extension.
1820
const value = readCompressedJsonFileFallback(path.join(schemasPath, filename))
1921
operations[key] = value
2022
})
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
version https://git-lfs.github.com/spec/v1
2-
oid sha256:5b07a8e48fc921d0dbbfba5eccb4c7e11a839d1e20493a7ea369a30e9562567a
3-
size 606407
2+
oid sha256:2be7450f959923e9e74ef2417ba1e0f98f2b0f8f769edc7a0dccbe32d374bc43
3+
size 606254
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
version https://git-lfs.github.com/spec/v1
2-
oid sha256:6a0f80a844047da849c32e1879dfb46413599c962bde418bb32dee450a42f84a
3-
size 1519551
2+
oid sha256:e29e0333ed08ac36598d6ff228d4e458bf00c473068fdef283cdd91646e4ca71
3+
size 1519746
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
version https://git-lfs.github.com/spec/v1
2-
oid sha256:e66729712c893e76869a47bd36a825f097af5b2f0e483bbe96bba1a607552ce7
3-
size 946758
2+
oid sha256:957fd9236b3cff0840a3d908ebecef15ab68c42eb30c6f9c804aa5d0b3ff7ece
3+
size 946504
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
version https://git-lfs.github.com/spec/v1
2-
oid sha256:7397a575e3104b98d807cfa77cad9d738dbb236580035bffb851b52eb8bc3cbc
3-
size 3862906
2+
oid sha256:cede915d8b6ada5024a210e84607cf3d5f3a57b6aea03ea6e094f50dc8cc69e6
3+
size 3861798

0 commit comments

Comments
 (0)