Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add WordPress Playground blueprint #1282

Merged
merged 3 commits into from
Oct 15, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions docs/blueprint.json
Original file line number Diff line number Diff line change
@@ -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"
}
]
}
12 changes: 12 additions & 0 deletions docs/demo-with-playground.md
Original file line number Diff line number Diff line change
@@ -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