Skip to content

Commit

Permalink
Docs: Fix grammar.md manifest entry; (chore) update data docs (#10014)
Browse files Browse the repository at this point in the history
  • Loading branch information
mcsf authored Sep 18, 2018
1 parent e0e6668 commit c9d3669
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 1 deletion.
16 changes: 15 additions & 1 deletion docs/data/data-core-editor.md
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,8 @@ Whether the post can be saved.
### isEditedPostEmpty

Returns true if the edited post has content. A post has content if it has at
least one block or otherwise has a non-empty content property assigned.
least one saveable block or otherwise has a non-empty content property
assigned.

*Parameters*

Expand Down Expand Up @@ -989,6 +990,19 @@ default post format. Returns null if the format cannot be determined.

Suggested post format.

### getBlocksForSerialization

Returns a set of blocks which are to be used in consideration of the post's
generated save content.

*Parameters*

* state: Editor state.

*Returns*

Filtered set of blocks for save.

### getEditedPostContent

Returns the content of the post being edited, preferring raw string edit
Expand Down
6 changes: 6 additions & 0 deletions docs/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@
"markdown_source": "https://github.com/WordPress/gutenberg/master/docs/language.md",
"parent": null
},
{
"title": "The Gutenberg block grammar",
"slug": "grammar",
"markdown_source": "https://github.com/WordPress/gutenberg/master/docs/grammar.md",
"parent": "language"
},
{
"title": "Block API",
"slug": "block-api",
Expand Down
6 changes: 6 additions & 0 deletions docs/root-manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@
"markdown_source": "https:\/\/github.com\/WordPress\/gutenberg\/master\/docs\/language.md",
"parent": null
},
{
"title": "The Gutenberg block grammar",
"slug": "grammar",
"markdown_source": "https://github.com/WordPress/gutenberg/master/docs/grammar.md",
"parent": "language"
},
{
"title": "Block API",
"slug": "block-api",
Expand Down

0 comments on commit c9d3669

Please sign in to comment.