Skip to content

Commit 67fd1e5

Browse files
authored
Merge pull request github#40964 from github/repo-sync
Repo sync
2 parents 8d7ded3 + 3e8e7c0 commit 67fd1e5

File tree

7 files changed

+19
-273
lines changed

7 files changed

+19
-273
lines changed

data/ui.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -69,11 +69,6 @@ search:
6969
general_title: There was an error loading search results.
7070
ai_title: There was an error loading Copilot.
7171
description: You can still use this field to search our docs.
72-
cta:
73-
heading: Get quick answers!
74-
description: Ask Copilot your question.
75-
dismiss: Dismiss
76-
ask_copilot: Ask Copilot
7772
old_search:
7873
description: Enter a search term to find it in the GitHub Docs.
7974
placeholder: Search GitHub Docs

src/fixtures/fixtures/data/ui.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -69,11 +69,6 @@ search:
6969
general_title: There was an error loading search results.
7070
ai_title: There was an error loading Copilot.
7171
description: You can still use this field to search our docs.
72-
cta:
73-
heading: Get quick answers!
74-
description: Ask Copilot your question.
75-
dismiss: Dismiss
76-
ask_copilot: Ask Copilot
7772
old_search:
7873
description: Enter a search term to find it in the GitHub Docs.
7974
placeholder: Search GitHub Docs

src/frame/components/page-footer/SupportSection.module.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@
1717
}
1818
}
1919

20-
// Large is 4 columns
20+
// Large is 3 columns
2121
@media (min-width: 1280px) {
2222
.supportGrid {
23-
grid-template-columns: minmax(18rem, 1fr) repeat(3, 1fr);
23+
grid-template-columns: repeat(3, 1fr);
2424
}
2525
}

src/frame/components/page-footer/SupportSection.tsx

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ import { useMainContext } from '@/frame/components/context/MainContext'
77
import { useVersion } from '@/versions/components/useVersion'
88
import { useRouter } from 'next/router'
99
import { useTranslation } from '@/languages/components/useTranslation'
10-
import { AISearchCTAPopup } from '@/search/components/input/AISearchCTAPopup'
11-
import { useSearchOverlayContext } from '@/search/components/context/SearchOverlayContext'
1210

1311
import styles from './SupportSection.module.scss'
1412

@@ -17,7 +15,6 @@ export const SupportSection = () => {
1715
const { relativePath, enterpriseServerReleases } = useMainContext()
1816
const router = useRouter()
1917
const { t } = useTranslation('footer')
20-
const { setIsSearchOpen } = useSearchOverlayContext()
2118

2219
const isDeprecated =
2320
enterpriseServerReleases.isOldestReleaseDeprecated &&
@@ -29,7 +26,6 @@ export const SupportSection = () => {
2926
const showSurvey = !isDeprecated && !isSitePolicyDocs
3027
const showContribution = !isDeprecated && !isEarlyAccess && isEnglish
3128
const showSupport = true
32-
const showCopilotCTA = !isDeprecated && !isEarlyAccess && isEnglish
3329

3430
return (
3531
<section className="container-xl mt-lg-8 mt-6 px-3 px-md-6 no-print mx-auto">
@@ -42,14 +38,6 @@ export const SupportSection = () => {
4238
styles.supportGrid /* ← adds the grid rules */,
4339
)}
4440
>
45-
{showCopilotCTA && (
46-
<AISearchCTAPopup
47-
isOpen
48-
setIsSearchOpen={setIsSearchOpen}
49-
isDismissible={false}
50-
bannerType="footer"
51-
/>
52-
)}
5341
{showSurvey && <Survey />}
5442
{showContribution && <Contribution />}
5543
{showSupport && <Support />}

src/landings/components/TableOfContents.module.css

Lines changed: 0 additions & 16 deletions
This file was deleted.

src/landings/components/TableOfContents.tsx

Lines changed: 17 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
1-
import cx from 'classnames'
21
import React from 'react'
32

43
import { Link } from '@/frame/components/Link'
54
import type { TocItem } from '@/landings/types'
6-
import { ActionList } from '@primer/react'
7-
import styles from './TableOfContents.module.css'
85

96
type Props = {
107
items: Array<TocItem>
@@ -14,10 +11,7 @@ export const TableOfContents = (props: Props) => {
1411
const { items, variant = 'expanded' } = props
1512

1613
return (
17-
<div
18-
data-testid="table-of-contents"
19-
className={cx(variant === 'compact' ? 'list-style-outside pl-2' : '')}
20-
>
14+
<div data-testid="table-of-contents">
2115
{variant === 'expanded' &&
2216
items.map((item) => {
2317
const { fullPath: href, title, intro } = item
@@ -41,40 +35,29 @@ export const TableOfContents = (props: Props) => {
4135
})}
4236

4337
{variant === 'compact' && (
44-
<ActionList>
38+
<ul className="list-style-none f4">
4539
{items.map((item) => {
4640
const { fullPath, title, childTocItems } = item
4741
return (
48-
<React.Fragment key={fullPath}>
49-
<ActionList.LinkItem href={fullPath} as="a" className={styles.linkItem}>
42+
<li key={fullPath} className="mb-2">
43+
<Link href={fullPath} className="text-underline mb-2 d-block">
5044
{title}
51-
</ActionList.LinkItem>
52-
{(childTocItems || []).length > 0 && (
53-
<li className="f4 color-fg-accent d-list-item d-block width-full text-underline">
54-
<ActionList
55-
className={cx(
56-
variant === 'compact' ? 'list-style-circle pl-5' : 'list-style-none',
57-
)}
58-
>
59-
{(childTocItems || []).filter(Boolean).map((childItem) => {
60-
return (
61-
<ActionList.LinkItem
62-
key={childItem.fullPath}
63-
href={childItem.fullPath}
64-
as="a"
65-
className={styles.linkItem}
66-
>
67-
{childItem.title}
68-
</ActionList.LinkItem>
69-
)
70-
})}
71-
</ActionList>
72-
</li>
45+
</Link>
46+
{(childTocItems || []).filter(Boolean).length > 0 && (
47+
<ul className="pl-4 list-style-none">
48+
{(childTocItems || []).filter(Boolean).map((childItem) => (
49+
<li key={childItem.fullPath} className="mb-2">
50+
<Link href={childItem.fullPath} className="text-underline">
51+
{childItem.title}
52+
</Link>
53+
</li>
54+
))}
55+
</ul>
7356
)}
74-
</React.Fragment>
57+
</li>
7558
)
7659
})}
77-
</ActionList>
60+
</ul>
7861
)}
7962
</div>
8063
)

src/search/components/input/AISearchCTAPopup.tsx

Lines changed: 0 additions & 199 deletions
This file was deleted.

0 commit comments

Comments
 (0)