Skip to content

Commit

Permalink
Reindex and reformat Blueprints
Browse files Browse the repository at this point in the history
  • Loading branch information
deployment_bot committed Oct 25, 2024
1 parent 63239d0 commit 83909f7
Show file tree
Hide file tree
Showing 3 changed files with 62 additions and 53 deletions.
2 changes: 1 addition & 1 deletion GALLERY.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Here's the list of all the community Blueprints submitted to this repository. Se
| Create Block Theme | Blueprint to install Create Block Theme and start editing right away | [@jonathanbossenger](https://github.com/jonathanbossenger) |[Open in Playground](https://playground.wordpress.net/?blueprint-url=https://raw.githubusercontent.com/wordpress/blueprints/trunk/blueprints/create-block-theme/blueprint.json)<br>• [View source](https://github.com/wordpress/blueprints/blob/trunk/blueprints/create-block-theme/blueprint.json)<br>• [Edit](https://playground.wordpress.net/builder/builder.html?blueprint-url=https://raw.githubusercontent.com/wordpress/blueprints/trunk/blueprints/create-block-theme/blueprint.json) |
| Custom Post Type: Books | Blueprint that added a custom post type to playground | [@bph](https://github.com/bph) |[Open in Playground](https://playground.wordpress.net/?blueprint-url=https://raw.githubusercontent.com/wordpress/blueprints/trunk/blueprints/custom-post/blueprint.json)<br>• [View source](https://github.com/wordpress/blueprints/blob/trunk/blueprints/custom-post/blueprint.json)<br>• [Edit](https://playground.wordpress.net/builder/builder.html?blueprint-url=https://raw.githubusercontent.com/wordpress/blueprints/trunk/blueprints/custom-post/blueprint.json) |
| Display Admin Notice | Blueprint to add a tiny mu-plugin and display an admin notice | [@bph](https://github.com/bph) |[Open in Playground](https://playground.wordpress.net/?blueprint-url=https://raw.githubusercontent.com/wordpress/blueprints/trunk/blueprints/admin-notice/blueprint.json)<br>• [View source](https://github.com/wordpress/blueprints/blob/trunk/blueprints/admin-notice/blueprint.json)<br>• [Edit](https://playground.wordpress.net/builder/builder.html?blueprint-url=https://raw.githubusercontent.com/wordpress/blueprints/trunk/blueprints/admin-notice/blueprint.json) |
| Feed Reader with the Friends Plugin | By using the Friends plugin and a CORS proxy, you can read feeds from the web in Playground, and even via ActivityPub. | [@akirk](https://github.com/akirk) |[Open in Playground](https://playground.wordpress.net/?blueprint-url=https://raw.githubusercontent.com/wordpress/blueprints/trunk/blueprints/friends-cors/blueprint.json)<br>• [View source](https://github.com/wordpress/blueprints/blob/trunk/blueprints/friends-cors/blueprint.json)<br>• [Edit](https://playground.wordpress.net/builder/builder.html?blueprint-url=https://raw.githubusercontent.com/wordpress/blueprints/trunk/blueprints/friends-cors/blueprint.json) |
| Feed Reader with the Friends Plugin | By using the Friends plugin and a CORS proxy, you can read feeds from the web in Playground, and even via ActivityPub | [@akirk](https://github.com/akirk) |[Open in Playground](https://playground.wordpress.net/?blueprint-url=https://raw.githubusercontent.com/wordpress/blueprints/trunk/blueprints/friends-cors/blueprint.json)<br>• [View source](https://github.com/wordpress/blueprints/blob/trunk/blueprints/friends-cors/blueprint.json)<br>• [Edit](https://playground.wordpress.net/builder/builder.html?blueprint-url=https://raw.githubusercontent.com/wordpress/blueprints/trunk/blueprints/friends-cors/blueprint.json) |
| Grid Variations Experiments enabled | Blueprint example to toggle on enable a feature from the Experiments page in Gutenberg plugin | [@bph](https://github.com/bph) |[Open in Playground](https://playground.wordpress.net/?blueprint-url=https://raw.githubusercontent.com/wordpress/blueprints/trunk/blueprints/grid-variations/blueprint.json)<br>• [View source](https://github.com/wordpress/blueprints/blob/trunk/blueprints/grid-variations/blueprint.json)<br>• [Edit](https://playground.wordpress.net/builder/builder.html?blueprint-url=https://raw.githubusercontent.com/wordpress/blueprints/trunk/blueprints/grid-variations/blueprint.json) |
| Install WordPress language packs | Installs and activates the latest WordPress Japanese translation pack from https://translate.wordpress.org/ – both for WordPress core and for the friends plugin. | [@adamziel](https://github.com/adamziel) |[Open in Playground](https://playground.wordpress.net/?blueprint-url=https://raw.githubusercontent.com/wordpress/blueprints/trunk/blueprints/translations/blueprint.json)<br>• [View source](https://github.com/wordpress/blueprints/blob/trunk/blueprints/translations/blueprint.json)<br>• [Edit](https://playground.wordpress.net/builder/builder.html?blueprint-url=https://raw.githubusercontent.com/wordpress/blueprints/trunk/blueprints/translations/blueprint.json) |
| Install plugin from a gist | Install and activate a WordPress plugin from a .php file stored in a gist. | [@zieladam](https://github.com/zieladam) |[Open in Playground](https://playground.wordpress.net/?blueprint-url=https://raw.githubusercontent.com/wordpress/blueprints/trunk/blueprints/install-plugin-from-gist/blueprint.json)<br>• [View source](https://github.com/wordpress/blueprints/blob/trunk/blueprints/install-plugin-from-gist/blueprint.json)<br>• [Edit](https://playground.wordpress.net/builder/builder.html?blueprint-url=https://raw.githubusercontent.com/wordpress/blueprints/trunk/blueprints/install-plugin-from-gist/blueprint.json) |
Expand Down
104 changes: 52 additions & 52 deletions blueprints/friends-cors/blueprint.json
Original file line number Diff line number Diff line change
@@ -1,54 +1,54 @@
{
"$schema": "https://playground.wordpress.net/blueprint-schema.json",
"meta": {
"title": "Feed Reader with the Friends Plugin",
"description": "By using the Friends plugin and a CORS proxy, you can read feeds from the web in Playground, and even via ActivityPub",
"author": "akirk",
"categories": ["rss", "social web"]
},
"landingPage": "/friends/?refresh&welcome",
"features": {
"networking": true
},
"steps": [
{
"step": "mkdir",
"path": "wordpress/wp-content/mu-plugins"
},
{
"step": "writeFile",
"path": "wordpress/wp-content/mu-plugins/addFilter-0.php",
"data": "<?php add_action( 'requests-requests.before_request', function( &$url ) {\n$url = 'https://playground.wordpress.net/cors-proxy.php?' . $url;\n} );"
},
{
"step": "setSiteOptions",
"options": {
"permalink_structure": "/%postname%/"
}
},
{
"step": "installPlugin",
"pluginData": {
"resource": "wordpress.org/plugins",
"slug": "friends"
},
"options": {
"activate": true
}
},
{
"step": "runPHP",
"code": "<?php require_once 'wordpress/wp-load.php';\nif ( class_exists('Friends\\Import')) {\nFriends\\Import::opml(\"<?xml version=\\\"1.0\\\" encoding=\\\"utf-8\\\"?><opml version=\\\"2.0\\\">\n<head>\n<title>Subscriptions</title>\n</head>\n<body>\n<outline text=\\\"Subscriptions\\\" title=\\\"Subscriptions\\\">\n<outline type=\\\"rss\\\" text=\\\"Alex Kirk\\\" title=\\\"Alex Kirk\\\" xmlUrl=\\\"https://alex.kirk.at/feed/\\\" htmlUrl=\\\"https://alex.kirk.at/feed/\\\" />\n<outline type=\\\"rss\\\" text=\\\"Adam Zieliński\\\" title=\\\"Adam Zieliński\\\" xmlUrl=\\\"https://adamadam.blog/feed/\\\" htmlUrl=\\\"https://adamadam.blog/feed/\\\" />\n</outline>\n</body>\n</opml>\");\n}"
},
{
"step": "installPlugin",
"pluginData": {
"resource": "wordpress.org/plugins",
"slug": "activitypub"
},
"options": {
"activate": true
}
}
]
"$schema": "https://playground.wordpress.net/blueprint-schema.json",
"meta": {
"title": "Feed Reader with the Friends Plugin",
"description": "By using the Friends plugin and a CORS proxy, you can read feeds from the web in Playground, and even via ActivityPub",
"author": "akirk",
"categories": ["rss", "social web"]
},
"landingPage": "/friends/?refresh&welcome",
"features": {
"networking": true
},
"steps": [
{
"step": "mkdir",
"path": "wordpress/wp-content/mu-plugins"
},
{
"step": "writeFile",
"path": "wordpress/wp-content/mu-plugins/addFilter-0.php",
"data": "<?php add_action( 'requests-requests.before_request', function( &$url ) {\n$url = 'https://playground.wordpress.net/cors-proxy.php?' . $url;\n} );"
},
{
"step": "setSiteOptions",
"options": {
"permalink_structure": "/%postname%/"
}
},
{
"step": "installPlugin",
"pluginData": {
"resource": "wordpress.org/plugins",
"slug": "friends"
},
"options": {
"activate": true
}
},
{
"step": "runPHP",
"code": "<?php require_once 'wordpress/wp-load.php';\nif ( class_exists('Friends\\Import')) {\nFriends\\Import::opml(\"<?xml version=\\\"1.0\\\" encoding=\\\"utf-8\\\"?><opml version=\\\"2.0\\\">\n<head>\n<title>Subscriptions</title>\n</head>\n<body>\n<outline text=\\\"Subscriptions\\\" title=\\\"Subscriptions\\\">\n<outline type=\\\"rss\\\" text=\\\"Alex Kirk\\\" title=\\\"Alex Kirk\\\" xmlUrl=\\\"https://alex.kirk.at/feed/\\\" htmlUrl=\\\"https://alex.kirk.at/feed/\\\" />\n<outline type=\\\"rss\\\" text=\\\"Adam Zieli\u0144ski\\\" title=\\\"Adam Zieli\u0144ski\\\" xmlUrl=\\\"https://adamadam.blog/feed/\\\" htmlUrl=\\\"https://adamadam.blog/feed/\\\" />\n</outline>\n</body>\n</opml>\");\n}"
},
{
"step": "installPlugin",
"pluginData": {
"resource": "wordpress.org/plugins",
"slug": "activitypub"
},
"options": {
"activate": true
}
}
]
}
9 changes: 9 additions & 0 deletions index.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,15 @@
"notices"
]
},
"blueprints/friends-cors/blueprint.json": {
"title": "Feed Reader with the Friends Plugin",
"description": "By using the Friends plugin and a CORS proxy, you can read feeds from the web in Playground, and even via ActivityPub",
"author": "akirk",
"categories": [
"rss",
"social web"
]
},
"blueprints/grid-variations/blueprint.json": {
"title": "Grid Variations Experiments enabled",
"author": "bph",
Expand Down

0 comments on commit 83909f7

Please sign in to comment.