diff --git a/packages/docs/docs/codelabs/context-menu-option/weight-and-id.mdx b/packages/docs/docs/codelabs/context-menu-option/weight-and-id.mdx index 98c2d3d90..28d3acb1d 100644 --- a/packages/docs/docs/codelabs/context-menu-option/weight-and-id.mdx +++ b/packages/docs/docs/codelabs/context-menu-option/weight-and-id.mdx @@ -29,4 +29,4 @@ Blockly.ContextMenuRegistry.registry.unregister('workspaceDelete'); ### Default items -For a list of the default registry items that Blockly provides, look at [contextmenu_items.ts](https://github.com/RaspberryPiFoundation/blockly/blob/main/core/contextmenu_items.ts). Each entry contains both the `id` and the `weight`. +For a list of the default registry items that Blockly provides, look at [contextmenu_items.ts](https://github.com/RaspberryPiFoundation/blockly/blob/main/packages/blockly/core/contextmenu_items.ts). Each entry contains both the `id` and the `weight`. diff --git a/packages/docs/docs/codelabs/custom-renderer/override-constants.mdx b/packages/docs/docs/codelabs/custom-renderer/override-constants.mdx index 5dc04fa09..530beb4e3 100644 --- a/packages/docs/docs/codelabs/custom-renderer/override-constants.mdx +++ b/packages/docs/docs/codelabs/custom-renderer/override-constants.mdx @@ -9,7 +9,7 @@ description: How to override the constants in a renderer. A **ConstantsProvider** holds all rendering-related constants. This includes sizing information and colours. Blockly provides a base **ConstantsProvider** with all required fields set to default values. -The **ConstantsProvider** `constructor()` sets all static properties, such as `NOTCH_WIDTH` and `NOTCH_HEIGHT`. For a full list of properties, see [constants.ts](https://github.com/RaspberryPiFoundation/blockly/blob/main/core/renderers/common/constants.ts). +The **ConstantsProvider** `constructor()` sets all static properties, such as `NOTCH_WIDTH` and `NOTCH_HEIGHT`. For a full list of properties, see [constants.ts](https://github.com/RaspberryPiFoundation/blockly/blob/main/packages/blockly/core/renderers/common/constants.ts). Only override the necessary subset of the constants, rather than all of them. To do so: diff --git a/packages/docs/docs/codelabs/custom-renderer/understand-connection-shapes.mdx b/packages/docs/docs/codelabs/custom-renderer/understand-connection-shapes.mdx index ef155e155..3a497550c 100644 --- a/packages/docs/docs/codelabs/custom-renderer/understand-connection-shapes.mdx +++ b/packages/docs/docs/codelabs/custom-renderer/understand-connection-shapes.mdx @@ -15,11 +15,11 @@ The outline of the block is a single [SVG path](https://developer.mozilla.org/en Each sub-path is a string of [path commands](https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/d#path_commands) that describe the appropriate shape. These commands must use relative (rather than absolute) coordinates. -SVG path commands can be written as strings, but Blockly provides a set of [utility functions](/reference/blockly.utils_namespace.svgpaths_namespace) to make writing and reading paths easier. +SVG path commands can be written as strings, but Blockly provides a set of [utility functions](/reference/blockly.utils.svgpaths) to make writing and reading paths easier. ### `init()` -A connection's shape is stored as an object with information about its width, height, and sub-path. These objects are created in the `ConstantProvider`s `init()` function. Here is the start of the default implementation. The complete definition can be found inside [`constants.ts`](https://github.com/RaspberryPiFoundation/blockly/blob/main/core/renderers/common/constants.ts). +A connection's shape is stored as an object with information about its width, height, and sub-path. These objects are created in the `ConstantProvider`s `init()` function. Here is the start of the default implementation. The complete definition can be found inside [`constants.ts`](https://github.com/RaspberryPiFoundation/blockly/blob/main/packages/blockly/core/renderers/common/constants.ts). ```js /** @@ -43,7 +43,7 @@ init() { ### `shapeFor(connection)` -The `shapeFor(connection)` function maps from connection to connection shape. Here is the default implementation, which can be found inside [`constants.ts`](https://github.com/RaspberryPiFoundation/blockly/blob/main/core/renderers/common/constants.ts). It returns a puzzle tab for input/output connections and a notch for previous/next connections: +The `shapeFor(connection)` function maps from connection to connection shape. Here is the default implementation, which can be found inside [`constants.ts`](https://github.com/RaspberryPiFoundation/blockly/blob/main/packages/blockly/core/renderers/common/constants.ts). It returns a puzzle tab for input/output connections and a notch for previous/next connections: ```js /** diff --git a/packages/docs/docs/guides/configure/web/appearance/block-colour.mdx b/packages/docs/docs/guides/configure/web/appearance/block-colour.mdx index c1047a227..7847f7e9f 100644 --- a/packages/docs/docs/guides/configure/web/appearance/block-colour.mdx +++ b/packages/docs/docs/guides/configure/web/appearance/block-colour.mdx @@ -53,7 +53,7 @@ see [Colour formats](/guides/configure/web/appearance/colour-formats). Note the British spelling. Failure to set the colour results in a black block. You can also set the block color using the -[`Block.setColour(..)`](/reference/blockly.block_class.setcolour_1_method) +[`Block.setColour(..)`](/reference/blockly.block.setcolour) function, or by using [themes](/guides/configure/web/appearance/themes) and defining a block style. diff --git a/packages/docs/docs/guides/configure/web/appearance/colour-formats.mdx b/packages/docs/docs/guides/configure/web/appearance/colour-formats.mdx index 49025227d..bac458655 100644 --- a/packages/docs/docs/guides/configure/web/appearance/colour-formats.mdx +++ b/packages/docs/docs/guides/configure/web/appearance/colour-formats.mdx @@ -77,7 +77,7 @@ toolbox categories, plus a distinct colour for dynamic variables: ``` These string values can be used in both the JSON definitions and -[`block.setColour(..)`](/reference/blockly.block_class.setcolour_1_method). +[`block.setColour(..)`](/reference/blockly.block.setcolour). You can add your own colour constants by adding to `Blockly.Msg`: diff --git a/packages/docs/docs/guides/configure/web/appearance/css.mdx b/packages/docs/docs/guides/configure/web/appearance/css.mdx index 8b170795b..c50b99a85 100644 --- a/packages/docs/docs/guides/configure/web/appearance/css.mdx +++ b/packages/docs/docs/guides/configure/web/appearance/css.mdx @@ -131,7 +131,7 @@ custom CSS classes: ``` For more information, see [Customizing fields with - CSS](/guides/create-custom-blocks/fields/customizing-fields/creating#customizing-with-css) + CSS](/guides/create-custom-blocks/fields/customizing-fields/creating#css) or [Create the icon's view](/guides/create-custom-blocks/icons/creating-custom-icons/basic-implementation#create-the-icons-view). @@ -284,7 +284,7 @@ When Blockly is injected, it adds a `