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: Add a tutorial on how to create a block-based theme #23732

Merged
merged 36 commits into from
Jul 15, 2020
Merged

Docs: Add a tutorial on how to create a block-based theme #23732

merged 36 commits into from
Jul 15, 2020

Conversation

carolinan
Copy link
Contributor

@carolinan carolinan commented Jul 7, 2020

Description

Adds a tutorial on how to create a block-based theme.
Closes #23698

-Image links will need to be updated.

Copy link
Member

@gziolo gziolo left a comment

Choose a reason for hiding this comment

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

Thank you for starting this PR 👍

Can we host all images on wordpress.org? Git isn’t the best place to store media because it quickly increases the size of repository for all contributors. It keeps all copies that were ever included in its history.

@carolinan
Copy link
Contributor Author

I am not sure how :) Do we open a meta ticket once the content has been reviewed?

Fixed a typo.
@kjellr kjellr self-requested a review July 7, 2020 11:40
@gziolo
Copy link
Member

gziolo commented Jul 7, 2020

I am not sure how :) Do we open a meta ticket once the content has been reviewed?

Good question. I never did that, but I believe @mapk should know how the process looks like.

Copy link
Contributor

@kjellr kjellr left a comment

Choose a reason for hiding this comment

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

This is looking great! Thanks for writing this out, @carolinan! I've uploaded the images to wordpress.org/gutenberg/, which is where we've hosted other documentation images in the past:

https://wordpress.org/gutenberg/files/2020/07/block-based-themes-template-menu.png
https://wordpress.org/gutenberg/files/2020/07/block-based-themes-save.png
https://wordpress.org/gutenberg/files/2020/07/block-based-themes-page-menu.png
https://wordpress.org/gutenberg/files/2020/07/block-based-themes-page-menu.png
https://wordpress.org/gutenberg/files/2020/07/block-based-themes-editor-template-part.png
https://wordpress.org/gutenberg/files/2020/07/block-based-themes-appearance-template-parts.png

So feel free to swap those out.

You'll need to also run the documentation scripts since this adds new pages — I can't find the documentation for those (oddly enough 😂), but maybe someone else can point you in the right direction.

@gziolo
Copy link
Member

gziolo commented Jul 7, 2020

You'll need to also run the documentation scripts since this adds new pages — I can't find the documentation for those (oddly enough 😂), but maybe someone else can point you in the right direction.

It's here:
https://github.com/WordPress/gutenberg/blob/master/docs/contributors/document.md#create-a-new-document

carolinan and others added 3 commits July 7, 2020 17:38
Co-authored-by: Kjell Reigstad <kjell@kjellr.com>
keeping branch up to date
Deleted images and replaced the image links.
Fixed typos.
Renamed the adding-blocks file to include the tutorial topic.
Updated toc.json and ran docs:build.
@carolinan
Copy link
Contributor Author

Got feedback that it is confusing how to add the post loop

@kjellr
Copy link
Contributor

kjellr commented Jul 13, 2020

Got feedback that it is confusing how to add the post loop

Maybe a screenshot would help there?

Copy link
Member

@mkaz mkaz left a comment

Choose a reason for hiding this comment

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

Looks good, a link fix and a minor punctuation tweak.

carolinan and others added 2 commits July 14, 2020 11:12
…mes/README.md

Co-authored-by: Marcus Kazmierczak <marcus@mkaz.com>
…mes/README.md

Co-authored-by: Marcus Kazmierczak <marcus@mkaz.com>
@kjellr
Copy link
Contributor

kjellr commented Jul 15, 2020

This is looking great, thank you @carolinan! I'll merge this and we can continue iterating in new PRs as needed. 🙌

@kjellr kjellr merged commit 7aacd09 into WordPress:master Jul 15, 2020
@github-actions github-actions bot added this to the Gutenberg 8.6 milestone Jul 15, 2020
@kjellr kjellr added the [Feature] Themes Questions or issues with incorporating or styling blocks in a theme. label Jul 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Themes Questions or issues with incorporating or styling blocks in a theme. [Type] Developer Documentation Documentation for developers
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Documentation: Add a tutorial on how to create a block-based theme
4 participants