Skip to content

Commit

Permalink
Create Copilot group on Home page without affecting GHES users: #2 (#…
Browse files Browse the repository at this point in the history
…52832)

Co-authored-by: Rachael Sewell <rachmari@github.com>
  • Loading branch information
felicitymay and rachmari authored Oct 24, 2024
1 parent 4eb3bc5 commit 51b4cb9
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 7 deletions.
22 changes: 15 additions & 7 deletions content/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,14 @@ childGroups:
- repositories
- pull-requests
- discussions
- name: GitHub Copilot
octicon: CopilotIcon
children:
- copilot
- copilot/using-github-copilot/getting-code-suggestions-in-your-ide-with-github-copilot
- copilot/using-github-copilot/prompt-engineering-for-github-copilot
- copilot/using-github-copilot/asking-github-copilot-questions-in-githubcom
- copilot/using-github-copilot/example-use-cases/refactoring-code-with-github-copilot
- name: CI/CD and DevOps
octicon: GearIcon
children:
Expand Down Expand Up @@ -128,21 +135,22 @@ childGroups:
- issues
- issues/planning-and-tracking-with-projects
- search-github
- name: Enterprise and Teams
octicon: OrganizationIcon
children:
- organizations
- code-security/securing-your-organization
- admin
- gh-wa
- name: Developers
octicon: CodeSquareIcon
children:
- apps
- rest
- graphql
- webhooks
- copilot/building-copilot-extensions
- github-models
- name: Enterprise and Teams
octicon: OrganizationIcon
children:
- organizations
- code-security/securing-your-organization
- admin
- gh-wa
- name: Community
octicon: GlobeIcon
children:
Expand Down
5 changes: 5 additions & 0 deletions src/landings/components/ProductSelectionCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ type ProductSelectionCardProps = {
}

export const ProductSelectionCard = ({ group }: ProductSelectionCardProps) => {
// Don't display the group if it has no children due to versioning
if (!group.children || group.children.length === 0) {
return null
}

const groupIcon = {
height: '22px',
}
Expand Down

0 comments on commit 51b4cb9

Please sign in to comment.