-
Notifications
You must be signed in to change notification settings - Fork 2k
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
DevDocs: add a Gutenberg blocks section #26065
Merged
Merged
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
5e4d8e4
Build: new feature flag for gutenberg devdocs
mmtr 578ac06
Devdocs: new section for Gutenberg blocks
mmtr 2ff06d9
Devdocs: tests covering the new section for Gutenberg blocks
mmtr 9bd2254
Applying guidelines to tests covering the Gutenberg blocks in DevDocs
mmtr 6ae407d
renaming gutenberg to gutenberg-blocks inside the devdocs
mmtr 86ae127
Adding documentation about Gutenberg documentation
mmtr 0ffc636
Removing Gutenberg blocks documentation as it cannot be controlled with
mmtr 4b3ffff
removing unit tests that were not checking any behavior
mmtr 29fbff2
reverting order of the feature flags
mmtr 4d858f0
adding @format so prettier handles whitespace formatting
mmtr File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
/** @format */ | ||
|
||
/** | ||
* External dependencies | ||
*/ | ||
import React from 'react'; | ||
import classnames from 'classnames'; | ||
|
||
/** | ||
* Internal dependencies | ||
*/ | ||
import DocumentHead from 'components/data/document-head'; | ||
import Main from 'components/main'; | ||
import ReadmeViewer from 'components/readme-viewer'; | ||
|
||
export default class GutenbergBlocks extends React.Component { | ||
render() { | ||
const className = classnames( 'devdocs', 'devdocs__gutenberg-blocks' ); | ||
|
||
return ( | ||
<Main className={ className }> | ||
<DocumentHead title="Gutenberg Blocks" /> | ||
<ReadmeViewer readmeFilePath="/client/devdocs/gutenberg-blocks/README.md" /> | ||
</Main> | ||
); | ||
} | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
Gutenberg Blocks | ||
==== | ||
|
||
[Gutenberg](https://wordpress.org/gutenberg/) is the new publishing experience for WordPress. | ||
|
||
The Gutenberg editor uses | ||
[blocks](https://github.com/WordPress/gutenberg/blob/master/blocks/README.md) to create all types | ||
of content. A Gutenberg block is the abstract term used to describe units of markup that, | ||
composed together, form the content or layout of a webpage. | ||
|
||
Calypso provides all the | ||
[built-in Gutenberg blocks](https://github.com/WordPress/gutenberg/tree/master/core-blocks), so | ||
they can be used in any React component. |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
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.
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.
If we add
/** @format */
above this line, prettier, will handle whitespace formatting for us.