Skip to content

Commit c74fe28

Browse files
committed
Upgrade to nextjs 16, tailwind v4, prose ui latest
1 parent 1c7567b commit c74fe28

21 files changed

+1700
-2083
lines changed

content-collections.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,15 @@ import { extractMetadata } from '@/lib/extract-metadata'
22
import { defineCollection, defineConfig } from '@content-collections/core'
33
import { compileMDX } from '@content-collections/mdx'
44
import { remarkPlugins } from '@prose-ui/core'
5+
import { z } from 'zod'
56

67
const pages = defineCollection({
78
name: 'pages',
89
directory: 'content/docs',
910
include: '**/*.mdx',
10-
schema: (z) => ({
11-
title: z.optional(z.string()),
11+
schema: z.object({
12+
title: z.string().optional(),
13+
content: z.string(),
1214
}),
1315
transform: async (page, ctx) => {
1416
const { toc, title } = await extractMetadata(page.content)

content/docs/index.mdx

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,22 @@ Hello, universe! This is an open-source Prose UI starter template for documentat
66

77
This template uses Prose UI components and remark plugins to render MDX content. For example, the image below is rendered using the `Image` and `Frame` components, with a caption.
88

9+
10+
11+
912
<Frame
1013
align="center"
1114
caption="Juno Captures Moon Shadow on Jupiter. Credits: NASA/JPL-Caltech/SwRI/MSSS, Thomas Thomopoulos © CC BY"
1215
>
1316
<Image src="/img/jupiter.jpg" width={480} alt="Juno Captures Moon Shadow on Jupiter" />
1417
</Frame>
1518

19+
Mathematical formulas can also be rendered using LaTeX syntax. Here's a block formula example:
20+
21+
$$
22+
i\hbar\frac{\partial}{\partial t}\Psi(\mathbf{r},t) = \hat{H}\Psi(\mathbf{r},t) = \left[-\frac{\hbar^2}{2m}\nabla^2 + V(\mathbf{r},t)\right]\Psi(\mathbf{r},t)
23+
$$
24+
1625
## Tech stack
1726

1827
This template uses the following technologies:

package.json

Lines changed: 29 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -9,40 +9,42 @@
99
"lint": "next lint"
1010
},
1111
"dependencies": {
12-
"@icons-pack/react-simple-icons": "^10.2.0",
12+
"@icons-pack/react-simple-icons": "^13.8.0",
1313
"@radix-ui/colors": "^3.0.0",
14-
"@radix-ui/react-dialog": "^1.1.2",
15-
"@radix-ui/react-scroll-area": "^1.2.1",
16-
"@radix-ui/react-slot": "^1.1.0",
17-
"@radix-ui/react-visually-hidden": "^1.1.0",
14+
"@radix-ui/react-dialog": "^1.1.15",
15+
"@radix-ui/react-scroll-area": "^1.2.10",
16+
"@radix-ui/react-slot": "^1.2.3",
17+
"@radix-ui/react-visually-hidden": "^1.2.3",
1818
"class-variance-authority": "^0.7.1",
19-
"framer-motion": "^12.0.0-alpha.1",
20-
"lucide-react": "^0.468.0",
21-
"next": "15.1.0",
22-
"next-themes": "^0.4.4",
23-
"react": "19.0.0",
24-
"react-dom": "19.0.0",
25-
"slugify": "^1.6.6"
19+
"framer-motion": "^12.23.24",
20+
"lucide-react": "^0.552.0",
21+
"next": "16.0.1",
22+
"next-themes": "^0.4.6",
23+
"react": "19.2.0",
24+
"react-dom": "19.2.0",
25+
"shiki": "^3.14.0",
26+
"slugify": "^1.6.6",
27+
"zod": "^4.1.12"
2628
},
2729
"devDependencies": {
28-
"@content-collections/core": "^0.7.3",
29-
"@content-collections/mdx": "^0.2.0",
30-
"@content-collections/next": "^0.2.4",
31-
"@prose-ui/core": "1.0.3",
32-
"@prose-ui/next": "1.0.3",
30+
"@content-collections/core": "^0.12.0",
31+
"@content-collections/mdx": "^0.2.2",
32+
"@content-collections/next": "^0.2.9",
33+
"@prose-ui/core": "1.0.7",
34+
"@prose-ui/next": "1.0.7",
35+
"@tailwindcss/postcss": "^4.1.16",
3336
"@types/mdast": "^4.0.4",
34-
"@types/node": "^22.10.1",
35-
"@types/react": "^19.0.1",
36-
"@types/react-dom": "^19.0.2",
37-
"acorn": "^8.14.0",
37+
"@types/node": "^24.10.0",
38+
"@types/react": "^19.2.2",
39+
"@types/react-dom": "^19.2.2",
40+
"acorn": "^8.15.0",
3841
"clsx": "^2.1.1",
3942
"mdast-util-to-string": "^4.0.0",
40-
"postcss": "^8.4.49",
43+
"postcss": "^8.5.6",
4144
"remark": "^15.0.1",
42-
"remark-mdx": "^3.1.0",
43-
"tailwind-merge": "^2.5.5",
44-
"tailwindcss": "^3.4.16",
45-
"tailwindcss-animate": "^1.0.7",
46-
"typescript": "^5.7.2"
45+
"remark-mdx": "^3.1.1",
46+
"tailwind-merge": "^3.3.1",
47+
"tailwindcss": "^4.1.16",
48+
"typescript": "^5.9.3"
4749
}
4850
}

0 commit comments

Comments
 (0)