diff --git a/GALLERY.md b/GALLERY.md index dc7ac79..8cbd514 100644 --- a/GALLERY.md +++ b/GALLERY.md @@ -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 | diff --git a/reindex_postprocess.py b/reindex_postprocess.py index 840ba4c..c43befd 100644 --- a/reindex_postprocess.py +++ b/reindex_postprocess.py @@ -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)]