Skip to content

Commit 07e194c

Browse files
committed
chore(deps): adapt to astro v7
1 parent b3b264a commit 07e194c

2 files changed

Lines changed: 13 additions & 8 deletions

File tree

docs/astro.config.mjs

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { unified } from '@astrojs/markdown-remark'
12
import starlight from '@astrojs/starlight'
23
import { llmsPlugin } from '@hugomrdias/docs/starlight-llms'
34
import { docsPlugin } from '@hugomrdias/docs/starlight-typedoc'
@@ -22,15 +23,18 @@ export default defineConfig({
2223
'/developer-guides/devnet/': '/resources/devnet/',
2324
},
2425
markdown: {
25-
rehypePlugins: [
26-
[
27-
rehypeExternalLinks,
28-
{
29-
target: '_blank',
30-
},
26+
// rehype-external-links attaches to the unified processor Starlight runs.
27+
processor: unified({
28+
gfm: true,
29+
rehypePlugins: [
30+
[
31+
rehypeExternalLinks,
32+
{
33+
target: '_blank',
34+
},
35+
],
3136
],
32-
],
33-
gfm: true,
37+
}),
3438
},
3539
integrations: [
3640
mermaid({

docs/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
"wagmi": "catalog:"
2222
},
2323
"devDependencies": {
24+
"@astrojs/markdown-remark": "7.2.1",
2425
"@astrojs/starlight": "0.41.3",
2526
"@hugomrdias/docs": "0.2.0",
2627
"@types/react": "catalog:",

0 commit comments

Comments
 (0)