Skip to content

Commit 391a7d0

Browse files
authored
Auto-expand/collapse nav items + some other improvements (#992)
* Update dependencies + colocate MDX plugins “MDX plugins” meaning rehype and remark plugins; move them to the `website` package and convert them to TypeScript * Callout style tweaks * Replace check emojis by GDS (phosphor) check icon * Auto-expand/collapse nav items * Run `pnpm check:fix`
1 parent b890e07 commit 391a7d0

File tree

268 files changed

+1517
-2000
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

268 files changed

+1517
-2000
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ ENV ENVIRONMENT=$ENVIRONMENT
77
ENV ORIGIN=$ORIGIN
88

99
ENV PNPM_HOME="/usr/bin"
10-
ENV NODE_OPTIONS="--max_old_space_size=8192"
10+
ENV NODE_OPTIONS="--max-old-space-size=8192"
1111

1212
RUN apk add --no-cache git
1313
RUN npm install -g corepack@latest

package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
"name": "graph-docs",
33
"private": true,
44
"version": "1.0.0",
5-
"packageManager": "[email protected].1",
5+
"packageManager": "[email protected].3",
66
"scripts": {
77
"dev": "turbo run dev",
8-
"build": "NODE_OPTIONS='--max_old_space_size=8192' turbo run build",
8+
"build": "NODE_OPTIONS='--max-old-space-size=8192' turbo run build",
99
"prebuild:ci": "turbo run prebuild:ci",
1010
"check": "pnpm typecheck && pnpm lint && pnpm prettier:check",
1111
"check:fix": "pnpm lint:fix; pnpm prettier",
@@ -21,11 +21,11 @@
2121
},
2222
"devDependencies": {
2323
"@edgeandnode/eslint-config": "^2.0.3",
24-
"@types/node": "^22.15.31",
24+
"@types/node": "^22.15.33",
2525
"eslint": "^8.57.1",
26-
"eslint-plugin-mdx": "^3.4.2",
27-
"prettier": "^3.5.3",
28-
"prettier-plugin-tailwindcss": "^0.6.12",
26+
"eslint-plugin-mdx": "^3.5.0",
27+
"prettier": "^3.6.1",
28+
"prettier-plugin-tailwindcss": "^0.6.13",
2929
"remark-frontmatter": "^5.0.0",
3030
"remark-lint-first-heading-level": "^4.0.1",
3131
"remark-lint-heading-increment": "^4.0.1",

packages/og-image/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@
1616
"yoga-wasm-web": "^0.3.3"
1717
},
1818
"devDependencies": {
19-
"@cloudflare/workers-types": "^4.20250610.0",
19+
"@cloudflare/workers-types": "^4.20250620.0",
2020
"@types/react": "^18.3.23",
2121
"jest-image-snapshot": "^6.5.1",
22-
"tsx": "^4.19.4",
22+
"tsx": "^4.20.3",
2323
"typescript": "^5.8.3",
2424
"vitest": "^2.1.9",
25-
"wrangler": "^3.114.9"
25+
"wrangler": "^3.114.10"
2626
},
2727
"sideEffects": false
2828
}

packages/og-image/scripts/copy-wasm.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
import { readFile, writeFile } from 'node:fs/promises'
22
import { createRequire } from 'node:module'
3-
import { join } from 'node:path'
3+
import path from 'node:path'
44

55
const require = createRequire(import.meta.url)
66
const __dirname = new URL('.', import.meta.url).pathname
77

88
await writeFile(
9-
join(__dirname, '../vendor/index_bg.wasm'),
9+
path.join(__dirname, '../vendor/index_bg.wasm'),
1010
await readFile(require.resolve('@resvg/resvg-wasm/index_bg.wasm')),
1111
)
1212

packages/rehype-unwrap-images/package.json

Lines changed: 0 additions & 15 deletions
This file was deleted.

packages/remark-callouts/package.json

Lines changed: 0 additions & 12 deletions
This file was deleted.

0 commit comments

Comments
 (0)