Skip to content

Commit 7a8f646

Browse files
committed
chore(docs): fix broken links
Primarily to reference docs, also links to the GitHub repo prior to the monorepo reshuffle.
1 parent 059a9c7 commit 7a8f646

56 files changed

Lines changed: 178 additions & 177 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

packages/docs/docs/codelabs/context-menu-option/weight-and-id.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,4 @@ Blockly.ContextMenuRegistry.registry.unregister('workspaceDelete');
2929

3030
### Default items
3131

32-
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`.
32+
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`.

packages/docs/docs/codelabs/custom-renderer/override-constants.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ description: How to override the constants in a renderer.
99

1010
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.
1111

12-
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).
12+
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).
1313

1414
Only override the necessary subset of the constants, rather than all of them. To do so:
1515

packages/docs/docs/codelabs/custom-renderer/understand-connection-shapes.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ The outline of the block is a single [SVG path](https://developer.mozilla.org/en
1515

1616
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.
1717

18-
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.
18+
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.
1919

2020
### `init()`
2121

22-
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).
22+
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).
2323

2424
```js
2525
/**
@@ -43,7 +43,7 @@ init() {
4343

4444
### `shapeFor(connection)`
4545

46-
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:
46+
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:
4747

4848
```js
4949
/**

packages/docs/docs/guides/configure/web/appearance/block-colour.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ see [Colour formats](/guides/configure/web/appearance/colour-formats).
5353
Note the British spelling. Failure to set the colour results in a black block.
5454

5555
You can also set the block color using the
56-
[`Block.setColour(..)`](/reference/blockly.block_class.setcolour_1_method)
56+
[`Block.setColour(..)`](/reference/blockly.block.setcolour)
5757
function, or by using [themes](/guides/configure/web/appearance/themes)
5858
and defining a block style.
5959

packages/docs/docs/guides/configure/web/appearance/colour-formats.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ toolbox categories, plus a distinct colour for dynamic variables:
7777
```
7878

7979
These string values can be used in both the JSON definitions and
80-
[`block.setColour(..)`](/reference/blockly.block_class.setcolour_1_method).
80+
[`block.setColour(..)`](/reference/blockly.block.setcolour).
8181

8282
You can add your own colour constants by adding to `Blockly.Msg`:
8383

packages/docs/docs/guides/configure/web/appearance/css.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ custom CSS classes:
131131
```
132132

133133
For more information, see [Customizing fields with
134-
CSS](/guides/create-custom-blocks/fields/customizing-fields/creating#customizing-with-css)
134+
CSS](/guides/create-custom-blocks/fields/customizing-fields/creating#css)
135135
or [Create the icon's
136136
view](/guides/create-custom-blocks/icons/creating-custom-icons/basic-implementation#create-the-icons-view).
137137

@@ -284,7 +284,7 @@ When Blockly is injected, it adds a `<style>` tag as a child of the `<head>`
284284
tag. The rules in this tag come from:
285285

286286
- The `Blockly.css` namespace. To see these rules, open
287-
[core/css.ts](https://github.com/RaspberryPiFoundation/blockly/blob/main/core/css.ts) and
287+
[core/css.ts](https://github.com/RaspberryPiFoundation/blockly/blob/main/packages/blockly/core/css.ts) and
288288
search for `let content`.
289289
- Individual components, which call `Blockly.css.register` to add
290290
component-specific CSS rules. Because `css.register` adds these rules to the

packages/docs/docs/guides/configure/web/appearance/themes.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ JavaScript.
310310
</Tabs>
311311
If no theme
312312
is provided then it will default to the
313-
[Classic Theme](https://github.com/RaspberryPiFoundation/blockly/blob/main/core/theme/classic.ts).
313+
[Classic Theme](https://github.com/RaspberryPiFoundation/blockly/blob/main/packages/blockly/core/theme/classic.ts).
314314

315315
#### Dynamic themes
316316

packages/docs/docs/guides/configure/web/configuration_struct.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ directly.
3636
## Configuration options \{#the-options-dictionary\}
3737

3838
The configuration object implements
39-
[`Blockly.BlocklyOptions`](/reference/blockly.blocklyoptions_interface)
39+
[`Blockly.BlocklyOptions`](/reference/blockly.blocklyoptions)
4040
and has the following options. Note that several of these options change their
4141
default value based on whether the provided toolbox has categories or not.
4242

@@ -70,8 +70,8 @@ default value based on whether the provided toolbox has categories or not.
7070
[Grid]: /guides/configure/web/grid
7171
[media]: /guides/configure/web/media
7272
[Move]: /guides/configure/web/move
73-
[setIsReadOnly]: /reference/blockly.workspace_class.setisreadonly_1_method
74-
[isReadOnly]: /reference/blockly.workspace_class.isreadonly_1_method
73+
[setIsReadOnly]: /reference/blockly.workspace.setisreadonly
74+
[isReadOnly]: /reference/blockly.workspace.isreadonly
7575
[renderer]: /guides/create-custom-blocks/renderers/create-custom-renderers/basic-implementation
7676
[RTL demo]: https://raspberrypifoundation.github.io/blockly-samples/examples/rtl-demo/
7777
[Themes]: /guides/configure/web/appearance/themes

packages/docs/docs/guides/configure/web/context-menus.mdx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -459,16 +459,16 @@ steps:
459459
items.
460460
461461
[block-default-menu-image]: /images/context-menus/block-default-menu.png
462-
[context-menu-items-source]: https://github.com/RaspberryPiFoundation/blockly/blob/main/core/contextmenu_items.ts
463-
[i-context-menu]: /reference/blockly.icontextmenu_interface
464-
[i-focusable-node]: /reference/blockly.ifocusablenode_interface
465-
[RegistryItem]: /reference/blockly.contextmenuregistry_namespace.registryitem_typealias
462+
[context-menu-items-source]: https://github.com/RaspberryPiFoundation/blockly/blob/main/packages/blockly/core/contextmenu_items.ts
463+
[i-context-menu]: /reference/blockly.icontextmenu
464+
[i-focusable-node]: /reference/blockly.ifocusablenode
465+
[RegistryItem]: /reference/blockly.contextmenuregistry.registryitem
466466
[Scope]: #scope
467467
[enabled-image]: /images/context-menus/enabled-option.png
468468
[disabled-image]: /images/context-menus/disabled-option.png
469-
[customContextMenu]: /reference/blockly.blocksvg_class.customcontextmenu_property
470-
[configureContextMenu]: /reference/blockly.workspacesvg_class.configurecontextmenu_property
471-
[ContextMenuOption]: /reference/blockly.contextmenuregistry_namespace.contextmenuoption_typealias
472-
[LegacyContextMenuOption]: /reference/blockly.contextmenuregistry_namespace.legacycontextmenuoption_interface
469+
[customContextMenu]: /reference/blockly.blocksvg.customcontextmenu
470+
[configureContextMenu]: /reference/blockly.workspacesvg.configurecontextmenu
471+
[ContextMenuOption]: /reference/blockly.contextmenuregistry.contextmenuoption
472+
[LegacyContextMenuOption]: /reference/blockly.contextmenuregistry.legacycontextmenuoption
473473
[coordinate-systems]: /guides/configure/web/metrics_manager#coordinate-systems
474474
[keyboard-navigation-plugin]: /guides/configure/web/keyboard-nav

packages/docs/docs/guides/configure/web/copy-paste.mdx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -153,15 +153,15 @@ Blockly.clipboard.registry.register('MY_PASTER', new MyPaster());
153153
```
154154

155155
[implement-paster]: /guides/configure/web/copy-paste#implement-a-paster
156-
[ICopyable]: /reference/blockly.icopyable_interface
157-
[IDeletable]: /reference/blockly.ideletable_interface
158-
[IDraggable]: /reference/blockly.idraggable_interface
159-
[ICopyData]: /reference/blockly.icopyable_namespace.icopydata_interface
160-
[IPaster]: /reference/blockly.ipaster_interface
161-
[ISelectable]: /reference/blockly.iselectable_interface
156+
[ICopyable]: /reference/blockly.icopyable
157+
[IDeletable]: /reference/blockly.ideletable
158+
[IDraggable]: /reference/blockly.idraggable
159+
[ICopyData]: /reference/blockly.icopyable.icopydata
160+
[IPaster]: /reference/blockly.ipaster
161+
[ISelectable]: /reference/blockly.iselectable
162162
[default-keyboard-shortcuts]: /guides/configure/web/keyboard-shortcuts#default-shortcuts
163163
[context-menu-option]: /guides/configure/web/context-menus
164164
[custom-draggables]: /guides/configure/web/dragging/draggable
165165
[multiselect-plugin]: https://www.npmjs.com/package/@mit-app-inventor/blockly-plugin-workspace-multiselect
166166
[cross-tab-copy-paste-plugin]: https://www.npmjs.com/package/@blockly/plugin-cross-tab-copy-paste
167-
[clipboard-namespace]: /reference/blockly.clipboard_namespace
167+
[clipboard-namespace]: /reference/blockly.clipboard

0 commit comments

Comments
 (0)