|
1 | 1 | ( function( wp ) { |
2 | 2 | /** |
3 | 3 | * 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 |
5 | 5 | */ |
6 | 6 | var registerBlockType = wp.blocks.registerBlockType; |
7 | 7 | /** |
8 | 8 | * 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/ |
10 | 10 | */ |
11 | 11 | var el = wp.element.createElement; |
12 | 12 | /** |
13 | 13 | * 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/ |
15 | 15 | */ |
16 | 16 | var __ = wp.i18n.__; |
17 | 17 |
|
18 | 18 | /** |
19 | 19 | * 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 |
21 | 21 | */ |
22 | 22 | registerBlockType( '{{namespace}}/{{slug}}', { |
23 | 23 | /** |
|
51 | 51 | /** |
52 | 52 | * The edit function describes the structure of your block in the context of the editor. |
53 | 53 | * 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 |
55 | 55 | * |
56 | 56 | * @param {Object} [props] Properties passed from the editor. |
57 | 57 | * @return {Element} Element to render. |
|
67 | 67 | /** |
68 | 68 | * The save function defines the way in which the different attributes should be combined |
69 | 69 | * 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 |
71 | 71 | * |
72 | 72 | * @return {Element} Element to render. |
73 | 73 | */ |
|
0 commit comments