Skip to content

Commit 51b4cb9

Browse files
Create Copilot group on Home page without affecting GHES users: #2 (#52832)
Co-authored-by: Rachael Sewell <rachmari@github.com>
1 parent 4eb3bc5 commit 51b4cb9

File tree

2 files changed

+20
-7
lines changed

2 files changed

+20
-7
lines changed

content/index.md

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,14 @@ childGroups:
100100
- repositories
101101
- pull-requests
102102
- discussions
103+
- name: GitHub Copilot
104+
octicon: CopilotIcon
105+
children:
103106
- copilot
107+
- copilot/using-github-copilot/getting-code-suggestions-in-your-ide-with-github-copilot
108+
- copilot/using-github-copilot/prompt-engineering-for-github-copilot
109+
- copilot/using-github-copilot/asking-github-copilot-questions-in-githubcom
110+
- copilot/using-github-copilot/example-use-cases/refactoring-code-with-github-copilot
104111
- name: CI/CD and DevOps
105112
octicon: GearIcon
106113
children:
@@ -128,21 +135,22 @@ childGroups:
128135
- issues
129136
- issues/planning-and-tracking-with-projects
130137
- search-github
138+
- name: Enterprise and Teams
139+
octicon: OrganizationIcon
140+
children:
141+
- organizations
142+
- code-security/securing-your-organization
143+
- admin
144+
- gh-wa
131145
- name: Developers
132146
octicon: CodeSquareIcon
133147
children:
134148
- apps
135149
- rest
136150
- graphql
137151
- webhooks
152+
- copilot/building-copilot-extensions
138153
- github-models
139-
- name: Enterprise and Teams
140-
octicon: OrganizationIcon
141-
children:
142-
- organizations
143-
- code-security/securing-your-organization
144-
- admin
145-
- gh-wa
146154
- name: Community
147155
octicon: GlobeIcon
148156
children:

src/landings/components/ProductSelectionCard.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@ type ProductSelectionCardProps = {
1010
}
1111

1212
export const ProductSelectionCard = ({ group }: ProductSelectionCardProps) => {
13+
// Don't display the group if it has no children due to versioning
14+
if (!group.children || group.children.length === 0) {
15+
return null
16+
}
17+
1318
const groupIcon = {
1419
height: '22px',
1520
}

0 commit comments

Comments
 (0)