[Docs] Document Symfony without WordPress in Blueprint examples#3763
Merged
Conversation
674d89e to
1b23306
Compare
fd79b3b to
63d6aac
Compare
Contributor
There was a problem hiding this comment.
Pull request overview
Note
Copilot was unable to run its full agentic suite in this review.
Adds documentation and component support for running Blueprints from a remote Blueprint URL (highlighted via a Symfony “without WordPress” example), and refreshes the Symfony ZIP cache-busting key used in the PHP frameworks guide.
Changes:
- Extend
BlueprintRunButton/BlueprintExampleto accept and render ablueprintUrlin addition to embedded Blueprint JSON. - Update the Blueprints examples docs to include a Symfony (WP-less) example that references the canonical remote Blueprint.
- Refresh the Symfony ZIP URL cache key in the PHP frameworks guide.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| packages/docs/site/src/components/Blueprints/BlueprintRunButton.tsx | Adds support for launching Playground with a remote blueprintUrl query parameter. |
| packages/docs/site/src/components/Blueprints/BlueprintExample.mdx | Renders either Blueprint JSON or a remote URL, and passes blueprintUrl through to the run button. |
| packages/docs/site/docs/main/guides/php-frameworks.md | Updates Symfony ZIP URL version string to bust cache for rebuilt artifact. |
| packages/docs/site/docs/blueprints/08-examples.md | Adds a Symfony “Run without WordPress” example using a remote Blueprint URL. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
+24
to
+28
| : `https://playground.wordpress.net/?mode=seamless#${btoa( | ||
| typeof blueprint === 'string' | ||
| ? blueprint | ||
| : JSON.stringify(blueprint) | ||
| )}`; |
| import React from 'react'; | ||
|
|
||
| export function BlueprintRunButton({ blueprint }) { | ||
| export function BlueprintRunButton({ blueprint, blueprintUrl }) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What it does
Adds a Symfony example to the Blueprint examples page showing
preferredVersions.wp: falseand a PHP-only Symfony app loaded from the Blueprints gallery.The Symfony app files and Blueprint JSON no longer live in this repository. The example points at the canonical Blueprint in
WordPress/blueprints, where the source/rebuild instructions were added in WordPress/blueprints#208.Implementation
BlueprintExample/BlueprintRunButtonhow to render a remoteblueprintUrl.wp-php-toolkit/htmlComposer package.trunk, which already includes the newer/guides/php-frameworkspage from [Docs] Document Symfony apps in Playground without WordPress #3766.Testing
docs-site:buildpassed and printed the existing Docusaurus broken-anchor warnings for unrelated localized docs pages.