Skip to content

Commit 45cdb1b

Browse files
committed
docs: Fix some links
1 parent 1954596 commit 45cdb1b

File tree

3 files changed

+20
-19
lines changed

3 files changed

+20
-19
lines changed

website/blog/2024-06-17-v0.13-nextjs-app-router-expogo-native.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ export default function RootLayout({ children }) {
109109
```
110110

111111
<p style={{ textAlign: 'center' }}>
112-
<Link className="button button--primary" to="../guides/ssr#nextjs">Full NextJS Guide</Link>
112+
<Link className="button button--primary" to="/docs/guides/ssr#nextjs">Full NextJS Guide</Link>
113113
</p>
114114

115115
#### Mutations demo

website/blog/2024-07-13-v0.14-release-announcement.md

Lines changed: 16 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ Action shapes are simplified and more consistent. [#3143](https://github.com/rea
5353
- `action.meta.nm` removed (unused)
5454
- `action.payload` -> `action.response` (for SET_RESPONSE)
5555

56-
### Manager.middleware
56+
### Manager.middleware {#manager-middleware}
5757

5858
Managers can now use a `middleware` property instead of `getMiddleware()` method. [#3164](https://github.com/reactive/data-client/pull/3164)
5959

@@ -137,7 +137,7 @@ export default class LoggingManager implements Manager {
137137

138138
### getDefaultManagers()
139139

140-
[getDefaultManagers()](https://dataclient.io/docs/api/getDefaultManagers) now accepts configuration options. [#3161](https://github.com/reactive/data-client/pull/3161)
140+
[getDefaultManagers()](/docs/api/getDefaultManagers) now accepts configuration options. [#3161](https://github.com/reactive/data-client/pull/3161)
141141

142142
```ts
143143
import { getDefaultManagers } from '@data-client/react';
@@ -161,7 +161,7 @@ const managers = getDefaultManagers({
161161

162162
### NetworkManager Constructor
163163

164-
[NetworkManager](https://dataclient.io/docs/api/NetworkManager) constructor now uses keyword arguments for clarity.
164+
[NetworkManager](/docs/api/NetworkManager) constructor now uses keyword arguments for clarity.
165165

166166
<DiffEditor>
167167

@@ -181,7 +181,7 @@ React 18+ concurrent mode and automatic batching change how we should optimize.
181181

182182
### Immediate Fetching
183183

184-
[NetworkManager](https://dataclient.io/docs/api/NetworkManager) now fetches immediately rather than waiting for idle callbacks. [#3146](https://github.com/reactive/data-client/pull/3146)
184+
[NetworkManager](/docs/api/NetworkManager) now fetches immediately rather than waiting for idle callbacks. [#3146](https://github.com/reactive/data-client/pull/3146)
185185

186186
This results in faster data loading, especially for applications with complex render trees.
187187

@@ -213,7 +213,7 @@ Schema APIs reduce boilerplate for common patterns while enabling more advanced
213213

214214
### Query Joins
215215

216-
[Query](https://dataclient.io/rest/api/Query) can now take [Object Schemas](https://dataclient.io/rest/api/Object), enabling joins across multiple entity types. [#3165](https://github.com/reactive/data-client/pull/3165)
216+
[Query](/rest/api/Query) can now take [Object Schemas](/rest/api/Object), enabling joins across multiple entity types. [#3165](https://github.com/reactive/data-client/pull/3165)
217217

218218
```ts
219219
class Ticker extends Entity {
@@ -240,7 +240,7 @@ const price = useQuery(queryPrice, { product_id: 'BTC-USD' });
240240

241241
### EntityMixin
242242

243-
New [EntityMixin](https://dataclient.io/rest/api/EntityMixin) for composing Entity behavior with existing classes. [#3243](https://github.com/reactive/data-client/pull/3243)
243+
New [EntityMixin](/rest/api/EntityMixin) for composing Entity behavior with existing classes. [#3243](https://github.com/reactive/data-client/pull/3243)
244244

245245
```ts
246246
import { EntityMixin } from '@data-client/rest';
@@ -257,9 +257,9 @@ export class Article {
257257
export class ArticleEntity extends EntityMixin(Article) {}
258258
```
259259

260-
### Entity.pk() Default
260+
### Entity.pk() Default {#entity-pk-default}
261261

262-
[Entity.pk()](https://dataclient.io/rest/api/Entity#pk) now defaults to `this.id`. [#3188](https://github.com/reactive/data-client/pull/3188)
262+
[Entity.pk()](/rest/api/Entity#pk) now defaults to `this.id`. [#3188](https://github.com/reactive/data-client/pull/3188)
263263

264264
<DiffEditor>
265265

@@ -280,15 +280,14 @@ class Todo extends Entity {
280280
id = '';
281281
title = '';
282282
completed = false;
283-
// pk() uses 'id' by default!
284283
}
285284
```
286285

287286
</DiffEditor>
288287

289288
### Dynamic Invalidation
290289

291-
Return `undefined` from [Entity.process()](https://dataclient.io/rest/api/Entity#process) to dynamically [invalidate](https://dataclient.io/docs/concepts/expiry-policy#invalidate-entity) entities based on response data. [#3407](https://github.com/reactive/data-client/pull/3407)
290+
Return `undefined` from [Entity.process()](/rest/api/Entity#process) to dynamically [invalidate](/docs/concepts/expiry-policy#invalidate-entity) entities based on response data. [#3407](https://github.com/reactive/data-client/pull/3407)
292291

293292
```ts
294293
class PriceLevel extends Entity {
@@ -329,7 +328,7 @@ Testing should be simple. New helpers use sensible defaults to eliminate boilerp
329328

330329
### renderDataHook()
331330

332-
New [renderDataHook()](https://dataclient.io/docs/api/renderDataHook) uses the default [DataProvider](https://dataclient.io/docs/api/DataProvider), eliminating `makeRenderDataHook()` boilerplate. [#3238](https://github.com/reactive/data-client/pull/3238)
331+
New [renderDataHook()](/docs/api/renderDataHook) uses the default [DataProvider](/docs/api/DataProvider), eliminating `makeRenderDataHook()` boilerplate. [#3238](https://github.com/reactive/data-client/pull/3238)
333332

334333
```ts
335334
import { renderDataHook } from '@data-client/test';
@@ -354,7 +353,7 @@ Long-running applications accumulate stale data in memory. New garbage collectio
354353

355354
### GCPolicy
356355

357-
[GCPolicy](https://dataclient.io/docs/api/GCPolicy) enables automatic garbage collection of stale data. [#3343](https://github.com/reactive/data-client/pull/3343)
356+
GCPolicy enables automatic garbage collection of stale data. [#3343](https://github.com/reactive/data-client/pull/3343)
358357

359358
```tsx
360359
import { GCPolicy, DataProvider } from '@data-client/react';
@@ -404,7 +403,7 @@ This upgrade requires updating all package versions simultaneously.
404403

405404
### NetworkManager fetches immediately {#networkmanager}
406405

407-
[NetworkManager](https://dataclient.io/docs/api/NetworkManager) now fetches immediately rather than waiting for idle. This improves performance with React 18+. [#3146](https://github.com/reactive/data-client/pull/3146)
406+
[NetworkManager](/docs/api/NetworkManager) now fetches immediately rather than waiting for idle. This improves performance with React 18+. [#3146](https://github.com/reactive/data-client/pull/3146)
408407

409408
To keep the previous behavior, use `IdlingNetworkManager`:
410409

@@ -418,7 +417,7 @@ const managers = getDefaultManagers({
418417

419418
### action.payload -> action.response {#action-response}
420419

421-
For custom [Managers](https://dataclient.io/docs/concepts/managers) handling [SET_RESPONSE](https://dataclient.io/docs/api/Actions#set_response): [#3141](https://github.com/reactive/data-client/pull/3141)
420+
For custom [Managers](/docs/concepts/managers) handling [SET_RESPONSE](/docs/api/Actions#set_response): [#3141](https://github.com/reactive/data-client/pull/3141)
422421

423422
<DiffEditor>
424423

@@ -470,7 +469,7 @@ For custom [Managers](https://dataclient.io/docs/concepts/managers) handling [SE
470469

471470
### fetchAction.payload removed {#fetch-payload}
472471

473-
For custom [Managers](https://dataclient.io/docs/concepts/managers) handling [FETCH](https://dataclient.io/docs/api/Actions#fetch): [#3141](https://github.com/reactive/data-client/pull/3141)
472+
For custom [Managers](/docs/concepts/managers) handling [FETCH](/docs/api/Actions#fetch): [#3141](https://github.com/reactive/data-client/pull/3141)
474473

475474
<DiffEditor>
476475

@@ -610,7 +609,7 @@ interface SchemaSimple {
610609
}
611610
```
612611

613-
We also add `checkLoop()`, which moves some logic in [Entity](https://dataclient.io/rest/api/Entity)
612+
We also add `checkLoop()`, which moves some logic in [Entity](/rest/api/Entity)
614613
to the core normalize algorithm.
615614

616615
```ts
@@ -622,7 +621,7 @@ export interface CheckLoop {
622621

623622
#### Schema.denormalize unvisit()
624623

625-
The `unvisit` argument now takes [schema](https://dataclient.io/rest/api/schema) argument first:
624+
The `unvisit` argument now takes [schema](/rest/api/schema) argument first:
626625

627626
```ts
628627
interface SchemaSimple {

website/docusaurus.config.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ const config: Config = {
2121
trailingSlash: false,
2222
markdown: {
2323
mermaid: true,
24+
hooks: {
25+
onBrokenMarkdownLinks: 'log',
26+
},
2427
},
2528
headTags: [
2629
{
@@ -182,7 +185,6 @@ const config: Config = {
182185
repoUrl: 'https://github.com/reactive/data-client',
183186
},
184187
onBrokenLinks: 'log',
185-
onBrokenMarkdownLinks: 'log',
186188
presets: [
187189
[
188190
'@docusaurus/preset-classic',

0 commit comments

Comments
 (0)