Skip to content

Commit

Permalink
Clean up the repo structure
Browse files Browse the repository at this point in the history
  • Loading branch information
adamziel committed May 1, 2024
1 parent ac359d1 commit 1c311a5
Show file tree
Hide file tree
Showing 9 changed files with 14 additions and 13 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ This is an attempt to create a buildless Documentation Contributor Workflow that

Click here to try it:

[<kbd> <br>Edit the Documentation<br> </kbd>](https://playground.wordpress.net/?gh-ensure-auth=yes&ghexport-repo-url=https%3A%2F%2Fgithub.51.al%2Fadamziel%2Fplayground-docs-workflow&ghexport-content-type=custom-paths&ghexport-path=plugins/wp-docs-plugin&ghexport-path=plugins/export-static-site&ghexport-path=themes/playground-docs&ghexport-path=html-pages&ghexport-path=uploads&ghexport-path=blueprint-browser.json&ghexport-path=blueprint-serve.json&ghexport-path=blueprint-static-site.json&ghexport-commit-message=Documentation+update&ghexport-playground-root=/wordpress/wp-content&ghexport-repo-root=/wp-content&blueprint-url=https%3A%2F%2Fgithub.51.al%2Fadamziel%2Fplayground-docs-workflow%2Ftrunk%2Fwp-content%blueprint-browser.json&ghexport-pr-action=create&ghexport-allow-include-zip=no).
[<kbd> <br>Edit the Documentation<br> </kbd>](https://playground.wordpress.net/?gh-ensure-auth=yes&ghexport-repo-url=https%3A%2F%2Fgithub.51.al%2Fadamziel%2Fplayground-docs-workflow&ghexport-content-type=custom-paths&ghexport-path=plugins/wp-docs-plugin&ghexport-path=plugins/export-static-site&ghexport-path=themes/playground-docs&ghexport-path=html-pages&ghexport-path=uploads&ghexport-commit-message=Documentation+update&ghexport-playground-root=/wordpress/wp-content&ghexport-repo-root=/wp-content&blueprint-url=https%3A%2F%2Fgithub.51.al%2Fadamziel%2Fplayground-docs-workflow%2Ftrunk%2Fwp-content%2Fblueprint-browser.json&ghexport-pr-action=create&ghexport-allow-include-zip=no).

It should load the doc pages from the `html-pages` directory and the media attachments from `uploads`. This video demonstrates it:

Expand Down
4 changes: 2 additions & 2 deletions wp-content/blueprint-browser.json → blueprint-browser.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
"$schema": "https://playground.wordpress.net/blueprint-schema.json",
"landingPage": "/wp-admin/edit.php?post_type=page",
"preferredVersions": {
"wp": "latest",
"php": "7.4"
"wp": "6.5",
"php": "8.0"
},
"login": true,
"steps": [
Expand Down
2 changes: 1 addition & 1 deletion wp-content/blueprint-serve.json → blueprint-serve.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"$schema": "https://playground.wordpress.net/blueprint-schema.json",
"landingPage": "/wp-admin/edit.php?post_type=page",
"preferredVersions": {
"wp": "latest",
"wp": "6.5",
"php": "8.0"
},
"login": true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"$schema": "https://playground.wordpress.net/blueprint-schema.json",
"landingPage": "/wp-admin/edit.php?post_type=page",
"preferredVersions": {
"wp": "latest",
"wp": "6.5",
"php": "8.0"
},
"login": true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ <h2 class="wp-block-heading">Save your site</h2>
<!-- /wp:paragraph -->

<!-- wp:image {"id":23,"sizeSlug":"full","linkDestination":"none"} -->
<figure class="wp-block-image size-full"><img src="https://playground.internal/wp-content/uploads/2024/04/23_export-button.png" alt="" class="wp-image-23" /></figure>
<figure class="wp-block-image size-full"><img src="https://playground.internal/wp-content/uploads/2024/04/23_export-button.png" alt="" class="wp-image-23"/></figure>
<!-- /wp:image -->

<!-- wp:paragraph -->
Expand All @@ -117,7 +117,7 @@ <h2 class="wp-block-heading">Restore a saved site</h2>
<!-- /wp:paragraph -->

<!-- wp:image {"id":22,"sizeSlug":"full","linkDestination":"none"} -->
<figure class="wp-block-image size-full"><img src="https://playground.internal/wp-content/uploads/2024/04/22_import-button.png" alt="" class="wp-image-22" /></figure>
<figure class="wp-block-image size-full"><img src="https://playground.internal/wp-content/uploads/2024/04/22_import-button.png" alt="" class="wp-image-22"/></figure>
<!-- /wp:image -->

<!-- wp:heading -->
Expand All @@ -129,7 +129,7 @@ <h2 class="wp-block-heading">Use a specific WordPress or PHP version</h2>
<!-- /wp:paragraph -->

<!-- wp:image {"id":21,"sizeSlug":"full","linkDestination":"none"} -->
<figure class="wp-block-image size-full"><img src="https://playground.internal/wp-content/uploads/2024/04/21_wp-version-switcher.png" alt="" class="wp-image-21" /></figure>
<figure class="wp-block-image size-full"><img src="https://playground.internal/wp-content/uploads/2024/04/21_wp-version-switcher.png" alt="" class="wp-image-21"/></figure>
<!-- /wp:image -->

<!-- wp:quote -->
Expand Down
2 changes: 1 addition & 1 deletion wp-content/html-pages/1_developer-apis/1_query-api.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ <h1>Query API</h1>
<!-- /wp:paragraph -->

<!-- wp:code -->
<pre class="wp-block-code"><code>https:&#47;&#47;playground.wordpress.net/?theme=pendant</code></pre>
<pre class="wp-block-code"><code>https:&#047;&#047;playground.wordpress.net/?theme=pendant</code></pre>
<!-- /wp:code -->

<!-- wp:paragraph -->
Expand Down
1 change: 1 addition & 0 deletions wp-content/html-pages/1_developer-apis/index.html
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
<h1>Developer APIs</h1>

Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ <h2 class="wp-block-heading">Asyncify crashes</h2>
<!-- /wp:paragraph -->

<!-- wp:image -->
<figure class="wp-block-image"><img src="../../static/img/asyncify-error.png" alt="A screenshot of an asyncify error in the terminal"/></figure>
<figure class="wp-block-image"><img src="../../static/img/asyncify-error.png" alt="A screenshot of an asyncify error in the terminal" /></figure>
<!-- /wp:image -->

<!-- wp:paragraph -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@ <h1>WebAssembly PHP</h1>
<!-- /wp:paragraph -->

<!-- wp:image {"id":36,"sizeSlug":"full","linkDestination":"none"} -->
<figure class="wp-block-image size-full"><img src="https://playground.internal/wp-content/uploads/2024/04/36_c-programs-general-dc8c885b6c55e554f0c504f32e49ad8d.png" alt="" class="wp-image-36"/></figure>
<figure class="wp-block-image size-full"><img src="https://playground.internal/wp-content/uploads/2024/04/36_c-programs-general-dc8c885b6c55e554f0c504f32e49ad8d.png" alt="" class="wp-image-36" /></figure>
<!-- /wp:image -->

<!-- wp:paragraph -->
<p>Building PHP to WebAssembly is very similar to building vanilla PHP. The wasm build required <a href="https://github.com/WordPress/wordpress-playground/blob/0d451c33936a8db5b7a158fa8aad288c19370a7d/packages/php-wasm/compile/build-assets/php7.1.patch#L8-L9">adjusting a function signature here</a>, <a href="https://github.com/WordPress/wordpress-playground/blob/0d451c33936a8db5b7a158fa8aad288c19370a7d/packages/php-wasm/compile/Dockerfile#L495">forcing a config variable there</a>, and applying <a href="https://github.com/WordPress/wordpress-playground/tree/0d451c33936a8db5b7a158fa8aad288c19370a7d/packages/php-wasm/compile/build-assets">a few small patches</a>, but there's relatively few adjustments involved.</p>
<!-- /wp:paragraph -->

<!-- wp:image {"id":37,"sizeSlug":"full","linkDestination":"none"} -->
<figure class="wp-block-image size-full"><img src="https://playground.internal/wp-content/uploads/2024/04/37_c-programs-php-4a55d44329eb4e6403983664c6492f5b.png" alt="" class="wp-image-37"/></figure>
<figure class="wp-block-image size-full"><img src="https://playground.internal/wp-content/uploads/2024/04/37_c-programs-php-4a55d44329eb4e6403983664c6492f5b.png" alt="" class="wp-image-37" /></figure>
<!-- /wp:image -->

<!-- wp:paragraph -->
Expand All @@ -25,7 +25,7 @@ <h1>WebAssembly PHP</h1>
<!-- /wp:paragraph -->

<!-- wp:image {"id":38,"sizeSlug":"full","linkDestination":"none"} -->
<figure class="wp-block-image size-full"><img src="https://playground.internal/wp-content/uploads/2024/04/38_c-programs-php-versions-d204a7325079ab708fd605a6a1d2681b.png" alt="" class="wp-image-38"/></figure>
<figure class="wp-block-image size-full"><img src="https://playground.internal/wp-content/uploads/2024/04/38_c-programs-php-versions-d204a7325079ab708fd605a6a1d2681b.png" alt="" class="wp-image-38" /></figure>
<!-- /wp:image -->

<!-- wp:heading {"level":3} -->
Expand Down

0 comments on commit 1c311a5

Please sign in to comment.