Skip to content

Commit 7a51a93

Browse files
authored
Merge pull request #13 from pheralb/next
Word Highlight + Improve Docs + Upgrade dependencies
2 parents d22bd55 + 53c680c commit 7a51a93

File tree

27 files changed

+1127
-878
lines changed

27 files changed

+1127
-878
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ out
2020

2121
# production
2222
/build
23+
dist
2324

2425
# misc
2526
.DS_Store

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232

3333
<div align="center">
3434

35+
![Turborepo Badge](https://img.shields.io/badge/Turbo-FF1E56?logo=turborepo&logoColor=fff&style=flat)
3536
![Next.js Badge](https://img.shields.io/badge/Docs-000?logo=nextdotjs&logoColor=fff&style=flat)
3637
![Tailwind CSS Badge](https://img.shields.io/badge/Styles-06B6D4?logo=tailwindcss&logoColor=fff&style=flat)
3738
![React Badge](https://img.shields.io/badge/Components-61DAFB?logo=react&logoColor=000&style=flat)

apps/website/package.json

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -20,45 +20,45 @@
2020
"class-variance-authority": "0.7.1",
2121
"clsx": "2.1.1",
2222
"cmdk": "1.1.1",
23-
"lucide-react": "0.564.0",
24-
"motion": "12.34.0",
23+
"lucide-react": "0.575.0",
24+
"motion": "12.34.3",
2525
"next": "16.1.6",
2626
"next-themes": "0.4.6",
2727
"react": "19.2.4",
2828
"react-dom": "19.2.4",
2929
"react-hotkeys-hook": "5.2.4",
30-
"shadcn": "3.8.4",
30+
"shadcn": "3.8.5",
3131
"swr": "2.4.0",
32-
"tailwind-merge": "3.4.1",
32+
"tailwind-merge": "3.5.0",
3333
"zod": "4.3.6",
3434
"zustand": "5.0.11"
3535
},
3636
"devDependencies": {
3737
"@code-blocks/eslint": "workspace:*",
3838
"@content-collections/cli": "0.1.9",
39-
"@content-collections/core": "0.14.0",
39+
"@content-collections/core": "0.14.1",
4040
"@content-collections/mdx": "0.2.2",
4141
"@content-collections/next": "0.2.11",
42-
"@shikijs/langs": "3.22.0",
43-
"@shikijs/rehype": "3.22.0",
44-
"@shikijs/themes": "3.22.0",
45-
"@shikijs/transformers": "3.22.0",
46-
"@tailwindcss/postcss": "4.1.18",
42+
"@shikijs/langs": "3.23.0",
43+
"@shikijs/rehype": "3.23.0",
44+
"@shikijs/themes": "3.23.0",
45+
"@shikijs/transformers": "3.23.0",
46+
"@tailwindcss/postcss": "4.2.1",
4747
"@tailwindcss/typography": "0.5.19",
4848
"@types/mdx": "2.0.13",
49-
"@types/node": "22.19.7",
49+
"@types/node": "22.19.11",
5050
"@types/react": "19.2.14",
5151
"@types/react-dom": "19.2.3",
5252
"chalk": "5.6.2",
53-
"eslint": "9.39.2",
53+
"eslint": "9.39.3",
5454
"github-slugger": "2.0.0",
5555
"react-docgen-typescript": "2.4.0",
5656
"rehype-autolink-headings": "7.1.0",
5757
"rehype-slug": "6.0.0",
5858
"remark-gfm": "4.0.1",
59-
"shiki": "3.22.0",
59+
"shiki": "3.23.0",
6060
"sugar-high": "0.9.5",
61-
"tailwindcss": "4.1.18",
61+
"tailwindcss": "4.2.1",
6262
"tsx": "4.21.0",
6363
"tw-animate-css": "1.4.0",
6464
"typescript": "5.9.3",

apps/website/src/app/api/docs/[folder]/[...slug]/route.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
1+
import type { NextRequest } from "next/server";
2+
13
import { getDocument } from "@/utils/docs";
2-
import { NextRequest, NextResponse } from "next/server";
4+
import { NextResponse } from "next/server";
35

46
interface ApiDocsPageProps {
57
params: Promise<{ folder: string; slug: string[] }>;
68
}
79

810
export async function GET(request: NextRequest, { params }: ApiDocsPageProps) {
911
const { folder, slug } = await params;
10-
console.log('folder:', folder, 'slug:', slug);
1112
const document = slug.join("/");
1213
const data = getDocument({
1314
folder,

apps/website/src/components/code-block/code-block.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ const CodeBlockContent = ({
9393
<div
9494
className={cn(
9595
"max-h-96 overflow-y-auto",
96-
"bg-neutral-50 dark:bg-neutral-900",
96+
"bg-white dark:bg-neutral-900",
9797
"rounded-lg font-mono text-sm leading-5 whitespace-pre",
9898
className,
9999
)}

apps/website/src/components/docs/component-preview.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import type { ComponentProps, ReactNode } from "react";
2-
import type { RegistryComponent } from "@/components/registry/types";
2+
import type { RegistryComponent } from "@/types/registry";
33

44
import { Suspense } from "react";
55
import { createElement, useMemo } from "react";

apps/website/src/components/docs/doc-card.tsx

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,7 @@
11
import { getDocument } from "@/utils/docs";
22

3-
import {
4-
FileIcon,
5-
ArrowUpRightIcon,
6-
ChevronRightIcon,
7-
CornerDownRightIcon,
8-
} from "lucide-react";
93
import { ExternalLink } from "@/components/ui/external-link";
4+
import { FileIcon, ChevronRightIcon, CornerDownRightIcon } from "lucide-react";
105

116
interface DocCardProps {
127
document: string;
@@ -19,7 +14,7 @@ const DocCard = ({ document, folder, anchor }: DocCardProps) => {
1914
return (
2015
<ExternalLink
2116
href={`/docs/${folder}/${document}${anchor ? `#${anchor}` : ""}`}
22-
className="not-prose relative"
17+
className="not-prose"
2318
>
2419
<div className="rounded-lg border border-neutral-200 bg-neutral-200/40 p-3 transition-colors duration-200 ease-in-out hover:border-neutral-300 hover:bg-neutral-200 dark:border-neutral-800 dark:bg-neutral-800/30 dark:hover:border-neutral-700 hover:dark:bg-neutral-800">
2520
<div className="flex items-center space-x-2">
@@ -45,11 +40,6 @@ const DocCard = ({ document, folder, anchor }: DocCardProps) => {
4540
<p className="truncate">{documentData?.description}</p>
4641
</div>
4742
</div>
48-
<ArrowUpRightIcon
49-
size={14}
50-
strokeWidth={1.5}
51-
className="absolute top-2 right-2 text-neutral-600 dark:text-neutral-400"
52-
/>
5343
</ExternalLink>
5444
);
5545
};

apps/website/src/components/docs/doc-options.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,15 +71,15 @@ const DocOptions = ({ content, folder, file }: DocOptionsProps) => {
7171
<DropdownMenuItem>
7272
<ExternalLink
7373
href={`${pathname}.mdx`}
74-
className="flex items-center space-x-2"
74+
className="flex items-center space-x-2 w-full"
7575
>
7676
<span>View as Markdown</span>
7777
<ArrowUpRightIcon size={14} />
7878
</ExternalLink>
7979
</DropdownMenuItem>
8080
<DropdownMenuItem>
8181
<ExternalLink
82-
className="flex items-center space-x-2"
82+
className="flex items-center space-x-2 w-full"
8383
href={`${globals.githubUrl}/blob/main/apps/website/src/docs/${folder}/${file}`}
8484
>
8585
<span>Edit on GitHub</span>

apps/website/src/components/docs/show-source.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import type { ComponentProps, ReactNode } from "react";
2-
import type { RegistryComponent } from "@/components/registry/types";
2+
import type { RegistryComponent } from "@/types/registry";
33

44
interface ShowSourceProps extends ComponentProps<"div"> {
55
component: RegistryComponent["title"];

0 commit comments

Comments
 (0)