Skip to content

Commit 058c1aa

Browse files
authored
Merge pull request #14 from pheralb/next
Update docs + Improve Prerequisites
2 parents 7a51a93 + 682f2dc commit 058c1aa

File tree

5 files changed

+137
-85
lines changed

5 files changed

+137
-85
lines changed

.agents/react-doctor/AGENTS.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# React Doctor
2+
3+
Run after making React changes to catch issues early. Use when reviewing code, finishing a feature, or fixing bugs in a React project.
4+
5+
Scans your React codebase for security, performance, correctness, and architecture issues. Outputs a 0-100 score with actionable diagnostics.
6+
7+
## Usage
8+
9+
```bash
10+
npx -y react-doctor@latest . --verbose --diff
11+
```
12+
13+
## Workflow
14+
15+
Run after making changes to catch issues early. Fix errors first, then re-run to verify the score improved.

.agents/react-doctor/SKILL.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
name: react-doctor
3+
description: Run after making React changes to catch issues early. Use when reviewing code, finishing a feature, or fixing bugs in a React project.
4+
version: 1.0.0
5+
---
6+
7+
# React Doctor
8+
9+
Scans your React codebase for security, performance, correctness, and architecture issues. Outputs a 0-100 score with actionable diagnostics.
10+
11+
## Usage
12+
13+
```bash
14+
npx -y react-doctor@latest . --verbose --diff
15+
```
16+
17+
## Workflow
18+
19+
Run after making changes to catch issues early. Fix errors first, then re-run to verify the score improved.

apps/website/package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,14 @@
3939
"@content-collections/core": "0.14.1",
4040
"@content-collections/mdx": "0.2.2",
4141
"@content-collections/next": "0.2.11",
42-
"@shikijs/langs": "3.23.0",
43-
"@shikijs/rehype": "3.23.0",
44-
"@shikijs/themes": "3.23.0",
45-
"@shikijs/transformers": "3.23.0",
42+
"@shikijs/langs": "4.0.0",
43+
"@shikijs/rehype": "4.0.0",
44+
"@shikijs/themes": "4.0.0",
45+
"@shikijs/transformers": "4.0.0",
4646
"@tailwindcss/postcss": "4.2.1",
4747
"@tailwindcss/typography": "0.5.19",
4848
"@types/mdx": "2.0.13",
49-
"@types/node": "22.19.11",
49+
"@types/node": "22.19.13",
5050
"@types/react": "19.2.14",
5151
"@types/react-dom": "19.2.3",
5252
"chalk": "5.6.2",
@@ -56,7 +56,7 @@
5656
"rehype-autolink-headings": "7.1.0",
5757
"rehype-slug": "6.0.0",
5858
"remark-gfm": "4.0.1",
59-
"shiki": "3.23.0",
59+
"shiki": "4.0.0",
6060
"sugar-high": "0.9.5",
6161
"tailwindcss": "4.2.1",
6262
"tsx": "4.21.0",

apps/website/src/docs/getting-started/prerequisites.mdx

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,11 @@ description: Libraries required to create custom Code Block component.
44
category: [Getting-Started]
55
---
66

7-
> [**Code-Blocks**](https://code-blocks.pheralb.dev) separates components and utilities. You can use them independently.
7+
To create your own custom Code Block component, make sure you have the following prerequisites:
8+
9+
- [Node.js v20](https://nodejs.org/en/download/current) or higher.
10+
- [Typescript v5](https://www.typescriptlang.org/) or higher.
11+
- If you plan to use the [shadcn/ui CLI](https://ui.shadcn.com/docs/cli), make sure you configure the [`components.json`](https://ui.shadcn.com/docs/components-json) file first.
812

913
## Styling
1014

@@ -16,8 +20,6 @@ For some colors, we use [**neutral** theme](https://tailwindcss.com/docs/colors)
1620

1721
## Components
1822

19-
> If you're using [shadcn/ui](https://ui.shadcn.com), you can skip this section as the required dependencies are already included.
20-
2123
1. Create a new React app:
2224

2325
<CreateReactApp />
@@ -60,11 +62,7 @@ You'll need to install [@base-ui/react](https://base-ui.com/) to use the Blocks
6062

6163
1. Install the package:
6264

63-
<CodeBlockSelectPkg
64-
type="install"
65-
title="Base UI"
66-
command="@base-ui/react"
67-
/>
65+
<CodeBlockSelectPkg type="install" title="Base UI" command="@base-ui/react" />
6866

6967
2. Add `root` class to global `<body>` tag:
7068

0 commit comments

Comments
 (0)