Adds a `featured` boolean field to each blueprint entry in `index.json`,
making featured status explicit in the data rather than requiring
consumers to maintain their own list.
### Changes
- Modified `build_json_index()` in `reindex_postprocess.py` to add
`featured` field based on `highlighted_blueprints` membership
- Converted `highlighted_blueprints` from list to set for O(1) lookup
- Added `__pycache__/` and `*.pyc` to `.gitignore`
### Example output
```json
{
"blueprints/stylish-press/blueprint.json": {
"title": "Stylish Press",
"description": "A Woo store with custom theme, content, and products.",
"author": "adamziel",
"categories": ["Woocommerce", "Site"],
"screenshot_url": "...",
"featured": true
},
"blueprints/admin-notice/blueprint.json": {
"title": "Display Admin Notice",
"featured": false
}
}
```
The `index.json` will be regenerated by CI when merged to trunk.
<!-- START COPILOT CODING AGENT SUFFIX -->
<details>
<summary>Original prompt</summary>
>
> ----
>
> *This section details on the original issue you should resolve*
>
> <issue_title>Include a "featured" boolean flag in
index.json</issue_title>
> <issue_description>Let's clearly indicate which indexed Blueprints are
featured</issue_description>
>
> ## Comments on the Issue (you are @copilot in this section)
>
> <comments>
> </comments>
>
</details>
- Fixes WordPress/blueprints#158
<!-- START COPILOT CODING AGENT TIPS -->
---
💡 You can make Copilot smarter by setting up custom instructions,
customizing its development environment and configuring Model Context
Protocol (MCP) servers. Learn more [Copilot coding agent
tips](https://gh.io/copilot-coding-agent-tips) in the docs.
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: adamziel <205419+adamziel@users.noreply.github.com>
34 lines
368 B
Text
34 lines
368 B
Text
# macOS system files
|
|
.DS_Store
|
|
|
|
# Windows system files
|
|
Thumbs.db
|
|
ehthumbs.db
|
|
Desktop.ini
|
|
|
|
# Node modules
|
|
node_modules/
|
|
|
|
# Logs
|
|
npm-debug.log*
|
|
yarn-debug.log*
|
|
yarn-error.log*
|
|
|
|
# Environment files
|
|
.env
|
|
.env.*
|
|
|
|
# Editor directories and files
|
|
.vscode/
|
|
.idea/
|
|
*.sublime-workspace
|
|
*.sublime-project
|
|
|
|
# OS generated files
|
|
*.swp
|
|
*.bak
|
|
*.tmp
|
|
|
|
# Python cache
|
|
__pycache__/
|
|
*.pyc
|