-
Notifications
You must be signed in to change notification settings - Fork 32
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
New example: Load a block-theme from a GH repo, activate it and configure it #68
Conversation
Test using WordPress PlaygroundThe changes in this pull request can previewed and tested using a WordPress Playground instance. WordPress Playground is an experimental project that creates a full WordPress instance entirely within the browser. Some things to be aware of
For more details about these limitations and more, check out the Limitations page in the WordPress Playground documentation. |
"resource": "url", | ||
"url": "https://github-proxy.com/proxy/?repo=richtabor/kanso&branch=main" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could we load this from the WordPress theme directory instead of GitHub?
"resource": "url", | |
"url": "https://github-proxy.com/proxy/?repo=richtabor/kanso&branch=main" | |
"resource": "wordpress.org/themes", | |
"slug": "kanso" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, my request makes no sense since your entire point was to showcase using GitHub. Cool! Merging. Thank you! Cross-referencing WordPress/wordpress-playground#1467 and WordPress/wordpress-playground#1708 so we can come back here and replace the github-proxy.com reference with direct checkout when we support that.
The automation should have rewritten the remaining URLs on merge, but it didn't. We'll need an issue to track it and a PR to correct it. I'll look into that. |
This is a blueprint example adapted from @richtabor Blog Theme's one that could be a fantastic reference for block theme authors to set up their own blueprints to showcase their block themes.
It includes several typical things block themers will want to implement in their blueprints, such as:
show_on_front
and assigning thepage_on_front
andpage_for_posts
importWxr
including imagesIt can be tested from: https://playground.wordpress.net/?blueprint-url=https://raw.githubusercontent.com/wordpress-juanmaguitar/blueprints/install-theme-directory-from-repo/blueprints/install-activate-setup-theme-from-gh-repo/blueprint.json
PS: I think there's an automation in place that will change any reference from
raw.githubusercontent.com/wordpress-juanmaguitar/blueprints
toraw.githubusercontent.com/WordPress/blueprints
on this PR mergecc: @adamziel