Skip to content

Commit 10faa76

Browse files
committed
Fix dangling links in docs
[ci skip]
1 parent 1ec8cf7 commit 10faa76

4 files changed

Lines changed: 7 additions & 6 deletions

File tree

.github/workflows/build.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -260,12 +260,14 @@ jobs:
260260
EXTRA_NAV_TEXT=Unstable \
261261
EXTRA_NAV_LINK="$UNSTABLE_DOCS_URL" \
262262
SITEMAP_HOSTNAME="$STABLE_DOCS_URL" \
263+
JSR_REF_VERSION=stable \
263264
bun run build
264265
else
265266
bun add -Df --no-cache @fedify/fedify@dev
266267
EXTRA_NAV_TEXT=Stable \
267268
EXTRA_NAV_LINK="$STABLE_DOCS_URL" \
268269
SITEMAP_HOSTNAME="$UNSTABLE_DOCS_URL" \
270+
JSR_REF_VERSION=unstable \
269271
bun run build
270272
fi
271273
env:

docs/.vitepress/config.mts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import { withMermaid } from "vitepress-plugin-mermaid";
1414

1515
const jsrRefPlugin = await jsrRef({
1616
package: "@fedify/fedify",
17-
version: "unstable",
17+
version: process.env.JSR_REF_VERSION ?? "unstable",
1818
cachePath: ".jsr-cache.json",
1919
});
2020

docs/manual/inbox.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ collection objects. In such cases, you may need to recursively resolve the
121121
collection objects to determine the recipients of the activity:
122122

123123
~~~~ typescript twoslash
124-
import {
124+
import {
125125
Collection,
126126
Create,
127127
type InboxListenerSetters,
@@ -431,8 +431,7 @@ federation.setInboxListeners("/{identifier}/inbox", "/inbox")
431431
> probably won't trust the forwarded activity.[^2]
432432
>
433433
> If you don't want to forward unsigned activities, you can turn on
434-
> the `~ForwardActivityOptions.skipIfUnsigned` option in
435-
> the `~InboxContext.forwardActivity()` method:
434+
> the `skipIfUnsigned` option in the `~InboxContext.forwardActivity()` method:
436435
>
437436
> ~~~~ typescript twoslash
438437
> import { type InboxContext } from "@fedify/fedify";
@@ -447,7 +446,7 @@ federation.setInboxListeners("/{identifier}/inbox", "/inbox")
447446
448447
> [!NOTE]
449448
> The `~InboxContext.forwardActivity()` method does not use a [two-stage
450-
> delivery process](./send.md#optimizing-activity-delivery-for-large-audiences),
449+
> delivery process](./send.md#optimizing-activity-delivery-for-large-audiences),
451450
> because `~InboxContext.forwardActivity()` method is invoked inside inbox
452451
> listeners, which are usually running in the background task worker.
453452

docs/manual/mq.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ Handle the `~MessageQueueEnqueueOptions.delay` option if provided in
256256
`MessageQueueEnqueueOptions`. Ensure the method is non-blocking
257257
(use async operations where necessary).
258258

259-
### Implement `~MessageQueue.enqueueMany()` method (optional)
259+
### Implement `~MessageQueue.enqueueMany` method (optional)
260260

261261
*This API is available since Fedify 1.5.0.*
262262

0 commit comments

Comments
 (0)