From 7a8f6469979509668f84e282c4366cca50d95a23 Mon Sep 17 00:00:00 2001 From: Greg Annandale Date: Tue, 7 Apr 2026 11:06:34 +0100 Subject: [PATCH] chore(docs): fix broken links Primarily to reference docs, also links to the GitHub repo prior to the monorepo reshuffle. --- .../context-menu-option/weight-and-id.mdx | 2 +- .../custom-renderer/override-constants.mdx | 2 +- .../understand-connection-shapes.mdx | 6 ++-- .../configure/web/appearance/block-colour.mdx | 2 +- .../web/appearance/colour-formats.mdx | 2 +- .../guides/configure/web/appearance/css.mdx | 4 +-- .../configure/web/appearance/themes.mdx | 2 +- .../configure/web/configuration_struct.mdx | 6 ++-- .../guides/configure/web/context-menus.mdx | 16 ++++----- .../docs/guides/configure/web/copy-paste.mdx | 14 ++++---- .../guides/configure/web/customization.mdx | 34 +++++++++---------- .../web/dragging/block-drag-strategies.mdx | 6 ++-- .../configure/web/dragging/draggable.mdx | 14 ++++---- .../guides/configure/web/dragging/dragger.mdx | 4 +-- .../docs/docs/guides/configure/web/events.mdx | 2 +- .../docs/docs/guides/configure/web/focus.mdx | 6 ++-- .../configure/web/keyboard-shortcuts.mdx | 12 +++---- .../guides/configure/web/metrics_manager.mdx | 2 +- .../guides/configure/web/serialization.mdx | 4 +-- .../guides/configure/web/toolboxes/preset.mdx | 2 +- .../docs/guides/contribute/core/klingon.mdx | 4 +-- .../guides/contribute/core/style_guide.mdx | 2 +- .../guides/contribute/core/unit_testing.mdx | 2 +- .../code-generation/overview.mdx | 2 +- .../define/block-definitions.mdx | 8 ++--- .../define/json-and-js.mdx | 8 ++--- .../fields/anatomy-of-a-field.mdx | 2 +- .../fields/built-in-fields/image.mdx | 2 +- .../fields/built-in-fields/label.mdx | 2 +- .../fields/built-in-fields/number.mdx | 2 +- .../fields/built-in-fields/variable.mdx | 2 +- .../fields/customizing-fields/creating.mdx | 16 ++++----- .../fields/customizing-fields/upgrading.mdx | 6 ++-- .../fields/validators.mdx | 2 +- .../basic-implementation.mdx | 26 +++++++------- .../creating-custom-bubbles.mdx | 10 +++--- .../override-built-in.mdx | 8 ++--- .../creating-custom-icons/save-and-load.mdx | 10 +++--- .../creating-custom-icons/use-bubbles.mdx | 10 +++--- .../create-custom-blocks/icons/overview.mdx | 2 +- .../inputs/connection-checks.mdx | 2 +- .../inputs/connection-previews.mdx | 2 +- .../inputs/creating-custom-inputs.mdx | 4 +-- .../creating-custom-procedure-blocks.mdx | 2 +- .../creating-custom-procedure-data-models.mdx | 4 +-- .../renderers/concepts/constants.mdx | 8 ++--- .../renderers/concepts/drawer.mdx | 4 +-- .../renderers/concepts/elements.mdx | 4 +-- .../renderers/concepts/info.mdx | 2 +- .../renderers/concepts/path-object.mdx | 2 +- .../renderers/concepts/renderer.mdx | 2 +- .../renderers/concepts/rows.mdx | 4 +-- .../basic-implementation.mdx | 10 +++--- .../connection-shapes.mdx | 30 ++++++++-------- .../docs/guides/get-started/get-the-code.mdx | 2 +- packages/docs/sidebars.js | 5 +-- 56 files changed, 178 insertions(+), 177 deletions(-) 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 `