From d2db3cda9139509e33bbed5661dbfd6e6bc83513 Mon Sep 17 00:00:00 2001 From: Erika Gili Date: Fri, 11 Oct 2024 13:30:51 +0200 Subject: [PATCH 1/3] Add WordPress Playground blueprint --- docs/blueprint.json | 29 +++++++++++++++++++++++++++++ docs/demo-with-playground.md | 12 ++++++++++++ 2 files changed, 41 insertions(+) create mode 100644 docs/blueprint.json create mode 100644 docs/demo-with-playground.md diff --git a/docs/blueprint.json b/docs/blueprint.json new file mode 100644 index 000000000..8df4203de --- /dev/null +++ b/docs/blueprint.json @@ -0,0 +1,29 @@ +{ + "$schema": "https://playground.wordpress.net/blueprint-schema.json", + "phpExtensionBundles": [ + "kitchen-sink" + ], + "features": { + "networking": true + }, + "steps": [ + { + "step": "installPlugin", + "pluginData": { + "resource": "url", + "url": "https://github-proxy.com/proxy/?repo=10up/distributor&branch=stable" + } + }, + { + "step": "enableMultisite" + }, + { + "step": "wp-cli", + "command": "wp plugin activate distributor-stable --network" + }, + { + "step": "wp-cli", + "command": "wp site create --slug=test" + } + ] +} diff --git a/docs/demo-with-playground.md b/docs/demo-with-playground.md new file mode 100644 index 000000000..9df96fa5a --- /dev/null +++ b/docs/demo-with-playground.md @@ -0,0 +1,12 @@ +Use WordPress Playground to quickly spin up a project to demonstrate the plugin's features. + +## Example + +This is an example URL you can use to run the project: `https://playground.wordpress.net/?blueprint-url=https://raw.githubusercontent.com/10up/distributor/refs/heads/develop/docs/blueprint.json` + +## Features + +The project has the following features: +- it is a multisite installation +- the Distributor plugin is installed and activated network-wide +- the network contains two websites From 89ecf1799609d18f63cdf39ccd86c9a61fde70d4 Mon Sep 17 00:00:00 2001 From: Erika Gili Date: Mon, 14 Oct 2024 12:20:54 +0200 Subject: [PATCH 2/3] Add WordPress Playground badge --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 403f26f2b..83670847e 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ ![Distributor](https://github.com/10up/distributor/blob/develop/assets/img/banner-1544x500.png) -[![Support Level](https://img.shields.io/badge/support-active-green.svg)](#support-level) [![Release Version](https://img.shields.io/github/release/10up/distributor.svg)](https://github.com/10up/distributor/releases/latest) ![WordPress tested up to version](https://img.shields.io/badge/WordPress-v6.6%20tested-success.svg) [![License](https://img.shields.io/github/license/10up/distributor.svg)](https://github.com/10up/distributor/blob/develop/LICENSE.md) [![Dependency Review](https://github.com/10up/distributor/actions/workflows/dependency-review.yml/badge.svg)](https://github.com/10up/distributor/actions/workflows/dependency-review.yml) +[![Support Level](https://img.shields.io/badge/support-active-green.svg)](#support-level) [![Release Version](https://img.shields.io/github/release/10up/distributor.svg)](https://github.com/10up/distributor/releases/latest) ![WordPress tested up to version](https://img.shields.io/badge/WordPress-v6.6%20tested-success.svg) [![License](https://img.shields.io/github/license/10up/distributor.svg)](https://github.com/10up/distributor/blob/develop/LICENSE.md) [![Dependency Review](https://github.com/10up/distributor/actions/workflows/dependency-review.yml/badge.svg)](https://github.com/10up/distributor/actions/workflows/dependency-review.yml) [![WordPress Playground Demo](https://img.shields.io/badge/Playground_Demo-8A2BE2?logo=wordpress&logoColor=FFFFFF&labelColor=3858E9&color=3858E9)](https://playground.wordpress.net/?blueprint-url=https://raw.githubusercontent.com/10up/distributor/refs/heads/develop/docs/blueprint.json) [![E2E Tests](https://github.com/10up/distributor/actions/workflows/cypress.yml/badge.svg)](https://github.com/10up/distributor/actions/workflows/cypress.yml) [![PHPUnit Tests](https://github.com/10up/distributor/actions/workflows/test.yml/badge.svg)](https://github.com/10up/distributor/actions/workflows/test.yml) [![Linting](https://github.com/10up/distributor/actions/workflows/lint.yml/badge.svg)](https://github.com/10up/distributor/actions/workflows/lint.yml) [![Code scanning](https://github.com/10up/distributor/actions/workflows/codeql-analysis.yml/badge.svg)](https://github.com/10up/distributor/actions/workflows/codeql-analysis.yml) > Distributor is a WordPress plugin that makes it easy to distribute and reuse content across your websites — whether in a single multisite or across the web. From 8393aaed371a403e4faba41cf344a4824f1c8988 Mon Sep 17 00:00:00 2001 From: Erika Gili Date: Mon, 14 Oct 2024 12:21:24 +0200 Subject: [PATCH 3/3] Add blueprint's landing page --- docs/blueprint.json | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/blueprint.json b/docs/blueprint.json index 8df4203de..22474cfd1 100644 --- a/docs/blueprint.json +++ b/docs/blueprint.json @@ -6,6 +6,7 @@ "features": { "networking": true }, + "landingPage": "/wp-admin/admin.php?page=pull", "steps": [ { "step": "installPlugin",