Fixed bunch of broken links (#471)

* fixed local links to documentation in README.md

* fixed links to core package
This commit is contained in:
Soufiane Ghzal 2021-12-29 07:39:08 +01:00 committed by GitHub
parent 59e5a446c9
commit 23ad10d856
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 6 deletions

View file

@ -5,7 +5,7 @@ import styled from 'stitches.config'
export function TitleLinks() { export function TitleLinks() {
return ( return (
<TitleLinksContainer> <TitleLinksContainer>
<a href="https://github.com/tldraw/core">@tldraw/core</a> <a href="https://github.com/tldraw/tldraw/tree/main/packages/core">@tldraw/core</a>
</TitleLinksContainer> </TitleLinksContainer>
) )
} }

View file

@ -101,7 +101,7 @@ function App() {
} }
``` ```
**Tip:** The pages and pageStates in tldraw are objects containing `TLPage` and `TLPageState` objects from the [@tldraw/core](https://github.com/tldraw/core) library. **Tip:** The pages and pageStates in tldraw are objects containing `TLPage` and `TLPageState` objects from the [@tldraw/core](/packages/core) library.
**Tip:** The `assets` in tldraw is a table of `TDAssets` (images and videos). **Tip:** The `assets` in tldraw is a table of `TDAssets` (images and videos).

View file

@ -76,11 +76,11 @@ function App() {
} }
``` ```
Internally, the `<Tldraw/>` component's user interface uses this API to make changes to the component's state. See the `tldrawApp` section of the [documentation](packages/tldraw/guides/documentation.md) for more on this API. Internally, the `<Tldraw/>` component's user interface uses this API to make changes to the component's state. See the `tldrawApp` section of the [documentation](/guides/documentation.md) for more on this API.
### Responding to Changes ### Responding to Changes
You can respond to changes and user actions using the `onChange` callback. For more specific changes, you can also use the `onPatch`, `onCommand`, or `onPersist` callbacks. See the [documentation](packages/tldraw/guides/documentation.md) for more. You can respond to changes and user actions using the `onChange` callback. For more specific changes, you can also use the `onPatch`, `onCommand`, or `onPersist` callbacks. See the [documentation](/guides/documentation.md) for more.
```tsx ```tsx
import { Tldraw, TldrawApp } from '@tldraw/tldraw' import { Tldraw, TldrawApp } from '@tldraw/tldraw'
@ -96,7 +96,7 @@ function App() {
## Documentation ## Documentation
See the project's [documentation](packages/tldraw/guides/documentation.md). See the project's [documentation](/guides/documentation.md).
## Contribution ## Contribution
@ -104,7 +104,7 @@ See the [contributing guide](/CONTRIBUTING.md).
## Development ## Development
See the [development guide](packages/tldraw/guides/development.md). See the [development guide](/guides/development.md).
## Example ## Example