fix: parse featured field from display.featured in collections

The collection YAML files have featured nested under display object,
not at the top level. Updated generate-website-data.mjs to check both
data.featured and data.display?.featured.
This commit is contained in:
Aaron Powell
2026-01-28 16:56:41 +11:00
parent fbb92dc8aa
commit f76f63866a
4 changed files with 208 additions and 205 deletions

View File

@@ -400,12 +400,15 @@ function generateCollectionsData() {
const tags = data.tags || [];
tags.forEach((t) => allTags.add(t));
// featured can be at top level or nested under display
const featured = data.featured || data.display?.featured || false;
collections.push({
id: file.replace(".collection.yml", ""),
name: data.name || file.replace(".collection.yml", ""),
description: data.description || "",
tags: tags,
featured: data.featured || false,
featured: featured,
items: (data.items || []).map((item) => ({
path: item.path,
kind: item.kind,

View File

@@ -11,7 +11,7 @@
"prompt-engineering",
"agents"
],
"featured": false,
"featured": true,
"items": [
{
"path": "prompts/suggest-awesome-github-copilot-collections.prompt.md",
@@ -42,6 +42,169 @@
"path": "collections/awesome-copilot.collection.yml",
"filename": "awesome-copilot.collection.yml"
},
{
"id": "copilot-sdk",
"name": "Copilot SDK",
"description": "Build applications with the GitHub Copilot SDK across multiple programming languages. Includes comprehensive instructions for C#, Go, Node.js/TypeScript, and Python to help you create AI-powered applications.",
"tags": [
"copilot-sdk",
"sdk",
"csharp",
"go",
"nodejs",
"typescript",
"python",
"ai",
"github-copilot"
],
"featured": true,
"items": [
{
"path": "instructions/copilot-sdk-csharp.instructions.md",
"kind": "instruction",
"usage": null
},
{
"path": "instructions/copilot-sdk-go.instructions.md",
"kind": "instruction",
"usage": null
},
{
"path": "instructions/copilot-sdk-nodejs.instructions.md",
"kind": "instruction",
"usage": null
},
{
"path": "instructions/copilot-sdk-python.instructions.md",
"kind": "instruction",
"usage": null
}
],
"path": "collections/copilot-sdk.collection.yml",
"filename": "copilot-sdk.collection.yml"
},
{
"id": "partners",
"name": "Partners",
"description": "Custom agents that have been created by GitHub partners",
"tags": [
"devops",
"security",
"database",
"cloud",
"infrastructure",
"observability",
"feature-flags",
"cicd",
"migration",
"performance"
],
"featured": true,
"items": [
{
"path": "agents/amplitude-experiment-implementation.agent.md",
"kind": "agent",
"usage": null
},
{
"path": "agents/apify-integration-expert.agent.md",
"kind": "agent",
"usage": null
},
{
"path": "agents/arm-migration.agent.md",
"kind": "agent",
"usage": null
},
{
"path": "agents/diffblue-cover.agent.md",
"kind": "agent",
"usage": null
},
{
"path": "agents/droid.agent.md",
"kind": "agent",
"usage": null
},
{
"path": "agents/dynatrace-expert.agent.md",
"kind": "agent",
"usage": null
},
{
"path": "agents/elasticsearch-observability.agent.md",
"kind": "agent",
"usage": null
},
{
"path": "agents/jfrog-sec.agent.md",
"kind": "agent",
"usage": null
},
{
"path": "agents/launchdarkly-flag-cleanup.agent.md",
"kind": "agent",
"usage": null
},
{
"path": "agents/lingodotdev-i18n.agent.md",
"kind": "agent",
"usage": null
},
{
"path": "agents/monday-bug-fixer.agent.md",
"kind": "agent",
"usage": null
},
{
"path": "agents/mongodb-performance-advisor.agent.md",
"kind": "agent",
"usage": null
},
{
"path": "agents/neo4j-docker-client-generator.agent.md",
"kind": "agent",
"usage": null
},
{
"path": "agents/neon-migration-specialist.agent.md",
"kind": "agent",
"usage": null
},
{
"path": "agents/neon-optimization-analyzer.agent.md",
"kind": "agent",
"usage": null
},
{
"path": "agents/octopus-deploy-release-notes-mcp.agent.md",
"kind": "agent",
"usage": null
},
{
"path": "agents/stackhawk-security-onboarding.agent.md",
"kind": "agent",
"usage": null
},
{
"path": "agents/terraform.agent.md",
"kind": "agent",
"usage": null
},
{
"path": "agents/pagerduty-incident-responder.agent.md",
"kind": "agent",
"usage": null
},
{
"path": "agents/comet-opik.agent.md",
"kind": "agent",
"usage": null
}
],
"path": "collections/partners.collection.yml",
"filename": "partners.collection.yml"
},
{
"id": "azure-cloud-development",
"name": "Azure & Cloud Development",
@@ -303,47 +466,6 @@
"path": "collections/clojure-interactive-programming.collection.yml",
"filename": "clojure-interactive-programming.collection.yml"
},
{
"id": "copilot-sdk",
"name": "Copilot SDK",
"description": "Build applications with the GitHub Copilot SDK across multiple programming languages. Includes comprehensive instructions for C#, Go, Node.js/TypeScript, and Python to help you create AI-powered applications.",
"tags": [
"copilot-sdk",
"sdk",
"csharp",
"go",
"nodejs",
"typescript",
"python",
"ai",
"github-copilot"
],
"featured": false,
"items": [
{
"path": "instructions/copilot-sdk-csharp.instructions.md",
"kind": "instruction",
"usage": null
},
{
"path": "instructions/copilot-sdk-go.instructions.md",
"kind": "instruction",
"usage": null
},
{
"path": "instructions/copilot-sdk-nodejs.instructions.md",
"kind": "instruction",
"usage": null
},
{
"path": "instructions/copilot-sdk-python.instructions.md",
"kind": "instruction",
"usage": null
}
],
"path": "collections/copilot-sdk.collection.yml",
"filename": "copilot-sdk.collection.yml"
},
{
"id": "database-data-management",
"name": "Database & Data Management",
@@ -1006,128 +1128,6 @@
"path": "collections/openapi-to-application-python-fastapi.collection.yml",
"filename": "openapi-to-application-python-fastapi.collection.yml"
},
{
"id": "partners",
"name": "Partners",
"description": "Custom agents that have been created by GitHub partners",
"tags": [
"devops",
"security",
"database",
"cloud",
"infrastructure",
"observability",
"feature-flags",
"cicd",
"migration",
"performance"
],
"featured": false,
"items": [
{
"path": "agents/amplitude-experiment-implementation.agent.md",
"kind": "agent",
"usage": null
},
{
"path": "agents/apify-integration-expert.agent.md",
"kind": "agent",
"usage": null
},
{
"path": "agents/arm-migration.agent.md",
"kind": "agent",
"usage": null
},
{
"path": "agents/diffblue-cover.agent.md",
"kind": "agent",
"usage": null
},
{
"path": "agents/droid.agent.md",
"kind": "agent",
"usage": null
},
{
"path": "agents/dynatrace-expert.agent.md",
"kind": "agent",
"usage": null
},
{
"path": "agents/elasticsearch-observability.agent.md",
"kind": "agent",
"usage": null
},
{
"path": "agents/jfrog-sec.agent.md",
"kind": "agent",
"usage": null
},
{
"path": "agents/launchdarkly-flag-cleanup.agent.md",
"kind": "agent",
"usage": null
},
{
"path": "agents/lingodotdev-i18n.agent.md",
"kind": "agent",
"usage": null
},
{
"path": "agents/monday-bug-fixer.agent.md",
"kind": "agent",
"usage": null
},
{
"path": "agents/mongodb-performance-advisor.agent.md",
"kind": "agent",
"usage": null
},
{
"path": "agents/neo4j-docker-client-generator.agent.md",
"kind": "agent",
"usage": null
},
{
"path": "agents/neon-migration-specialist.agent.md",
"kind": "agent",
"usage": null
},
{
"path": "agents/neon-optimization-analyzer.agent.md",
"kind": "agent",
"usage": null
},
{
"path": "agents/octopus-deploy-release-notes-mcp.agent.md",
"kind": "agent",
"usage": null
},
{
"path": "agents/stackhawk-security-onboarding.agent.md",
"kind": "agent",
"usage": null
},
{
"path": "agents/terraform.agent.md",
"kind": "agent",
"usage": null
},
{
"path": "agents/pagerduty-incident-responder.agent.md",
"kind": "agent",
"usage": null
},
{
"path": "agents/comet-opik.agent.md",
"kind": "agent",
"usage": null
}
],
"path": "collections/partners.collection.yml",
"filename": "partners.collection.yml"
},
{
"id": "php-mcp-development",
"name": "PHP MCP Server Development",

View File

@@ -1,5 +1,5 @@
{
"generated": "2026-01-28T05:49:01.662Z",
"generated": "2026-01-28T05:56:29.890Z",
"counts": {
"agents": 140,
"prompts": 134,

View File

@@ -3734,6 +3734,45 @@
],
"searchText": "awesome copilot meta prompts that help you discover and generate curated github copilot agents, collections, instructions, prompts, and skills. github-copilot discovery meta prompt-engineering agents"
},
{
"type": "collection",
"id": "copilot-sdk",
"title": "Copilot SDK",
"description": "Build applications with the GitHub Copilot SDK across multiple programming languages. Includes comprehensive instructions for C#, Go, Node.js/TypeScript, and Python to help you create AI-powered applications.",
"path": "collections/copilot-sdk.collection.yml",
"tags": [
"copilot-sdk",
"sdk",
"csharp",
"go",
"nodejs",
"typescript",
"python",
"ai",
"github-copilot"
],
"searchText": "copilot sdk build applications with the github copilot sdk across multiple programming languages. includes comprehensive instructions for c#, go, node.js/typescript, and python to help you create ai-powered applications. copilot-sdk sdk csharp go nodejs typescript python ai github-copilot"
},
{
"type": "collection",
"id": "partners",
"title": "Partners",
"description": "Custom agents that have been created by GitHub partners",
"path": "collections/partners.collection.yml",
"tags": [
"devops",
"security",
"database",
"cloud",
"infrastructure",
"observability",
"feature-flags",
"cicd",
"migration",
"performance"
],
"searchText": "partners custom agents that have been created by github partners devops security database cloud infrastructure observability feature-flags cicd migration performance"
},
{
"type": "collection",
"id": "azure-cloud-development",
@@ -3810,25 +3849,6 @@
],
"searchText": "clojure interactive programming tools for repl-first clojure workflows featuring clojure instructions, the interactive programming chat mode and supporting guidance. clojure repl interactive-programming"
},
{
"type": "collection",
"id": "copilot-sdk",
"title": "Copilot SDK",
"description": "Build applications with the GitHub Copilot SDK across multiple programming languages. Includes comprehensive instructions for C#, Go, Node.js/TypeScript, and Python to help you create AI-powered applications.",
"path": "collections/copilot-sdk.collection.yml",
"tags": [
"copilot-sdk",
"sdk",
"csharp",
"go",
"nodejs",
"typescript",
"python",
"ai",
"github-copilot"
],
"searchText": "copilot sdk build applications with the github copilot sdk across multiple programming languages. includes comprehensive instructions for c#, go, node.js/typescript, and python to help you create ai-powered applications. copilot-sdk sdk csharp go nodejs typescript python ai github-copilot"
},
{
"type": "collection",
"id": "database-data-management",
@@ -4053,26 +4073,6 @@
],
"searchText": "openapi to application - python fastapi generate production-ready fastapi applications from openapi specifications. includes project scaffolding, route generation, dependency injection, and python best practices for async apis. openapi code-generation api python fastapi"
},
{
"type": "collection",
"id": "partners",
"title": "Partners",
"description": "Custom agents that have been created by GitHub partners",
"path": "collections/partners.collection.yml",
"tags": [
"devops",
"security",
"database",
"cloud",
"infrastructure",
"observability",
"feature-flags",
"cicd",
"migration",
"performance"
],
"searchText": "partners custom agents that have been created by github partners devops security database cloud infrastructure observability feature-flags cicd migration performance"
},
{
"type": "collection",
"id": "php-mcp-development",