> 🤖 This PR was modified by Coder Agents on behalf of Jake Howell.
Ports the GitHub Markdown alert transformer and styling from
`coder/coder.com` into the Next.js `offlinedocs` app so note, tip,
important, warning, and caution blocks render consistently.
Moves HTML sanitization into the rehype pipeline so Markdown blockquotes
and supported raw HTML are parsed before sanitization.
63 lines
1.5 KiB
JSON
63 lines
1.5 KiB
JSON
{
|
|
"name": "coder-docs-generator",
|
|
"private": true,
|
|
"scripts": {
|
|
"dev": "pnpm copy-images && next dev",
|
|
"build": "next build",
|
|
"start": "next start",
|
|
"export": "pnpm copy-images && next build",
|
|
"copy-images": "sh ./scripts/copyImages.sh",
|
|
"lint": "pnpm run lint:types",
|
|
"lint:types": "tsc --noEmit",
|
|
"format": "biome format --write .",
|
|
"format:check": "biome format ."
|
|
},
|
|
"dependencies": {
|
|
"@chakra-ui/react": "2.10.10",
|
|
"@emotion/react": "11.14.0",
|
|
"@emotion/styled": "11.14.1",
|
|
"archiver": "8.0.0",
|
|
"framer-motion": "^10.18.0",
|
|
"front-matter": "4.0.2",
|
|
"hast-util-whitespace": "3.0.0",
|
|
"lodash": "4.18.1",
|
|
"next": "15.5.23",
|
|
"react": "18.3.1",
|
|
"react-dom": "18.3.1",
|
|
"react-icons": "5.7.0",
|
|
"react-markdown": "10.1.0",
|
|
"rehype-raw": "7.0.0",
|
|
"rehype-sanitize": "6.0.0",
|
|
"remark-gfm": "4.0.1",
|
|
"unist-util-visit": "5.0.0"
|
|
},
|
|
"devDependencies": {
|
|
"@biomejs/biome": "2.5.10",
|
|
"@types/hast": "3.0.4",
|
|
"@types/lodash": "4.17.25",
|
|
"@types/node": "22.20.1",
|
|
"@types/react": "18.3.12",
|
|
"@types/react-dom": "18.3.1",
|
|
"eslint": "8.57.1",
|
|
"eslint-config-next": "14.2.35",
|
|
"typescript": "6.0.3"
|
|
},
|
|
"engines": {
|
|
"npm": ">=9.0.0 <10.0.0",
|
|
"node": ">=22.0.0 <25.0.0"
|
|
},
|
|
"pnpm": {
|
|
"overrides": {
|
|
"@babel/runtime": "7.26.10",
|
|
"brace-expansion": "1.1.13",
|
|
"minimatch": "5.1.8",
|
|
"glob@>=10": "10.5.0",
|
|
"postcss": "8.5.10",
|
|
"js-yaml": "3.14.2",
|
|
"yaml": "1.10.3",
|
|
"flatted": "3.4.2",
|
|
"mdast-util-to-hast": "13.2.1"
|
|
}
|
|
}
|
|
}
|