Skip to content
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

Docs/Guides: Providing content for your demo #1747

Conversation

juanmaguitar
Copy link
Collaborator

@juanmaguitar juanmaguitar commented Sep 11, 2024

As both #1664 and #1663 require info about how to provide content for a demo in Playground I think it's best to create a separate guide with this topic that can be referenced from these guides

This PR belong to a set of three guides that are meant to be published together

@juanmaguitar juanmaguitar changed the title Docs/Guides: Providing content for your demo guide Docs/Guides: Providing content for your demo Sep 11, 2024
[<kbd> &nbsp; Run Blueprint &nbsp; </kbd>](https://playground.wordpress.net/builder/builder.html#{%22steps%22:[{%22step%22:%22installTheme%22,%22themeZipFile%22:{%22resource%22:%22wordpress.org/themes%22,%22slug%22:%22twentytwenty%22}},{%22step%22:%22installTheme%22,%22themeZipFile%22:{%22resource%22:%22wordpress.org/themes%22,%22slug%22:%22twentytwentyone%22},%22options%22:{%22activate%22:true}},{%22step%22:%22importThemeStarterContent%22,%22themeSlug%22:%22twentytwenty%22}]})

You can also publish the starter content of a theme when installing it with the [`installTheme` step](/blueprints/steps#installTheme) by setting to `true` its `importStarterContent` option.

Copy link
Collaborator

@bph bph Sep 11, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How would that look? Like this? It probably would warrant another examples

"step": "installTheme", "themeZipFile": { "resource": "wordpress.org/themes", "slug": "twentytwentyone" "importStarterContent": true },

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added an example using the importStarterContent option at 27782ea

Copy link
Collaborator

@bph bph left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Apart from the missing example,
LGTM

@juanmaguitar
Copy link
Collaborator Author

juanmaguitar commented Sep 11, 2024

Apart from the missing example, LGTM

@bph could you approve the PR if everything is OK with latest changes?
At least one approval from the reviewers is required to merge the PR

@bgrgicak bgrgicak merged commit 6f7d839 into WordPress:trunk Sep 12, 2024
5 checks passed
bgrgicak pushed a commit that referenced this pull request Sep 12, 2024
This PR addresses
#1663

This PR belong to a set of three guides that are meant to be published
together
- WordPress Playground for Theme Developers
#1732
- WordPress Playground for Plugin Developers
#1750
- Providing content for your demo
#1747
juanmaguitar added a commit that referenced this pull request Sep 12, 2024
This PR addresses
#1664

This PR belong to a set of three guides that are meant to be published
together
- WordPress Playground for Theme Developers
#1732
- WordPress Playground for Plugin Developers
#1750
- Providing content for your demo
#1747

_Note: There was an older version of this PR at
#1745 that was
closed_

---------

Co-authored-by: Birgit Pauli-Haack <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants