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 duplicate block attr slug #24198

Closed
Closed
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
Original file line number Diff line number Diff line change
Expand Up @@ -156,4 +156,4 @@ For more info, see the build section of the [Getting Started with JavaScript tut

Hopefully, at this point, you have your plugin created and activated. We have the package.json with the `@wordpress/scripts` dependency, that defines the build and start scripts. The basic block is in place and can be added to the editor.

Next Section: [Anatomy of a Block](/docs/designers-developers/developers/tutorials/create-block/block-anatomy.md)
Next Section: [Anatomy of a Block](/docs/designers-developers/developers/tutorials/create-block/create-block-2-block-anatomy.md)
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,4 @@ __( 'Gutenpride', 'create_block' );

This is an internationalization wrapper that allows for the string "Gutenpride" to be translated. The second parameter, "create_block" is called the text domain and gives context for where the string is from. The JavaScript internationalization, often abbreviated i18n, matches the core WordPress internationalization process. See the [I18n for WordPress documentation](https://codex.wordpress.org/I18n_for_WordPress_Developers) for more details.

Next Section: [Block Attributes](/docs/designers-developers/developers/tutorials/create-block/block-attributes.md)
Next Section: [Block Attributes](/docs/designers-developers/developers/tutorials/create-block/create-block-3-block-attributes.md)
Original file line number Diff line number Diff line change
Expand Up @@ -71,4 +71,4 @@ export default function Save( { attributes, className } ) {

Rebuild the block using `npm run build`, reload the editor and add the block. Type a message in the editor, save, and view it in the post.

Next Section: [Code Implementation](/docs/designers-developers/developers/tutorials/create-block/block-code.md)
Next Section: [Code Implementation](/docs/designers-developers/developers/tutorials/create-block/create-block-4-block-code.md)
Original file line number Diff line number Diff line change
Expand Up @@ -64,4 +64,4 @@ Update **gutenpride.php** to enqueue from generated file location:
$editor_css = "build/index.css";
```

Next Section: [Authoring Experience](/docs/designers-developers/developers/tutorials/create-block/author-experience.md)
Next Section: [Authoring Experience](/docs/designers-developers/developers/tutorials/create-block/create-block-5-author-experience.md)
Original file line number Diff line number Diff line change
Expand Up @@ -138,4 +138,4 @@ export default function Edit( { attributes, className, setAttributes } ) {
}
```

Next Section: [Finishing Touches](/docs/designers-developers/developers/tutorials/create-block/finishing.md)
Next Section: [Finishing Touches](/docs/designers-developers/developers/tutorials/create-block/create-block-6-finishing.md)
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ After activated, go to the block editor and use the inserter to search and add y

The create a block tutorials breaks down to the following sections.

1. [WordPress Plugin](/docs/designers-developers/developers/tutorials/create-block/wp-plugin.md)
2. [Anatomy of a Gutenberg Block ](/docs/designers-developers/developers/tutorials/create-block/block-anatomy.md)
3. [Block Attributes](/docs/designers-developers/developers/tutorials/create-block/block-attributes.md)
4. [Code Implementation](/docs/designers-developers/developers/tutorials/create-block/block-code.md)
5. [Authoring Experience](/docs/designers-developers/developers/tutorials/create-block/author-experience.md)
6. [Finishing Touches](/docs/designers-developers/developers/tutorials/create-block/finishing.md)
1. [WordPress Plugin](/docs/designers-developers/developers/tutorials/create-block/create-block-1-wp-plugin.md)
2. [Anatomy of a Gutenberg Block ](/docs/designers-developers/developers/tutorials/create-block/create-block-2-block-anatomy.md)
3. [Block Attributes](/docs/designers-developers/developers/tutorials/create-block/create-block-3-block-attributes.md)
4. [Code Implementation](/docs/designers-developers/developers/tutorials/create-block/create-block-4-block-code.md)
5. [Authoring Experience](/docs/designers-developers/developers/tutorials/create-block/create-block-5-author-experience.md)
6. [Finishing Touches](/docs/designers-developers/developers/tutorials/create-block/create-block-6-finishing.md)
24 changes: 12 additions & 12 deletions docs/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -535,38 +535,38 @@
},
{
"title": "WordPress Plugin",
"slug": "wp-plugin",
"markdown_source": "../docs/designers-developers/developers/tutorials/create-block/wp-plugin.md",
"slug": "create-block-1-wp-plugin",
"markdown_source": "../docs/designers-developers/developers/tutorials/create-block/create-block-1-wp-plugin.md",
"parent": "create-block"
},
{
"title": "Anatomy of a Block",
"slug": "block-anatomy",
"markdown_source": "../docs/designers-developers/developers/tutorials/create-block/block-anatomy.md",
"slug": "create-block-2-block-anatomy",
"markdown_source": "../docs/designers-developers/developers/tutorials/create-block/create-block-2-block-anatomy.md",
"parent": "create-block"
},
{
"title": "Block Attributes",
"slug": "block-attributes",
"markdown_source": "../docs/designers-developers/developers/tutorials/create-block/block-attributes.md",
"slug": "create-block-3-block-attributes",
"markdown_source": "../docs/designers-developers/developers/tutorials/create-block/create-block-3-block-attributes.md",
"parent": "create-block"
},
{
"title": "Code Implementation",
"slug": "block-code",
"markdown_source": "../docs/designers-developers/developers/tutorials/create-block/block-code.md",
"slug": "create-block-4-block-code",
"markdown_source": "../docs/designers-developers/developers/tutorials/create-block/create-block-4-block-code.md",
"parent": "create-block"
},
{
"title": "Authoring Experience",
"slug": "author-experience",
"markdown_source": "../docs/designers-developers/developers/tutorials/create-block/author-experience.md",
"slug": "create-block-5-author-experience",
"markdown_source": "../docs/designers-developers/developers/tutorials/create-block/create-block-5-author-experience.md",
"parent": "create-block"
},
{
"title": "Finishing Touches",
"slug": "finishing",
"markdown_source": "../docs/designers-developers/developers/tutorials/create-block/finishing.md",
"slug": "create-block-6-finishing",
"markdown_source": "../docs/designers-developers/developers/tutorials/create-block/create-block-6-finishing.md",
"parent": "create-block"
},
{
Expand Down
12 changes: 6 additions & 6 deletions docs/toc.json
Original file line number Diff line number Diff line change
Expand Up @@ -105,12 +105,12 @@
{ "docs/designers-developers/developers/tutorials/javascript/esnext-js.md": [] }
] },
{ "docs/designers-developers/developers/tutorials/create-block/readme.md": [
{ "docs/designers-developers/developers/tutorials/create-block/wp-plugin.md": [] },
{ "docs/designers-developers/developers/tutorials/create-block/block-anatomy.md": [] },
{ "docs/designers-developers/developers/tutorials/create-block/block-attributes.md": [] },
{ "docs/designers-developers/developers/tutorials/create-block/block-code.md": [] },
{ "docs/designers-developers/developers/tutorials/create-block/author-experience.md": [] },
{ "docs/designers-developers/developers/tutorials/create-block/finishing.md": [] }
{ "docs/designers-developers/developers/tutorials/create-block/create-block-1-wp-plugin.md": [] },
{ "docs/designers-developers/developers/tutorials/create-block/create-block-2-block-anatomy.md": [] },
{ "docs/designers-developers/developers/tutorials/create-block/create-block-3-block-attributes.md": [] },
{ "docs/designers-developers/developers/tutorials/create-block/create-block-4-block-code.md": [] },
{ "docs/designers-developers/developers/tutorials/create-block/create-block-5-author-experience.md": [] },
{ "docs/designers-developers/developers/tutorials/create-block/create-block-6-finishing.md": [] }
] },
{ "docs/designers-developers/developers/tutorials/block-tutorial/readme.md": [
{ "docs/designers-developers/developers/tutorials/block-tutorial/writing-your-first-block-type.md": [] },
Expand Down