diff --git a/assets/images/social-cards/_convert-svgs.sh b/assets/images/social-cards/_convert-svgs.sh new file mode 100755 index 000000000000..c317fe175859 --- /dev/null +++ b/assets/images/social-cards/_convert-svgs.sh @@ -0,0 +1,87 @@ +#!/bin/bash + +# Generate social card PNGs from template SVGs +# Requires: +# - librsvg (install with: brew install librsvg) +# - zopfli (install with: brew install zopfli) +# - Mona Sans font (install with: brew install --cask font-mona-sans) + +set -e + +SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" + +# Check for required CLI tools +if ! command -v rsvg-convert &> /dev/null; then + echo "Error: rsvg-convert not found. Install with: brew install librsvg" + exit 1 +fi + +if ! command -v zopflipng &> /dev/null; then + echo "Error: zopflipng not found. Install with: brew install zopfli" + exit 1 +fi + +# Check for Mona Sans font +if ! fc-list | grep -qi "Mona Sans"; then + echo "Error: Mona Sans font not found. Install with: brew install --cask font-mona-sans" + exit 1 +fi + +# Labels to generate from template (filename:Label Text) +LABELS=( + "account-and-profile:Account" + "actions:Actions" + "admin:Admin" + "apps:Apps" + "authentication:Auth" + "billing:Billing" + "code-security:Security" + "codespaces:Codespaces" + "communities:Community" + "contributing:Contributing" + "copilot:Copilot" + "desktop:Desktop" + "discussions:Discussions" + "education:Education" + "enterprise-onboarding:Enterprise" + "get-started:Get Started" + "github-cli:GitHub CLI" + "github-models:Models" + "graphql:GraphQL" + "integrations:Integrations" + "issues:Issues" + "migrations:Migrations" + "nonprofit:Nonprofit" + "organizations:Orgs" + "packages:Packages" + "pages:Pages" + "pull-requests:Pull requests" + "repositories:Repositories" + "rest:REST" + "search-github:Search" + "site-policy:Site Policy" + "sponsors:Sponsors" + "subscriptions-and-notifications:Account" + "support:Support" + "webhooks:Webhooks" +) + +# Generate default.png from _default.svg +echo "Converting _default.svg to default.png..." +rsvg-convert -w 1200 -h 628 "$SCRIPT_DIR/_default.svg" -o "$SCRIPT_DIR/default.png" +echo "Optimizing default.png with zopflipng..." +zopflipng -y "$SCRIPT_DIR/default.png" "$SCRIPT_DIR/default.png" + +# Generate labeled PNGs from _template.svg +for entry in "${LABELS[@]}"; do + filename="${entry%%:*}" + label="${entry##*:}" + png="$SCRIPT_DIR/$filename.png" + + echo "Generating $filename.png with label \"$label\"..." + sed "s/{{LABEL}}/$label/g" "$SCRIPT_DIR/_template.svg" | rsvg-convert -w 1200 -h 628 -o "$png" + echo "Optimizing $filename.png with zopflipng..." + zopflipng -y "$png" "$png" +done + +echo "Done!" diff --git a/assets/images/social-cards/_default.svg b/assets/images/social-cards/_default.svg new file mode 100644 index 000000000000..09c966f62c1e --- /dev/null +++ b/assets/images/social-cards/_default.svg @@ -0,0 +1,37 @@ + + + + + + + + GitHub + + + Docs + + + diff --git a/assets/images/social-cards/_template.svg b/assets/images/social-cards/_template.svg new file mode 100644 index 000000000000..82d14ad1aef8 --- /dev/null +++ b/assets/images/social-cards/_template.svg @@ -0,0 +1,48 @@ + + + + + + + GitHub + + + Docs + + + + {{LABEL}} + + diff --git a/assets/images/social-cards/account-and-profile.png b/assets/images/social-cards/account-and-profile.png new file mode 100644 index 000000000000..77332cb01d66 Binary files /dev/null and b/assets/images/social-cards/account-and-profile.png differ diff --git a/assets/images/social-cards/actions.png b/assets/images/social-cards/actions.png index 0c992b7995cc..7331a4c583c8 100644 Binary files a/assets/images/social-cards/actions.png and b/assets/images/social-cards/actions.png differ diff --git a/assets/images/social-cards/admin.png b/assets/images/social-cards/admin.png new file mode 100644 index 000000000000..195f9dc29684 Binary files /dev/null and b/assets/images/social-cards/admin.png differ diff --git a/assets/images/social-cards/apps.png b/assets/images/social-cards/apps.png new file mode 100644 index 000000000000..024a88142325 Binary files /dev/null and b/assets/images/social-cards/apps.png differ diff --git a/assets/images/social-cards/authentication.png b/assets/images/social-cards/authentication.png new file mode 100644 index 000000000000..dc883334119c Binary files /dev/null and b/assets/images/social-cards/authentication.png differ diff --git a/assets/images/social-cards/billing.png b/assets/images/social-cards/billing.png new file mode 100644 index 000000000000..911c238615c4 Binary files /dev/null and b/assets/images/social-cards/billing.png differ diff --git a/assets/images/social-cards/code-security.png b/assets/images/social-cards/code-security.png index eb9dce059364..b199e3c8174b 100644 Binary files a/assets/images/social-cards/code-security.png and b/assets/images/social-cards/code-security.png differ diff --git a/assets/images/social-cards/codespaces.png b/assets/images/social-cards/codespaces.png new file mode 100644 index 000000000000..23f72395ec89 Binary files /dev/null and b/assets/images/social-cards/codespaces.png differ diff --git a/assets/images/social-cards/communities.png b/assets/images/social-cards/communities.png new file mode 100644 index 000000000000..d9e61ed6e5d3 Binary files /dev/null and b/assets/images/social-cards/communities.png differ diff --git a/assets/images/social-cards/contributing.png b/assets/images/social-cards/contributing.png new file mode 100644 index 000000000000..838299ad2c80 Binary files /dev/null and b/assets/images/social-cards/contributing.png differ diff --git a/assets/images/social-cards/copilot.png b/assets/images/social-cards/copilot.png index 4e44638c587e..8c4ee54c4a7a 100644 Binary files a/assets/images/social-cards/copilot.png and b/assets/images/social-cards/copilot.png differ diff --git a/assets/images/social-cards/default.png b/assets/images/social-cards/default.png index 5afef85bd1a8..de9ed55c9d9e 100644 Binary files a/assets/images/social-cards/default.png and b/assets/images/social-cards/default.png differ diff --git a/assets/images/social-cards/desktop.png b/assets/images/social-cards/desktop.png new file mode 100644 index 000000000000..81e18f4153ba Binary files /dev/null and b/assets/images/social-cards/desktop.png differ diff --git a/assets/images/social-cards/discussions.png b/assets/images/social-cards/discussions.png new file mode 100644 index 000000000000..a7f8916f6811 Binary files /dev/null and b/assets/images/social-cards/discussions.png differ diff --git a/assets/images/social-cards/education.png b/assets/images/social-cards/education.png new file mode 100644 index 000000000000..05264acec0c5 Binary files /dev/null and b/assets/images/social-cards/education.png differ diff --git a/assets/images/social-cards/enterprise-onboarding.png b/assets/images/social-cards/enterprise-onboarding.png new file mode 100644 index 000000000000..5dcf1233b068 Binary files /dev/null and b/assets/images/social-cards/enterprise-onboarding.png differ diff --git a/assets/images/social-cards/get-started.png b/assets/images/social-cards/get-started.png new file mode 100644 index 000000000000..d532a3a21e14 Binary files /dev/null and b/assets/images/social-cards/get-started.png differ diff --git a/assets/images/social-cards/github-cli.png b/assets/images/social-cards/github-cli.png new file mode 100644 index 000000000000..5fb0887e7b3b Binary files /dev/null and b/assets/images/social-cards/github-cli.png differ diff --git a/assets/images/social-cards/github-models.png b/assets/images/social-cards/github-models.png new file mode 100644 index 000000000000..81476926930f Binary files /dev/null and b/assets/images/social-cards/github-models.png differ diff --git a/assets/images/social-cards/graphql.png b/assets/images/social-cards/graphql.png new file mode 100644 index 000000000000..5545268bdc06 Binary files /dev/null and b/assets/images/social-cards/graphql.png differ diff --git a/assets/images/social-cards/integrations.png b/assets/images/social-cards/integrations.png new file mode 100644 index 000000000000..3c7d49f54399 Binary files /dev/null and b/assets/images/social-cards/integrations.png differ diff --git a/assets/images/social-cards/issues.png b/assets/images/social-cards/issues.png index 112ae1485342..9ba5c37a40f1 100644 Binary files a/assets/images/social-cards/issues.png and b/assets/images/social-cards/issues.png differ diff --git a/assets/images/social-cards/migrations.png b/assets/images/social-cards/migrations.png new file mode 100644 index 000000000000..81fc9a0ad62f Binary files /dev/null and b/assets/images/social-cards/migrations.png differ diff --git a/assets/images/social-cards/nonprofit.png b/assets/images/social-cards/nonprofit.png new file mode 100644 index 000000000000..ce7062ca448a Binary files /dev/null and b/assets/images/social-cards/nonprofit.png differ diff --git a/assets/images/social-cards/organizations.png b/assets/images/social-cards/organizations.png new file mode 100644 index 000000000000..15f22ccbe3a7 Binary files /dev/null and b/assets/images/social-cards/organizations.png differ diff --git a/assets/images/social-cards/packages.png b/assets/images/social-cards/packages.png new file mode 100644 index 000000000000..fbd5979d7a6f Binary files /dev/null and b/assets/images/social-cards/packages.png differ diff --git a/assets/images/social-cards/pages.png b/assets/images/social-cards/pages.png new file mode 100644 index 000000000000..33b8de130cf0 Binary files /dev/null and b/assets/images/social-cards/pages.png differ diff --git a/assets/images/social-cards/pull-requests.png b/assets/images/social-cards/pull-requests.png new file mode 100644 index 000000000000..bd1199dea863 Binary files /dev/null and b/assets/images/social-cards/pull-requests.png differ diff --git a/assets/images/social-cards/repositories.png b/assets/images/social-cards/repositories.png new file mode 100644 index 000000000000..7c806b4fac82 Binary files /dev/null and b/assets/images/social-cards/repositories.png differ diff --git a/assets/images/social-cards/rest.png b/assets/images/social-cards/rest.png new file mode 100644 index 000000000000..b6e19cb2a939 Binary files /dev/null and b/assets/images/social-cards/rest.png differ diff --git a/assets/images/social-cards/search-github.png b/assets/images/social-cards/search-github.png new file mode 100644 index 000000000000..3e26c0e00dbd Binary files /dev/null and b/assets/images/social-cards/search-github.png differ diff --git a/assets/images/social-cards/site-policy.png b/assets/images/social-cards/site-policy.png new file mode 100644 index 000000000000..e8b86c4a8e7c Binary files /dev/null and b/assets/images/social-cards/site-policy.png differ diff --git a/assets/images/social-cards/sponsors.png b/assets/images/social-cards/sponsors.png new file mode 100644 index 000000000000..264e011d75cd Binary files /dev/null and b/assets/images/social-cards/sponsors.png differ diff --git a/assets/images/social-cards/subscriptions-and-notifications.png b/assets/images/social-cards/subscriptions-and-notifications.png new file mode 100644 index 000000000000..77332cb01d66 Binary files /dev/null and b/assets/images/social-cards/subscriptions-and-notifications.png differ diff --git a/assets/images/social-cards/support.png b/assets/images/social-cards/support.png new file mode 100644 index 000000000000..70dcc1f37081 Binary files /dev/null and b/assets/images/social-cards/support.png differ diff --git a/assets/images/social-cards/webhooks.png b/assets/images/social-cards/webhooks.png new file mode 100644 index 000000000000..ed8fcf87b001 Binary files /dev/null and b/assets/images/social-cards/webhooks.png differ diff --git a/content/copilot/how-tos/use-copilot-agents/coding-agent/troubleshoot-coding-agent.md b/content/copilot/how-tos/use-copilot-agents/coding-agent/troubleshoot-coding-agent.md index 75d53dd0b187..d99a920b9f9e 100644 --- a/content/copilot/how-tos/use-copilot-agents/coding-agent/troubleshoot-coding-agent.md +++ b/content/copilot/how-tos/use-copilot-agents/coding-agent/troubleshoot-coding-agent.md @@ -71,7 +71,7 @@ If there is a "{% data variables.product.prodname_copilot_short %} started work" If you do have write access, and you mention `@copilot` on a pull request that is assigned to {% data variables.product.prodname_copilot_short %}, the comment is passed to {% data variables.copilot.copilot_coding_agent %}. An eyes emoji (👀) is added to your comment to indicate that {% data variables.copilot.copilot_coding_agent %} has seen your comment. Shortly after, a "{% data variables.product.prodname_copilot_short %} started work" event is added to the pull request timeline. -If this doesn't happen, {% data variables.product.prodname_copilot_short %} may have been unassigned from the pull request, or you may not have write access. +If this doesn't happen, {% data variables.product.prodname_copilot_short %} may have been unassigned from the pull request, or you may not have write access. Note that {% data variables.product.prodname_copilot_short %} only responds to mentions in open pull requests. Once a pull request is merged or closed, {% data variables.copilot.copilot_coding_agent %} will not respond to new mentions or comments to better focus on active development work. ## Based on the agent session logs, {% data variables.product.prodname_copilot_short %} appears to be stuck diff --git a/src/assets/scripts/find-orphaned-assets.ts b/src/assets/scripts/find-orphaned-assets.ts index da4fd6d8b5dd..15143e4d7fc2 100755 --- a/src/assets/scripts/find-orphaned-assets.ts +++ b/src/assets/scripts/find-orphaned-assets.ts @@ -43,11 +43,42 @@ const EXCEPTIONS = new Set([ 'assets/images/site/evergreens/sequoia.png', 'assets/images/site/evergreens/spruce.png', 'assets/images/site/evergreens/yew.png', + 'assets/images/social-cards/account-and-profile.png', 'assets/images/social-cards/actions.png', + 'assets/images/social-cards/admin.png', + 'assets/images/social-cards/apps.png', + 'assets/images/social-cards/authentication.png', + 'assets/images/social-cards/billing.png', + 'assets/images/social-cards/code-security.png', + 'assets/images/social-cards/codespaces.png', + 'assets/images/social-cards/communities.png', + 'assets/images/social-cards/contributing.png', 'assets/images/social-cards/copilot.png', 'assets/images/social-cards/default.png', + 'assets/images/social-cards/desktop.png', + 'assets/images/social-cards/discussions.png', + 'assets/images/social-cards/education.png', + 'assets/images/social-cards/enterprise-onboarding.png', + 'assets/images/social-cards/get-started.png', + 'assets/images/social-cards/github-cli.png', + 'assets/images/social-cards/github-models.png', + 'assets/images/social-cards/graphql.png', + 'assets/images/social-cards/integrations.png', 'assets/images/social-cards/issues.png', - 'assets/images/social-cards/code-security.png', + 'assets/images/social-cards/migrations.png', + 'assets/images/social-cards/nonprofit.png', + 'assets/images/social-cards/organizations.png', + 'assets/images/social-cards/packages.png', + 'assets/images/social-cards/pages.png', + 'assets/images/social-cards/pull-requests.png', + 'assets/images/social-cards/repositories.png', + 'assets/images/social-cards/rest.png', + 'assets/images/social-cards/search-github.png', + 'assets/images/social-cards/site-policy.png', + 'assets/images/social-cards/sponsors.png', + 'assets/images/social-cards/subscriptions-and-notifications.png', + 'assets/images/social-cards/support.png', + 'assets/images/social-cards/webhooks.png', // Hero images may not be used, but we keep them around for future use 'assets/images/banner-images/hero-1.png', 'assets/images/banner-images/hero-2.png', diff --git a/src/frame/components/DefaultLayout.tsx b/src/frame/components/DefaultLayout.tsx index 5421d0c9460b..768b1f2a3247 100644 --- a/src/frame/components/DefaultLayout.tsx +++ b/src/frame/components/DefaultLayout.tsx @@ -63,7 +63,43 @@ export const DefaultLayout = (props: Props) => { const metaDescription = page.introPlainText ? page.introPlainText : t('default_description') - const SOCIAL_CATEGORIES = new Set(['code-security', 'actions', 'issues', 'copilot']) + const SOCIAL_CATEGORIES = new Set([ + 'account-and-profile', + 'actions', + 'admin', + 'apps', + 'authentication', + 'billing', + 'code-security', + 'codespaces', + 'communities', + 'contributing', + 'copilot', + 'desktop', + 'discussions', + 'education', + 'enterprise-onboarding', + 'get-started', + 'github-cli', + 'github-models', + 'graphql', + 'integrations', + 'issues', + 'migrations', + 'nonprofit', + 'organizations', + 'packages', + 'pages', + 'pull-requests', + 'repositories', + 'rest', + 'search-github', + 'site-policy', + 'sponsors', + 'subscriptions-and-notifications', + 'support', + 'webhooks', + ]) const SOCIAL_CARD_IMG_BASE_URL = `${xHost ? `https://${xHost}` : ''}/assets/cb-345/images/social-cards` function getCategoryImageUrl(category: string): string {