Skip to content

Commit 735e626

Browse files
authored
Merge pull request #199 from ajitbohra/update/blocks-docs-block
Update links to blocks documentation
2 parents e8cd0e2 + c81155a commit 735e626

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

templates/block-index-js.mustache

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
11
( function( wp ) {
22
/**
33
* Registers a new block provided a unique name and an object defining its behavior.
4-
* @see https://github.com/WordPress/gutenberg/tree/master/blocks#api
4+
* @see https://wordpress.org/gutenberg/handbook/designers-developers/developers/block-api/#registering-a-block
55
*/
66
var registerBlockType = wp.blocks.registerBlockType;
77
/**
88
* Returns a new element of given type. Element is an abstraction layer atop React.
9-
* @see https://github.com/WordPress/gutenberg/tree/master/element#element
9+
* @see https://wordpress.org/gutenberg/handbook/designers-developers/developers/packages/packages-element/
1010
*/
1111
var el = wp.element.createElement;
1212
/**
1313
* Retrieves the translation of text.
14-
* @see https://github.com/WordPress/gutenberg/tree/master/i18n#api
14+
* @see https://wordpress.org/gutenberg/handbook/designers-developers/developers/packages/packages-i18n/
1515
*/
1616
var __ = wp.i18n.__;
1717
1818
/**
1919
* Every block starts by registering a new block type definition.
20-
* @see https://wordpress.org/gutenberg/handbook/block-api/
20+
* @see https://wordpress.org/gutenberg/handbook/designers-developers/developers/block-api/#registering-a-block
2121
*/
2222
registerBlockType( '{{namespace}}/{{slug}}', {
2323
/**
@@ -51,7 +51,7 @@
5151
/**
5252
* The edit function describes the structure of your block in the context of the editor.
5353
* This represents what the editor will render when the block is used.
54-
* @see https://wordpress.org/gutenberg/handbook/block-edit-save/#edit
54+
* @see https://wordpress.org/gutenberg/handbook/designers-developers/developers/block-api/block-edit-save/#edit
5555
*
5656
* @param {Object} [props] Properties passed from the editor.
5757
* @return {Element} Element to render.
@@ -67,7 +67,7 @@
6767
/**
6868
* The save function defines the way in which the different attributes should be combined
6969
* into the final markup, which is then serialized by Gutenberg into `post_content`.
70-
* @see https://wordpress.org/gutenberg/handbook/block-edit-save/#save
70+
* @see https://wordpress.org/gutenberg/handbook/designers-developers/developers/block-api/block-edit-save/#save
7171
*
7272
* @return {Element} Element to render.
7373
*/

templates/block-php.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
* Registers all block assets so that they can be enqueued through Gutenberg in
1111
* the corresponding context.
1212
*
13-
* @see https://wordpress.org/gutenberg/handbook/blocks/writing-your-first-block-type/#enqueuing-block-scripts
13+
* @see https://wordpress.org/gutenberg/handbook/designers-developers/developers/tutorials/block-tutorial/applying-styles-with-stylesheets/
1414
*/
1515
function {{machine_name}}_block_init() {
1616
// Skip block registration if Gutenberg is not enabled/merged.

0 commit comments

Comments
 (0)