Skip to content

Commit

Permalink
Docs: Remove Block Grammar doc and all corresponding internal links. (W…
Browse files Browse the repository at this point in the history
…ordPress#51106)

* Remove grammar doc and all internal links.
* Remove block grammar generator.
  • Loading branch information
ndiego authored and sethrubenstein committed Jul 13, 2023
1 parent 5d69b95 commit 2e85e29
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 135 deletions.
121 changes: 0 additions & 121 deletions bin/generate-public-grammar.js

This file was deleted.

5 changes: 0 additions & 5 deletions docs/contributors/code/grammar.md

This file was deleted.

6 changes: 0 additions & 6 deletions docs/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2171,12 +2171,6 @@
"markdown_source": "../docs/contributors/code/e2e/overusing-snapshots.md",
"parent": "e2e"
},
{
"title": "Block Grammar",
"slug": "grammar",
"markdown_source": "../docs/contributors/code/grammar.md",
"parent": "code"
},
{
"title": "Scripts",
"slug": "scripts",
Expand Down
1 change: 0 additions & 1 deletion docs/toc.json
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,6 @@
}
]
},
{ "docs/contributors/code/grammar.md": [] },
{ "docs/contributors/code/scripts.md": [] },
{ "docs/contributors/code/managing-packages.md": [] },
{
Expand Down
2 changes: 1 addition & 1 deletion packages/block-serialization-default-parser/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Block Serialization Default Parser

This library contains the default block serialization parser implementations for WordPress documents. It provides native PHP and JavaScript parsers that implement the [specification](https://github.com/WordPress/gutenberg/tree/HEAD/docs/contributors/code/grammar.md) from [`@wordpress/block-serialization-spec-parser`](https://github.com/WordPress/gutenberg/tree/HEAD/packages/block-serialization-spec-parser/README.md) and which normally operates on the document stored in `post_content`.
This library contains the default block serialization parser implementations for WordPress documents. It provides native PHP and JavaScript parsers that implement the specification from [`@wordpress/block-serialization-spec-parser`](https://github.com/WordPress/gutenberg/tree/HEAD/packages/block-serialization-spec-parser/README.md) and which normally operates on the document stored in `post_content`.

## Installation

Expand Down
2 changes: 1 addition & 1 deletion packages/block-serialization-spec-parser/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Block Serialization Spec Parser

This library contains the grammar file (`grammar.pegjs`) for WordPress posts which is a block serialization [_specification_](https://github.com/WordPress/gutenberg/tree/HEAD/docs/contributors/code/grammar.md) which is used to generate the actual _parser_ which is also bundled in this package.
This library contains the grammar file (`grammar.pegjs`) for WordPress posts which is a block serialization _specification_ which is used to generate the actual _parser_ which is also bundled in this package.

PEG parser generators are available in many languages, though different libraries may require some translation of this grammar into their syntax. For more information see:

Expand Down

0 comments on commit 2e85e29

Please sign in to comment.