Skip to content

Commit f5d792b

Browse files
committed
chore(docs): update docs config and paths (removing blockly/)
Also setting correct GitHub org name
1 parent 2b0e4c8 commit f5d792b

151 files changed

Lines changed: 927 additions & 927 deletions

File tree

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/summary.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@ In this codelab you have learned how to create and modify context menu options.
1313

1414
### Additional information
1515

16-
- [Context menu documentation](/blockly/guides/configure/web/context-menus)
16+
- [Context menu documentation](/guides/configure/web/context-menus)
1717

18-
- You can also define [block context menus](/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.
18+
- You can also define [block context menus](/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.

packages/docs/docs/codelabs/css/blocks.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@ description: Styling blocks with CSS
88

99
## 6. Blocks
1010

11-
In this section, you will create CSS rules to assign the colours used by the [blocks section](/blockly/codelabs/theme-extension-identifier/customize-block-styles/index.html) of the themes codelab to the logic, loops, text, and lists blocks. This is a bit more complex than setting component or category colours and you'll do it in several steps.
11+
In this section, you will create CSS rules to assign the colours used by the [blocks section](/codelabs/theme-extension-identifier/customize-block-styles/index.html) of the themes codelab to the logic, loops, text, and lists blocks. This is a bit more complex than setting component or category colours and you'll do it in several steps.
1212

1313
### Block fill and stroke
1414

1515
Your first step is to set the `fill` and `stroke` of the logic blocks.
1616

1717
Note that setting the `fill` and `stroke` is specific to the
18-
[renderer](/blockly/guides/create-custom-blocks/renderers/overview)
18+
[renderer](/guides/create-custom-blocks/renderers/overview)
1919
you are using. (In this codelab, you are using the Thrasos renderer.) An
2020
important consequence of this is that you need different CSS for different
2121
renderers.
@@ -61,7 +61,7 @@ The last step before writing your colour rules is to decide what colours to use.
6161
How these colours are used depends on the renderer. The Thrasos renderer uses
6262
the primary colour as the `fill` of the block, the tertiary colour as the
6363
`stroke`, and the secondary colour as the `fill` when the block is a
64-
[shadow block](/blockly/guides/configure/web/toolboxes/preset#shadow-blocks).
64+
[shadow block](/guides/configure/web/toolboxes/preset#shadow-blocks).
6565
#### Add your rules
6666

6767
You're now ready to add your rules to set the `fill` and `stroke` of the logic blocks:

packages/docs/docs/codelabs/css/categories.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ description: Styling toolbox categories with CSS
88

99
## 5. Toolbox categories
1010

11-
In this section, you will create CSS rules to assign the colours used by the [categories section](/blockly/codelabs/theme-extension-identifier/customize-category-styles/index.html) of the themes codelab to the toolbox's categories.
11+
In this section, you will create CSS rules to assign the colours used by the [categories section](/codelabs/theme-extension-identifier/customize-category-styles/index.html) of the themes codelab to the toolbox's categories.
1212

1313
### Identify the category element
1414

@@ -55,7 +55,7 @@ define rules that apply to all categories.
5555
},
5656
```
5757

58-
For a complete explanation of how `cssConfig` works, see [Custom CSS classes](/blockly/guides/configure/web/toolboxes/appearance#custom-css-classes) in the toolbox documentation.
58+
For a complete explanation of how `cssConfig` works, see [Custom CSS classes](/guides/configure/web/toolboxes/appearance#custom-css-classes) in the toolbox documentation.
5959

6060
### Add your rules
6161

packages/docs/docs/codelabs/css/codelab-overview.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@ In this codelab you will learn how to use CSS to customize the colours of:
1919

2020
If you don't need the fine-grained control provided by CSS, consider using
2121
themes instead. For more information, see the
22-
[Customizing your themes](/blockly/codelabs/theme-extension-identifier/codelab-overview/index.html)
22+
[Customizing your themes](/codelabs/theme-extension-identifier/codelab-overview/index.html)
2323
codelab.
2424

2525
### What you'll build
2626

27-
A simple Blockly workspace that uses the same Halloween colours as the [Customizing your themes](/blockly/codelabs/theme-extension-identifier/codelab-overview/index.html) codelab.
27+
A simple Blockly workspace that uses the same Halloween colours as the [Customizing your themes](/codelabs/theme-extension-identifier/codelab-overview/index.html) codelab.
2828

2929
### What you'll need
3030

packages/docs/docs/codelabs/css/components.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ description: Styling Blockly components with CSS
88

99
## 4. Components
1010

11-
In this section, you will create CSS rules to assign the colours used by the [components section](/blockly/codelabs/theme-extension-identifier/customize-components/index.html) of the themes codelab to various components.
11+
In this section, you will create CSS rules to assign the colours used by the [components section](/codelabs/theme-extension-identifier/customize-components/index.html) of the themes codelab to various components.
1212

1313
To start, create a file named `halloween.css` and add it to your `index.html` file:
1414

@@ -152,4 +152,4 @@ You might have also noticed that some rules use an `!important` declaration whil
152152

153153
- **Inline styles:** These rules are included via a `style` attribute and can only be overridden by an `!important` declaration. As you will see later, the colour of the arrow in a dropdown field is set with an inline style and must be overridden with `!important`.
154154

155-
The easiest way to determine how a rule is set is to highlight the appropriate element in the element inspector and look at the corresponding style information. In a few cases, this isn't possible. For example, an insertion marker is created only when you drag a child near its parent and is deleted when you let go of the parent to highlight the insertion marker's element. In these cases, you will need to [search Blockly's rules](/blockly/guides/configure/web/appearance/css#blockly-css-rules).
155+
The easiest way to determine how a rule is set is to highlight the appropriate element in the element inspector and look at the corresponding style information. In a few cases, this isn't possible. For example, an insertion marker is created only when you drag a child near its parent and is deleted when you let go of the parent to highlight the insertion marker's element. In these cases, you will need to [search Blockly's rules](/guides/configure/web/appearance/css#blockly-css-rules).

packages/docs/docs/codelabs/css/summary.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ description: Summary of the CSS in Blockly codelab
99

1010
In this codelab, you learned how to use CSS to set the colours of your Blockly editor.
1111

12-
For more information, see [Style with CSS](/blockly/guides/configure/web/appearance/css) in the Blockly user guides.
12+
For more information, see [Style with CSS](/guides/configure/web/appearance/css) in the Blockly user guides.

packages/docs/docs/codelabs/custom-generator/block-generator-overview.mdx

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

3636
Value blocks represent code that returns a value.
3737

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

4040
This code defines a block generator that always returns `1 + 1`:
4141

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

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

54-
--> Read more about [operator precedence in Blockly](/blockly/guides/create-custom-blocks/code-generation/operator-precedence).
54+
--> Read more about [operator precedence in Blockly](/guides/create-custom-blocks/code-generation/operator-precedence).
5555

5656
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`.
5757

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ 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](/blockly/reference/js/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/js/blockly.utils_namespace.svgpaths_namespace) to make writing and reading paths easier.
1919

2020
### `init()`
2121

packages/docs/docs/codelabs/custom-toolbox/add-an-icon-to-your-category.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ to be:
2828
<category css-icon="customIcon fa fa-cog" name="Logic" categorystyle="logic_category">
2929
```
3030
All the classes used to create a category can be set similar to how we set the
31-
icon class above. See the [Blockly toolbox documentation](/blockly/guides/configure/web/toolboxes/appearance#category-css) for more information.
31+
icon class above. See the [Blockly toolbox documentation](/guides/configure/web/toolboxes/appearance#category-css) for more information.
3232

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

packages/docs/docs/codelabs/custom-toolbox/change-the-look-of-a-category.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ The logic_category style looks like:
3838
"colour": "210"
3939
}
4040
```
41-
For more information on Blockly styles please visit the [themes documentation](/blockly/guides/configure/web/appearance/themes#category-style).
41+
For more information on Blockly styles please visit the [themes documentation](/guides/configure/web/appearance/themes#category-style).
4242

4343
### Add some CSS
4444

0 commit comments

Comments
 (0)