-
Notifications
You must be signed in to change notification settings - Fork 260
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
Remove the step "importThemeStarterContent" #1994
Comments
There are two files:
I can't figure out where to make the updates to remove the step from the documentation, though. |
And maybe it shouldn't be under steps at all but added to the InstallTheme step.. I see in
and further down
Should that be all that needs to be deleted? |
@bph It's nice to have both in case you need to do something more custom. For example, you can install a theme that doesn't have starter content, add it using a |
You would update the |
To answer your question about deleting steps. Check if the step is usedWe collect step usage stats in Google Analytics, so before we remove anything, we can check how frequently it is used. The Before we can remove it, we usually mark it as deprecated for a while before actually removing it. Deleting a stepTo delete a step you need to delete the step interface, in this case, it would be this code: wordpress-playground/packages/playground/blueprints/src/lib/steps/import-theme-starter-content.ts Lines 4 to 21 in f677792
You also need to delete any references to the interface by searching the Playground project for its name (i.e. Finally, you need to remove the step from the blueprint schema, in this case, it would be this code: wordpress-playground/packages/playground/blueprints/public/blueprint-schema.json Lines 556 to 583 in 07fb8ba
|
Thank you, @bgrgicak This PR #1521 was the only one I found about this, and it only mentions the
This was a misunderstanding, and I would love to update the documentation with a working example for the step variation on how to do this in a blueprint. The current version doesn't help here much. Or I don't understand it.
That's a great use case. How would this be accomplished via blueprint? |
I agree, some of our Blueprint examples are so minimal that they don't do anything on their own or even break the site. |
Here is a minimal example which adds a new homepage section. |
The documentation lists a step: "importThemeStarterContent"
Implementation issue shows, that it's an option on the InstallTheme step.
It's already included in the installTheme step. documentation
Example quoted from the PR:
The text was updated successfully, but these errors were encountered: