Skip to content

Commit

Permalink
Use git:directory resource to setup the Gutenberg handbook editor
Browse files Browse the repository at this point in the history
Replaces the clunky "Zip, unzip, move files" workflow with a direct git clone built on top of WordPress/wordpress-playground#1858. It's so much nicer!
  • Loading branch information
adamziel authored Oct 8, 2024
1 parent 9335461 commit 8bdfee3
Showing 1 changed file with 17 additions and 42 deletions.
59 changes: 17 additions & 42 deletions src/blueprint-web-browser-gutenberg-handbook.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,55 +2,30 @@
"$schema": "https://playground.wordpress.net/blueprint-schema.json",
"login": true,
"landingPage": "/wp-admin/?markdown-file-path=docs/contributors/accessibility-testing.md",
"constants": {
"STATIC_FILES_ROOT": "/wordpress/wp-content/static-content"
},
"steps": [
{
"step": "unzip",
"extractToPath": "/tmp",
"zipFile": {
"resource": "url",
"url": "https://github-proxy.com/proxy/?repo=adamziel/playground-content-converters&branch=explore-markdown-editor-setup&directory=src",
"caption": "Downloading Markdown editing plugin"
"step": "writeFiles",
"writeToPath": "/wordpress/wp-content/plugins",
"filesTree": {
"resource": "git:directory",
"url": "https://github.com/adamziel/playground-content-converters.git",
"ref": "trunk",
"path": "src"
}
},
{
"step": "mkdir",
"path": "/wordpress/wp-content/static-content"
},
{
"step": "unzip",
"extractToPath": "/wordpress/wp-content/static-content",
"zipFile": {
"resource": "url",
"url": "https://github-proxy.com/proxy/?repo=wordpress/gutenberg&directory=docs",
"caption": "Downloading Gutenberg handbook (6MB)"
"step": "writeFiles",
"writeToPath": "/wordpress/wp-content/static-content",
"filesTree": {
"resource": "git:directory",
"url": "https://github.com/wordpress/gutenberg.git",
"ref": "trunk",
"path": "docs"
}
},
{
"step": "defineWpConfigConsts",
"consts": {
"STATIC_FILES_ROOT": "/wordpress/wp-content/static-content"
}
},
{
"step": "mv",
"fromPath": "/tmp/src/convert-markdown-to-blocks-in-js",
"toPath": "/wordpress/wp-content/plugins/convert-markdown-to-blocks-in-js"
},
{
"step": "mv",
"fromPath": "/tmp/src/import-static-files",
"toPath": "/wordpress/wp-content/plugins/import-static-files"
},
{
"step": "mv",
"fromPath": "/tmp/src/store-markdown-as-post-meta",
"toPath": "/wordpress/wp-content/plugins/store-markdown-as-post-meta"
},
{
"step": "mv",
"fromPath": "/tmp/src/save-pages-as-static-files",
"toPath": "/wordpress/wp-content/plugins/save-pages-as-static-files"
},
{
"step": "activatePlugin",
"pluginPath": "import-static-files/import-static-files.php"
Expand Down

0 comments on commit 8bdfee3

Please sign in to comment.