fix: updates documentation link prefixes

This commit is contained in:
Mark Mankarious 2023-08-25 18:22:45 +01:00
parent a279729dc6
commit 61e03f3367
3 changed files with 4 additions and 4 deletions

View file

@ -2,7 +2,7 @@
| Name | Type | Description | Default |
| --- | --- | --- | --- |
| `initialData` | [`object`](docs/api/initialData) | The initial scene that Isoflow should render. If `undefined`, isoflow loads a blank scene. | `undefined` |
| `initialData` | [`object`](/docs/api/initialData) | The initial scene that Isoflow should render. If `undefined`, isoflow loads a blank scene. | `undefined` |
| `width` | `number` \| `string` | Width of the Isoflow renderer as a CSS value. | `100%` |
| `height` | `number` \| `string` | Height of the Isoflow renderer as a CSS value. | `100%` |
| `onSceneUpdate` | `function` | A callback that is triggered whenever an item is added, updated or removed from the scene. The callback is called with the updated scene as the first argument. | `undefined` |

View file

@ -23,7 +23,7 @@ The `initialData` object contains the following properties:
**Notes on icons:**
- `category` is an optional property that can be used to group icons together in the icon picker. All icons with the same `category` will be grouped together.
- For a list of standard icon `id`s, see [Isopacks](isopacks#icon-ids).
- For a list of standard icon `id`s, see [Isopacks](/docs/isopacks#icon-ids).
## `Node`
@ -92,7 +92,7 @@ If the reference is another `node`, the anchor's position is dynamic and will be
## `initialData` example
Open this example in [CodeSandbox](https://codesandbox.io/p/sandbox/github/markmanx/isoflow/tree/main).
**Note:** This example assumes the `networkingIsopack` is imported from `isoflow/dist/isopacks`. See [Loading Isopacks](isopacks).
**Note:** This example assumes the `networkingIsopack` is imported from `isoflow/dist/isopacks`. See [Loading Isopacks](/docs/isopacks).
```js
{

View file

@ -23,7 +23,7 @@ const App = () => {
export default App;
```
**Note**: this will display a blank Isoflow editor, without icons (which is not very useful!). To initialise the editor with an iconset, see [Loading Isopacks](./isopacks).
**Note**: this will display a blank Isoflow editor, without icons (which is not very useful!). To initialise the editor with an iconset, see [Loading Isopacks](/docs/isopacks).
### Dimensions of Isoflow