Skip to content

Commit dd6556c

Browse files
committed
chore: update some docs deps
1 parent f7a9f97 commit dd6556c

File tree

6 files changed

+469
-569
lines changed

6 files changed

+469
-569
lines changed

docs/app/data/subnavSchema.generated.json

Lines changed: 1 addition & 323 deletions
Large diffs are not rendered by default.

docs/app/helpers/links.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
11
import { FlattenedNavigation } from './navigation'
22

33
const BASE_URL =
4-
'https://github.com/pmndrs/react-spring/tree/main/docs/app/routes/docs/'
4+
'https://github.com/pmndrs/react-spring/tree/main/docs/app/routes'
55

66
export const getDocFilePathToGithub = (item?: FlattenedNavigation): string => {
77
if (!item) {
88
return BASE_URL
99
}
1010

11-
let filePath = item.href.split('/docs/')[1]
11+
let filePath = item.href.split('/docs/')[1].split('/').join('.')
1212

1313
if (!filePath) {
14-
filePath = 'index'
14+
filePath = '_index'
1515
}
1616

1717
if (item.hasChildren) {
18-
filePath = `${filePath}/index`
18+
filePath = `${filePath}._index`
1919
}
2020

21-
return `${BASE_URL}${filePath}.mdx`
21+
return `${BASE_URL}/docs.${filePath}.mdx`
2222
}

docs/package.json

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -31,31 +31,31 @@
3131
"@remix-run/react": "2.9.2",
3232
"@remix-run/serve": "2.9.2",
3333
"@remix-run/server-runtime": "2.9.2",
34-
"@supabase/supabase-js": "2.39.3",
35-
"@vanilla-extract/css": "1.15.1",
36-
"@vanilla-extract/dynamic": "2.1.0",
37-
"@vanilla-extract/recipes": "0.5.2",
38-
"@vercel/analytics": "1.2.2",
39-
"@vercel/remix": "2.9.2-patch.2",
34+
"@supabase/supabase-js": "2.43.4",
35+
"@vanilla-extract/css": "1.15.2",
36+
"@vanilla-extract/dynamic": "2.1.1",
37+
"@vanilla-extract/recipes": "0.5.3",
38+
"@vercel/analytics": "1.3.1",
39+
"@vercel/remix": "2.9.2",
4040
"clsx": "2.1.1",
4141
"cookie": "0.6.0",
42-
"isbot": "4",
42+
"isbot": "5.1.7",
4343
"phosphor-react": "1.4.1",
4444
"react": "18.2.0",
4545
"react-dom": "18.2.0",
4646
"react-select": "5.8.0",
47-
"zod": "3.21.4"
47+
"zod": "3.23.8"
4848
},
4949
"devDependencies": {
5050
"@mdx-js/rollup": "3.0.1",
5151
"@remix-run/dev": "2.9.2",
52-
"@vanilla-extract/vite-plugin": "4.0.9",
53-
"chokidar": "3.5.3",
52+
"@vanilla-extract/vite-plugin": "4.0.10",
53+
"chokidar": "3.6.0",
5454
"concurrently": "8.2.2",
55-
"esbuild": "0.20.2",
55+
"esbuild": "0.21.4",
5656
"esbuild-register": "3.5.0",
5757
"gray-matter": "4.0.3",
58-
"hast-util-to-html": "7.1.3",
58+
"hast-util-to-html": "9.0.1",
5959
"parse-numeric-range": "1.3.0",
6060
"refractor": "4.8.1",
6161
"rehype-autolink-headings": "7.1.0",
@@ -68,6 +68,6 @@
6868
"unified": "11.0.4",
6969
"unist-util-visit": "5.0.0",
7070
"vite": "5.2.11",
71-
"vite-tsconfig-paths": "4.2.1"
71+
"vite-tsconfig-paths": "4.3.2"
7272
}
7373
}

docs/scripts/mdx/rehype-highlight-line.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Credit to https://ped.ro/writing/code-blocks-but-better
33
*/
44

5-
import hastToHtml from 'hast-util-to-html'
5+
import { toHtml } from 'hast-util-to-html'
66
import { unified } from 'unified'
77
import parse from 'rehype-parse'
88

@@ -96,7 +96,7 @@ const MULTILINE_TOKEN_SPAN = /<span class="token ([^"]+)">[^<]*\n[^<]*<\/span>/g
9696

9797
const applyMultilineFix = function (ast) {
9898
// AST to HTML
99-
let html = hastToHtml(ast)
99+
let html = toHtml(ast)
100100

101101
// Fix JSX issue
102102
html = html.replace(MULTILINE_TOKEN_SPAN, (match, token) =>

docs/scripts/mdx/rehype-highlight-word.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22
* Credit to https://ped.ro/writing/code-blocks-but-better
33
*/
44

5-
import hastToHtml from 'hast-util-to-html'
5+
import { toHtml } from 'hast-util-to-html'
66
import { unified } from 'unified'
77
import parse from 'rehype-parse'
88

99
const CALLOUT = /__(.*?)__/g
1010

1111
export default function (code) {
12-
const html = hastToHtml(code)
12+
const html = toHtml(code)
1313
const result = html.replace(
1414
CALLOUT,
1515
(_, text) => `<span class="highlight-word">${text}</span>`

0 commit comments

Comments
 (0)