Skip to content

Commit

Permalink
Add description and author to GALLERY.md (#30)
Browse files Browse the repository at this point in the history
Adds the Blueprint description and author link to GALLERY.md to provide
viewers with more information.

**Before**

![CleanShot 2024-04-19 at 17 46
21@2x](https://github.com/adamziel/blueprints/assets/205419/dcd0ff17-fcce-447d-9d2b-6ab1cc77e7c0)

**After**

![CleanShot 2024-04-19 at 17 51
10@2x](https://github.com/adamziel/blueprints/assets/205419/fb967ea5-95bf-4d87-b276-cb0b708ff180)
  • Loading branch information
adamziel authored Apr 19, 2024
1 parent e81e436 commit 91ac9f5
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 14 deletions.
24 changes: 12 additions & 12 deletions GALLERY.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@

Here's the list of all the community Blueprints submitted to this repository. See the [contribution guidelines](./README.md#contributing-your-blueprint) to submit your Blueprint and share your WordPress setup with the world!

| Title | Preview | Source |
| ----- | ------- | ------ |
| Content via wp-cli and markdown | [Preview](https://playground.wordpress.net/?blueprint-url=https://raw.githubusercontent.com/adamziel/blueprints/trunk/blueprints/wpcli-markdown/blueprint.json) | [Source](https://github.com/adamziel/blueprints/blob/trunk/blueprints/wpcli-markdown/blueprint.json) |
| Custom Post Type: Books | [Preview](https://playground.wordpress.net/?blueprint-url=https://raw.githubusercontent.com/adamziel/blueprints/trunk/blueprints/custom-post/blueprint.json) | [Source](https://github.com/adamziel/blueprints/blob/trunk/blueprints/custom-post/blueprint.json) |
| Display Admin Notice | [Preview](https://playground.wordpress.net/?blueprint-url=https://raw.githubusercontent.com/adamziel/blueprints/trunk/blueprints/admin-notice/blueprint.json) | [Source](https://github.com/adamziel/blueprints/blob/trunk/blueprints/admin-notice/blueprint.json) |
| Grid Variations Experiments enabled | [Preview](https://playground.wordpress.net/?blueprint-url=https://raw.githubusercontent.com/adamziel/blueprints/trunk/blueprints/grid-variations/blueprint.json) | [Source](https://github.com/adamziel/blueprints/blob/trunk/blueprints/grid-variations/blueprint.json) |
| Install WordPress language packs | [Preview](https://playground.wordpress.net/?blueprint-url=https://raw.githubusercontent.com/adamziel/blueprints/trunk/blueprints/translations/blueprint.json) | [Source](https://github.com/adamziel/blueprints/blob/trunk/blueprints/translations/blueprint.json) |
| Install plugin from a gist | [Preview](https://playground.wordpress.net/?blueprint-url=https://raw.githubusercontent.com/adamziel/blueprints/trunk/blueprints/install-plugin-from-gist/blueprint.json) | [Source](https://github.com/adamziel/blueprints/blob/trunk/blueprints/install-plugin-from-gist/blueprint.json) |
| Latest Gutenberg plugin | [Preview](https://playground.wordpress.net/?blueprint-url=https://raw.githubusercontent.com/adamziel/blueprints/trunk/blueprints/latest-gutenberg/blueprint.json) | [Source](https://github.com/adamziel/blueprints/blob/trunk/blueprints/latest-gutenberg/blueprint.json) |
| Theme Tester | [Preview](https://playground.wordpress.net/?blueprint-url=https://raw.githubusercontent.com/adamziel/blueprints/trunk/blueprints/theme-a11y-test/blueprint.json) | [Source](https://github.com/adamziel/blueprints/blob/trunk/blueprints/theme-a11y-test/blueprint.json) |
| Use wp-cli command to add posts | [Preview](https://playground.wordpress.net/?blueprint-url=https://raw.githubusercontent.com/adamziel/blueprints/trunk/blueprints/posts-via-wp-cli/blueprint.json) | [Source](https://github.com/adamziel/blueprints/blob/trunk/blueprints/posts-via-wp-cli/blueprint.json) |
| WooCommerce product feed | [Preview](https://playground.wordpress.net/?blueprint-url=https://raw.githubusercontent.com/adamziel/blueprints/trunk/blueprints/woocommerce-product-feed/blueprint.json) | [Source](https://github.com/adamziel/blueprints/blob/trunk/blueprints/woocommerce-product-feed/blueprint.json) |
| Title | Preview | Source | Author | Description |
| ----- | ------- | ------ | ------ | ----------- |
| Content via wp-cli and markdown | [Preview](https://playground.wordpress.net/?blueprint-url=https://raw.githubusercontent.com/adamziel/blueprints/trunk/blueprints/wpcli-markdown/blueprint.json) | [Source](https://github.com/adamziel/blueprints/blob/trunk/blueprints/wpcli-markdown/blueprint.json) | [@bph](https://github.com/bph) | create post from markdown file with an image |
| Custom Post Type: Books | [Preview](https://playground.wordpress.net/?blueprint-url=https://raw.githubusercontent.com/adamziel/blueprints/trunk/blueprints/custom-post/blueprint.json) | [Source](https://github.com/adamziel/blueprints/blob/trunk/blueprints/custom-post/blueprint.json) | [@bph](https://github.com/bph) | Blueprint that added a custom post type to playground |
| Display Admin Notice | [Preview](https://playground.wordpress.net/?blueprint-url=https://raw.githubusercontent.com/adamziel/blueprints/trunk/blueprints/admin-notice/blueprint.json) | [Source](https://github.com/adamziel/blueprints/blob/trunk/blueprints/admin-notice/blueprint.json) | [@bph](https://github.com/bph) | Blueprint to add a tiny mu-plugin and display an admin notice |
| Grid Variations Experiments enabled | [Preview](https://playground.wordpress.net/?blueprint-url=https://raw.githubusercontent.com/adamziel/blueprints/trunk/blueprints/grid-variations/blueprint.json) | [Source](https://github.com/adamziel/blueprints/blob/trunk/blueprints/grid-variations/blueprint.json) | [@bph](https://github.com/bph) | Blueprint example to toggle on enable a feature from the Experiments page in Gutenberg plugin |
| Install WordPress language packs | [Preview](https://playground.wordpress.net/?blueprint-url=https://raw.githubusercontent.com/adamziel/blueprints/trunk/blueprints/translations/blueprint.json) | [Source](https://github.com/adamziel/blueprints/blob/trunk/blueprints/translations/blueprint.json) | [@adamziel](https://github.com/adamziel) | Installs and activates the latest WordPress Japanese translation pack from https://translate.wordpress.org/. |
| Install plugin from a gist | [Preview](https://playground.wordpress.net/?blueprint-url=https://raw.githubusercontent.com/adamziel/blueprints/trunk/blueprints/install-plugin-from-gist/blueprint.json) | [Source](https://github.com/adamziel/blueprints/blob/trunk/blueprints/install-plugin-from-gist/blueprint.json) | [@zieladam](https://github.com/zieladam) | Install and activate a WordPress plugin from a .php file stored in a gist. |
| Latest Gutenberg plugin | [Preview](https://playground.wordpress.net/?blueprint-url=https://raw.githubusercontent.com/adamziel/blueprints/trunk/blueprints/latest-gutenberg/blueprint.json) | [Source](https://github.com/adamziel/blueprints/blob/trunk/blueprints/latest-gutenberg/blueprint.json) | [@zieladam](https://github.com/zieladam) | A preview of the latest version of the Gutenberg plugin. |
| Theme Tester | [Preview](https://playground.wordpress.net/?blueprint-url=https://raw.githubusercontent.com/adamziel/blueprints/trunk/blueprints/theme-a11y-test/blueprint.json) | [Source](https://github.com/adamziel/blueprints/blob/trunk/blueprints/theme-a11y-test/blueprint.json) | [@bph](https://github.com/bph) | Blueprint example to add content and plugins to explore a theme |
| Use wp-cli command to add posts | [Preview](https://playground.wordpress.net/?blueprint-url=https://raw.githubusercontent.com/adamziel/blueprints/trunk/blueprints/posts-via-wp-cli/blueprint.json) | [Source](https://github.com/adamziel/blueprints/blob/trunk/blueprints/posts-via-wp-cli/blueprint.json) | [@bph](https://github.com/bph) | Blueprint example to add posts via a wp-cli command. |
| WooCommerce product feed | [Preview](https://playground.wordpress.net/?blueprint-url=https://raw.githubusercontent.com/adamziel/blueprints/trunk/blueprints/woocommerce-product-feed/blueprint.json) | [Source](https://github.com/adamziel/blueprints/blob/trunk/blueprints/woocommerce-product-feed/blueprint.json) | [@mujuonly](https://github.com/mujuonly) | Blueprint to create a WooCommerce product and export an XML/CSV product feed |

6 changes: 4 additions & 2 deletions reindex_postprocess.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,15 @@ def build_markdown_table():
with open('index.json', 'r') as f:
index = json.load(f)
blueprints_rows = [
['Title', 'Preview', 'Source']
['Title', 'Preview', 'Source', 'Author', 'Description', ]
]
for path, meta in index.items():
blueprints_rows.append([
meta.get('title', ''),
'[Preview](https://playground.wordpress.net/?blueprint-url=https://raw.githubusercontent.com/adamziel/blueprints/trunk/{0})'.format(path),
'[Source](https://github.com/adamziel/blueprints/blob/trunk/{0})'.format(path)
'[Source](https://github.com/adamziel/blueprints/blob/trunk/{0})'.format(path),
'[@{0}](https://github.com/{0})'.format(meta.get('author', '')) if meta.get('author', '') else '',
meta.get('description', ''),
])

widths = [max(map(len, col)) for col in zip(*blueprints_rows)]
Expand Down

0 comments on commit 91ac9f5

Please sign in to comment.