Skip to content

Commit abe9967

Browse files
authored
chore: Update codelab doc URLs after doc reorg (#2617)
* chore: Change setEnabled to setDisabledReason * chore: Update codelab doc URLs after doc reorg
1 parent 437822c commit abe9967

6 files changed

Lines changed: 22 additions & 22 deletions

File tree

codelabs/context_menu_option/context_menu_option.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -357,4 +357,4 @@ In this codelab you have learned how to create and modify context menu options.
357357

358358
- [Context menu documentation](https://developers.google.com/blockly/guides/configure/web/context-menus)
359359

360-
- You can also define [block context menus](https://developers.google.com/blockly/guides/create-custom-blocks/define-blocks#context_menus) directly on a block definition, which is equivalent to adding a precondition based on the type of the block.
360+
- You can also define [block context menus](https://developers.google.com/blockly/guides/configure/web/context-menus#customize_per_block) directly on a block definition, which is equivalent to adding a precondition based on the type of the block.

codelabs/custom_generator/custom_generator.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ sampleGenerator.forBlock['left_turn_block'] = function(block, generator) {
285285

286286
Value blocks represent code that returns a value.
287287

288-
A value block's generator returns an array containing a string and a [precedence value](https://developers.google.com/blockly/guides/create-custom-blocks/operator-precedence). The built-in generators have predefined operator precedence values exported as an `Order` enum.
288+
A value block's generator returns an array containing a string and a [precedence value](https://developers.google.com/blockly/guides/create-custom-blocks/code-generation/operator-precedence). The built-in generators have predefined operator precedence values exported as an `Order` enum.
289289

290290
This code defines a block generator that always returns `1 + 1`:
291291

@@ -301,7 +301,7 @@ Operator precedence rules determine how the correct order of operations is maint
301301

302302
--> Read more about [operator precedence in JavaScript](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Operator_Precedence).
303303

304-
--> Read more about [operator precedence in Blockly](https://developers.google.com/blockly/guides/create-custom-blocks/operator-precedence).
304+
--> Read more about [operator precedence in Blockly](https://developers.google.com/blockly/guides/create-custom-blocks/code-generation/operator-precedence).
305305

306306
Since JSON does not allow values that are expressions, the code does not need to consider operator precedence for the generator being built in this codelab. The same value can be used everywhere a precedence value is required. Since parentheses never need to be added to the JSON, call this value `ATOMIC`.
307307

codelabs/custom_toolbox/custom_toolbox.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@ The code samples are written in ES6 syntax. You can find the code for the [compl
3333
- A browser.
3434
- A text editor.
3535
- Basic knowledge of HTML, CSS, and JavaScript.
36-
- Basic understanding of the [Blockly toolbox](https://developers.google.com/blockly/guides/configure/web/toolbox).
36+
- Basic understanding of the [Blockly toolbox](https://developers.google.com/blockly/guides/configure/web/toolboxes/toolbox).
3737

38-
Throughout various parts of this codelab we will be talking about [toolbox definitions](https://developers.google.com/blockly/guides/configure/web/toolbox#xml).
38+
Throughout various parts of this codelab we will be talking about [toolbox definitions](https://developers.google.com/blockly/guides/configure/web/toolboxes/category#xml).
3939
The toolbox definition can be written in XML or JSON. We will be using an XML
4040
toolbox definition that can be found in the provided code.
4141

@@ -149,7 +149,7 @@ The logic_category style looks like:
149149
"colour": "210"
150150
}
151151
```
152-
For more information on Blockly styles please visit the [themes documentation](https://developers.google.com/blockly/guides/configure/web/themes#category_style).
152+
For more information on Blockly styles please visit the [themes documentation](https://developers.google.com/blockly/guides/configure/web/appearance/themes#category_style).
153153

154154
### Add some CSS
155155

@@ -254,7 +254,7 @@ to be:
254254
<category css-icon="customIcon fa fa-cog" name="Logic" categorystyle="logic_category">
255255
```
256256
All the classes used to create a category can be set similar to how we set the
257-
icon class above. See the [Blockly toolbox documentation](https://developers.google.com/blockly/guides/configure/web/toolbox#category_css) for more information.
257+
icon class above. See the [Blockly toolbox documentation](https://developers.google.com/blockly/guides/configure/web/toolboxes/appearance#category_css) for more information.
258258

259259
### Add some CSS
260260
If you open `index.html` you will notice that the gear icon is positioned

codelabs/getting_started/getting_started.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ The toolbox may be organized into categories, and may contain both single blocks
139139

140140
A toolbox is defined as a JavaScript object and passed into the workspace constructor through an options struct.
141141

142-
For more information on this JSON format and toolbox configuration, including category creation, please see our <a href="https://developers.google.com/blockly/guides/configure/web/toolbox">toolbox documentation</a>.
142+
For more information on this JSON format and toolbox configuration, including category creation, please see our <a href="https://developers.google.com/blockly/guides/configure/web/toolboxes/toolbox">toolbox documentation</a>.
143143

144144

145145
### Define the toolbox
@@ -204,7 +204,7 @@ Let's look at the options we used to initialize your blockly editor:
204204
- `horizontalLayout`: Whether to display the toolbox horizontally or vertically in the workspace.
205205
- `toolboxPosition`: Whether to show the toolbox at the top or bottom of the workspace.
206206

207-
The `options` struct gives you significant control over your Blockly instance. You can pass options to set Blockly's theme, modify scrolling behaviour, set the renderer, and more. For more information, head over to Blockly's developer site and check out the [configuration](https://developers.google.com/blockly/guides/get-started/web#configuration) section.
207+
The `options` struct gives you significant control over your Blockly instance. You can pass options to set Blockly's theme, modify scrolling behaviour, set the renderer, and more. For more information, head over to Blockly's developer site and check out the [configuration](https://developers.google.com/blockly/guides/configure/web/configuration_struct#the_options_dictionary) section.
208208

209209
### Check your work
210210

@@ -222,7 +222,7 @@ Since this is a music maker app, we want a block that plays sounds. We could cre
222222

223223
In Blockly, a *block definition* describes how a block looks and behaves. This includes its text, colour, and shape. It may also include which other blocks it can connect to.
224224

225-
Blocks can be defined in either JavaScript or JSON. The developer site has a full article on [how to define a block](https://developers.google.com/blockly/guides/create-custom-blocks/define-blocks).
225+
Blocks can be defined in either JavaScript or JSON. The developer site has a full article on [how to define a block](https://developers.google.com/blockly/guides/create-custom-blocks/define/block-definitions#how_to_create_block_definitions).
226226

227227
In this codelab we will simply provide the block definition for you to copy and use.
228228

@@ -395,7 +395,7 @@ translates into the JavaScript code:
395395
MusicMaker.queueSound('Sounds/c4.m4a');
396396
```
397397

398-
For more information on generators, read the [generating code](https://developers.google.com/blockly/guides/create-custom-blocks/generating-code) page on the developer site.
398+
For more information on block generators, read the [generating code](https://developers.google.com/blockly/guides/create-custom-blocks/code-generation/overview#block-code_generators) page on the developer site.
399399

400400
## Run generated code
401401

@@ -458,6 +458,6 @@ Save and exit the edit mode. Now if you tap this button, you should hear the D4
458458

459459
And with that, you're done with the Blockly codelab! If you'd like to continue playing with the app, we suggest adding or changing the available blocks. There are sample sound files in the `sounds` folder - try hooking them up to a new block!
460460

461-
For more documentation, visit the [Blockly developer site](https://developers.google.com/blockly/).
461+
For more documentation, visit the [Blockly developer site](https://developers.google.com/blockly/guides/get-started/what-is-blockly).
462462

463463
Additionally, Blockly has an active [developer forum](https://groups.google.com/forum/#!forum/blockly). Please drop by and say hello. We're happy to answer any questions or give advice on best practices for building an app with Blockly. Feel free to show us your prototypes early; collectively we have a lot of experience and can offer hints which will save you time.

codelabs/theme_extension/theme_extension.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ Clicking on a category will highlight the row with your new colour.
171171
## Customize Block Styles
172172
A block style currently only holds three different colour properties. They are 'colourPrimary',
173173
'colourSecondary' and 'colourTertiary'. This value can either be defined as a hex value or as a hue.
174-
For more information on block styles visit our themes [documentation](https://developers.google.com/blockly/guides/configure/web/themes#block_style)
174+
For more information on block styles visit our themes [documentation](https://developers.google.com/blockly/guides/configure/web/appearance/themes#block_style)
175175

176176
Update the Theme definition to have the block styles as below.
177177

@@ -245,6 +245,6 @@ In this codelab you have learned how to extend and customize themes for the bloc
245245

246246
### Additional information
247247

248-
- [Themes documentation](https://developers.google.com/blockly/guides/configure/web/themes)
248+
- [Themes documentation](https://developers.google.com/blockly/guides/configure/web/appearance/themes)
249249

250-
- You can also customize the font styles. Details are available in the [documentation](https://developers.google.com/blockly/guides/configure/web/themes#font_styles).
250+
- You can also customize the font styles. Details are available in the [documentation](https://developers.google.com/blockly/guides/configure/web/appearance/themes#font_styles).

codelabs/validation_and_warnings/validation_and_warnings.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ You can find the code for the [completed custom block](https://github.com/google
2525
- A browser.
2626
- A text editor.
2727
- Basic knowledge of JavaScript.
28-
- Basic understanding of the [Blockly toolbox](https://developers.google.com/blockly/guides/configure/web/toolbox).
29-
- Basic understanding of [using JSON to define custom blocks](https://developers.google.com/blockly/guides/create-custom-blocks/define-blocks).
28+
- Basic understanding of the [Blockly toolbox](https://developers.google.com/blockly/guides/configure/web/toolboxes/toolbox).
29+
- Basic understanding of [using JSON to define custom blocks](https://developers.google.com/blockly/guides/create-custom-blocks/define/structure-json).
3030

3131
## Setup
3232

@@ -270,10 +270,10 @@ You can find the code for the [completed custom block](https://github.com/google
270270

271271
### Resources
272272
For more information related topics, check out the documentation:
273-
* [Defining the toolbox](https://developers.google.com/blockly/guides/configure/web/toolbox)
274-
* [Defining custom blocks](https://developers.google.com/blockly/guides/create-custom-blocks/define-blocks)
275-
* [Generating code from blocks](https://developers.google.com/blockly/guides/create-custom-blocks/generating-code)
276-
* [Creating extensions](https://developers.google.com/blockly/guides/create-custom-blocks/extensions)
273+
* [Defining the toolbox](https://developers.google.com/blockly/guides/configure/web/toolboxes/toolbox)
274+
* [Defining custom blocks](https://developers.google.com/blockly/guides/create-custom-blocks/overview)
275+
* [Generating code from blocks](https://developers.googlehttps.com/blockly/guides/create-custom-blocks/code-generation/overview)
276+
* [Creating extensions](https://developers.google.com/blockly/guides/create-custom-blocks/define/extensions#extensions)
277277
* [Listening for change events](https://developers.google.com/blockly/guides/configure/web/events)
278278
* [Custom validators](https://developers.google.com/blockly/guides/create-custom-blocks/fields/validators)
279-
* [Custom block style guide](https://developers.google.com/blockly/guides/create-custom-blocks/style-guide)
279+
* [Custom block style guide](https://developers.google.com/blockly/guides/design/blocks)

0 commit comments

Comments
 (0)