You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
chore(docs): change path from /js/reference/ to /reference/
Update docs build script to reflect this, and fix some mdx generation errors
Add .gitignore to docs/reference/ to keep generated md/mdx out of version control
Add Docusaurus redirect config for /reference/js/ -> /reference/
Copy file name to clipboardExpand all lines: packages/docs/README.md
+13-6Lines changed: 13 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,6 @@
2
2
3
3
This website is built using [Docusaurus](https://docusaurus.io/), a modern static website generator.
4
4
5
-
6
5
## Installation
7
6
8
7
Run `npm install` at the root of the blockly repo, then all other commands from the `packages/docs` directory.
@@ -12,7 +11,7 @@ npm install
12
11
cd packages/docs
13
12
```
14
13
15
-
## Local Development
14
+
## Local development
16
15
17
16
```bash
18
17
npm start
@@ -28,14 +27,22 @@ npm run build
28
27
29
28
This command generates static content into the `build` directory and can be served using any static contents hosting service.
30
29
31
-
## Test your production build locally
30
+
## Test your build locally
32
31
33
32
```bash
34
33
npm run serve
35
34
```
36
35
37
-
The build folder is now served at http://localhost:3000/.
36
+
The build folder is now served at http://localhost:3000/.
37
+
38
+
## Generating reference docs
39
+
40
+
The API reference pages are auto-generated from the Blockly TypeScript source using `@microsoft/api-extractor` and `@microsoft/api-documenter`. This is a separate step from the Docusaurus build and must be run from the `packages/blockly` directory:
38
41
39
-
## Deployment
42
+
```bash
43
+
cd packages/blockly
44
+
npm run build && npm run package
45
+
npm run docs
46
+
```
40
47
41
-
TODO
48
+
This generates MDX files into `packages/docs/docs/reference/`. These files are gitignored, so this needs to be run locally (and / or in CI).
Copy file name to clipboardExpand all lines: packages/docs/docs/codelabs/custom-renderer/understand-connection-shapes.mdx
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,7 +15,7 @@ The outline of the block is a single [SVG path](https://developer.mozilla.org/en
15
15
16
16
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.
17
17
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.
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.
0 commit comments