From d58cdd9303c6fc21161b36d7e767ab74dceceb45 Mon Sep 17 00:00:00 2001 From: Miguel Fonseca Date: Tue, 18 Sep 2018 20:14:19 +0100 Subject: [PATCH] Docs: Fix grammar.md manifest entry; (chore) update data docs --- docs/data/data-core-editor.md | 16 +++++++++++++++- docs/manifest.json | 6 ++++++ docs/root-manifest.json | 6 ++++++ 3 files changed, 27 insertions(+), 1 deletion(-) diff --git a/docs/data/data-core-editor.md b/docs/data/data-core-editor.md index 7a3a4952e96a0b..295cbcde3f1460 100644 --- a/docs/data/data-core-editor.md +++ b/docs/data/data-core-editor.md @@ -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* @@ -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 diff --git a/docs/manifest.json b/docs/manifest.json index cb42e7fc622c3d..cd91061dc49479 100644 --- a/docs/manifest.json +++ b/docs/manifest.json @@ -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://raw.githubusercontent.com/WordPress/gutenberg/master/docs/grammar.md", + "parent": "language" + }, { "title": "Block API", "slug": "block-api", diff --git a/docs/root-manifest.json b/docs/root-manifest.json index eafa2380177263..c4584fa66ae8bc 100644 --- a/docs/root-manifest.json +++ b/docs/root-manifest.json @@ -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://raw.githubusercontent.com/WordPress/gutenberg/master/docs/grammar.md", + "parent": "language" + }, { "title": "Block API", "slug": "block-api",