create-react-docs-ui 0.2.0 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README-zh.md +33 -85
- package/README.md +33 -85
- package/package.json +44 -42
- package/template/index.html +13 -15
- package/template/package.json +32 -32
- package/template/public/config/site.en.yaml +177 -155
- package/template/public/config/site.yaml +179 -166
- package/template/public/docs/en/{guide → docs/guide}/configuration.md +195 -149
- package/template/public/docs/en/{guide → docs/guide}/installation.md +2 -2
- package/template/public/docs/en/docs/guide/quick-start.md +96 -0
- package/template/public/docs/en/docs/guide.md +10 -0
- package/template/public/docs/en/docs/test/katex-test.md +258 -0
- package/template/public/docs/en/docs/test/mdx-test.mdx +136 -0
- package/template/public/docs/en/docs/test/test.md +212 -0
- package/template/public/docs/en/docs/test.md +9 -0
- package/template/public/docs/en/docs.md +16 -0
- package/template/public/docs/zh-cn/{guide → docs/guide}/configuration.md +196 -150
- package/template/public/docs/zh-cn/{guide → docs/guide}/installation.md +2 -2
- package/template/public/docs/zh-cn/{guide → docs/guide}/quick-start.md +13 -25
- package/template/public/docs/zh-cn/docs/guide.md +10 -0
- package/template/public/docs/zh-cn/docs/test/katex-test.md +260 -0
- package/template/public/docs/zh-cn/docs/test/mdx-test.mdx +139 -0
- package/template/public/docs/zh-cn/docs/test/test.md +215 -0
- package/template/public/docs/zh-cn/docs/test.md +9 -0
- package/template/public/docs/zh-cn/docs.md +16 -0
- package/template/public/images/yrzx.png +0 -0
- package/template/src/components/Alert.tsx +30 -0
- package/template/src/components/BadgeList.tsx +38 -0
- package/template/src/components/Callout.tsx +20 -0
- package/template/src/components/Feature.tsx +15 -0
- package/template/src/components/MyTip.tsx +19 -0
- package/template/src/components/StepList.tsx +62 -0
- package/template/src/main.tsx +14 -16
- package/template/tsconfig.app.json +24 -26
- package/template/vite-plugin-mdx-components.ts +169 -0
- package/template/vite.config.ts +17 -4
- package/template/public/docs/en/guide/quick-start.md +0 -108
- package/template/public/docs/en/guide.md +0 -10
- package/template/public/docs/zh-cn/guide.md +0 -10
- /package/template/public/docs/en/{guide → docs/guide}/introduction.md +0 -0
- /package/template/public/docs/zh-cn/{guide → docs/guide}/introduction.md +0 -0
|
@@ -0,0 +1,258 @@
|
|
|
1
|
+
# 🧪 KaTeX Full Feature Test
|
|
2
|
+
|
|
3
|
+
> Used to verify that KaTeX correctly loads all extensions (mhchem / physics / mathtools, etc.)
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## ✅ Inline Formulas
|
|
8
|
+
|
|
9
|
+
Einstein's mass-energy equation:
|
|
10
|
+
$E = mc^2$
|
|
11
|
+
|
|
12
|
+
Euler's formula:
|
|
13
|
+
$e^{i\pi} + 1 = 0$
|
|
14
|
+
|
|
15
|
+
Fraction test:
|
|
16
|
+
$\frac{a+b}{c+d}$
|
|
17
|
+
|
|
18
|
+
Root test:
|
|
19
|
+
$\sqrt{2},\ \sqrt[n]{x}$
|
|
20
|
+
|
|
21
|
+
---
|
|
22
|
+
|
|
23
|
+
## ✅ Block Formulas
|
|
24
|
+
|
|
25
|
+
$$
|
|
26
|
+
\int_{-\infty}^{\infty} e^{-x^2}\,dx = \sqrt{\pi}
|
|
27
|
+
$$
|
|
28
|
+
|
|
29
|
+
$$
|
|
30
|
+
\sum_{n=1}^{\infty} \frac{1}{n^2} = \frac{\pi^2}{6}
|
|
31
|
+
$$
|
|
32
|
+
|
|
33
|
+
---
|
|
34
|
+
|
|
35
|
+
## ✅ Matrices (mathtools)
|
|
36
|
+
|
|
37
|
+
### Basic Matrix
|
|
38
|
+
|
|
39
|
+
$$
|
|
40
|
+
\begin{matrix}
|
|
41
|
+
1 & 2 \\
|
|
42
|
+
3 & 4
|
|
43
|
+
\end{matrix}
|
|
44
|
+
$$
|
|
45
|
+
|
|
46
|
+
### Parentheses Matrix
|
|
47
|
+
|
|
48
|
+
$$
|
|
49
|
+
\begin{pmatrix}
|
|
50
|
+
a & b \\
|
|
51
|
+
c & d
|
|
52
|
+
\end{pmatrix}
|
|
53
|
+
$$
|
|
54
|
+
|
|
55
|
+
### Bracket Matrix
|
|
56
|
+
|
|
57
|
+
$$
|
|
58
|
+
\begin{bmatrix}
|
|
59
|
+
1 & 0 \\
|
|
60
|
+
0 & 1
|
|
61
|
+
\end{bmatrix}
|
|
62
|
+
$$
|
|
63
|
+
|
|
64
|
+
### Determinant
|
|
65
|
+
|
|
66
|
+
$$
|
|
67
|
+
\begin{vmatrix}
|
|
68
|
+
a & b \\
|
|
69
|
+
c & d
|
|
70
|
+
\end{vmatrix}
|
|
71
|
+
$$
|
|
72
|
+
|
|
73
|
+
---
|
|
74
|
+
|
|
75
|
+
## ✅ Alignment Environment (ams)
|
|
76
|
+
|
|
77
|
+
$$
|
|
78
|
+
\begin{aligned}
|
|
79
|
+
a^2 + b^2 &= c^2 \\
|
|
80
|
+
e^{i\theta} &= \cos\theta + i\sin\theta
|
|
81
|
+
\end{aligned}
|
|
82
|
+
$$
|
|
83
|
+
|
|
84
|
+
---
|
|
85
|
+
|
|
86
|
+
## ✅ Piecewise Function
|
|
87
|
+
|
|
88
|
+
$$
|
|
89
|
+
f(x) =
|
|
90
|
+
\begin{cases}
|
|
91
|
+
x^2 & x \ge 0 \\
|
|
92
|
+
-x & x < 0
|
|
93
|
+
\end{cases}
|
|
94
|
+
$$
|
|
95
|
+
|
|
96
|
+
---
|
|
97
|
+
|
|
98
|
+
## ✅ Chemical Formulas (mhchem)
|
|
99
|
+
|
|
100
|
+
Water:
|
|
101
|
+
|
|
102
|
+
$$
|
|
103
|
+
\ce{H2O}
|
|
104
|
+
$$
|
|
105
|
+
|
|
106
|
+
Combustion reaction:
|
|
107
|
+
|
|
108
|
+
$$
|
|
109
|
+
\ce{CH4 + 2O2 -> CO2 + 2H2O}
|
|
110
|
+
$$
|
|
111
|
+
|
|
112
|
+
Reversible reaction:
|
|
113
|
+
|
|
114
|
+
$$
|
|
115
|
+
\ce{A <=> B}
|
|
116
|
+
$$
|
|
117
|
+
|
|
118
|
+
Ions:
|
|
119
|
+
|
|
120
|
+
$$
|
|
121
|
+
\ce{Na+ + Cl- -> NaCl}
|
|
122
|
+
$$
|
|
123
|
+
|
|
124
|
+
---
|
|
125
|
+
|
|
126
|
+
## ✅ Physics Macro Test
|
|
127
|
+
|
|
128
|
+
Derivative:
|
|
129
|
+
|
|
130
|
+
$$
|
|
131
|
+
\dv{y}{x}
|
|
132
|
+
$$
|
|
133
|
+
|
|
134
|
+
Partial derivative:
|
|
135
|
+
|
|
136
|
+
$$
|
|
137
|
+
\pdv{f}{x}
|
|
138
|
+
$$
|
|
139
|
+
|
|
140
|
+
Second derivative:
|
|
141
|
+
|
|
142
|
+
$$
|
|
143
|
+
\dv[2]{y}{x}
|
|
144
|
+
$$
|
|
145
|
+
|
|
146
|
+
Absolute value:
|
|
147
|
+
|
|
148
|
+
$$
|
|
149
|
+
\abs{x}
|
|
150
|
+
$$
|
|
151
|
+
|
|
152
|
+
Norm:
|
|
153
|
+
|
|
154
|
+
$$
|
|
155
|
+
\norm{\vec{v}}
|
|
156
|
+
$$
|
|
157
|
+
|
|
158
|
+
Expectation value:
|
|
159
|
+
|
|
160
|
+
$$
|
|
161
|
+
\expval{A}
|
|
162
|
+
$$
|
|
163
|
+
|
|
164
|
+
Auto-scaling parentheses:
|
|
165
|
+
|
|
166
|
+
$$
|
|
167
|
+
\qty(\frac{a}{b})
|
|
168
|
+
$$
|
|
169
|
+
|
|
170
|
+
---
|
|
171
|
+
|
|
172
|
+
## ✅ mathtools Extensions
|
|
173
|
+
|
|
174
|
+
Multi-line alignment:
|
|
175
|
+
|
|
176
|
+
$$
|
|
177
|
+
\begin{aligned}
|
|
178
|
+
\max_x \quad & x^2 + 2x \\
|
|
179
|
+
\text{s.t.}\quad & x \ge 0
|
|
180
|
+
\end{aligned}
|
|
181
|
+
$$
|
|
182
|
+
|
|
183
|
+
With label:
|
|
184
|
+
|
|
185
|
+
$$
|
|
186
|
+
\underbrace{a+b+\cdots+z}_{26}
|
|
187
|
+
$$
|
|
188
|
+
|
|
189
|
+
---
|
|
190
|
+
|
|
191
|
+
## ✅ Common Mathematical Symbols
|
|
192
|
+
|
|
193
|
+
Greek letters:
|
|
194
|
+
|
|
195
|
+
$$
|
|
196
|
+
\alpha,\ \beta,\ \gamma,\ \Gamma,\ \Delta,\ \Omega
|
|
197
|
+
$$
|
|
198
|
+
|
|
199
|
+
Relation symbols:
|
|
200
|
+
|
|
201
|
+
$$
|
|
202
|
+
\le,\ \ge,\ \neq,\ \approx,\ \equiv
|
|
203
|
+
$$
|
|
204
|
+
|
|
205
|
+
Set symbols:
|
|
206
|
+
|
|
207
|
+
$$
|
|
208
|
+
\in,\ \notin,\ \subset,\ \supset,\ \cup,\ \cap
|
|
209
|
+
$$
|
|
210
|
+
|
|
211
|
+
Arrows:
|
|
212
|
+
|
|
213
|
+
$$
|
|
214
|
+
\rightarrow,\ \Rightarrow,\ \leftrightarrow,\ \mapsto
|
|
215
|
+
$$
|
|
216
|
+
|
|
217
|
+
---
|
|
218
|
+
|
|
219
|
+
## 🚨 Extreme Stress Test (Very Important)
|
|
220
|
+
|
|
221
|
+
> If this section renders correctly, it means KaTeX is basically fully functional
|
|
222
|
+
|
|
223
|
+
$$
|
|
224
|
+
\pdv{ }{t}\qty(
|
|
225
|
+
\int_{V} \rho(\vb{r},t)\, dV
|
|
226
|
+
) =
|
|
227
|
+
- \oint_{S} \rho \vb{v} \cdot d\vb{S}
|
|
228
|
+
$$
|
|
229
|
+
|
|
230
|
+
$$
|
|
231
|
+
\ce{^{235}_{92}U + ^1_0n -> ^{236}_{92}U -> ^{141}_{56}Ba + ^{92}_{36}Kr + 3^1_0n}
|
|
232
|
+
$$
|
|
233
|
+
|
|
234
|
+
$$
|
|
235
|
+
\begin{aligned}
|
|
236
|
+
\mathcal{L} &= \frac{1}{2} m \dot{x}^2 - V(x) \\
|
|
237
|
+
\hat{H}\psi &= i\hbar \pdv{\psi}{t}
|
|
238
|
+
\end{aligned}
|
|
239
|
+
$$
|
|
240
|
+
|
|
241
|
+
---
|
|
242
|
+
|
|
243
|
+
## ✅ Rendering Checklist
|
|
244
|
+
|
|
245
|
+
- [ ] Inline formulas work correctly
|
|
246
|
+
- [ ] Block formulas are centered
|
|
247
|
+
- [ ] Matrix alignment is correct
|
|
248
|
+
- [ ] mhchem works correctly
|
|
249
|
+
- [ ] Physics macros work correctly
|
|
250
|
+
- [ ] Alignment environment works correctly
|
|
251
|
+
- [ ] No overflow on mobile
|
|
252
|
+
- [ ] Visible in dark mode
|
|
253
|
+
|
|
254
|
+
---
|
|
255
|
+
|
|
256
|
+
# 🎉 If All Pass
|
|
257
|
+
|
|
258
|
+
👉 Your KaTeX configuration is already **complete**
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
# MDX Component Usage Examples
|
|
2
|
+
|
|
3
|
+
This page demonstrates how to use custom React components in Markdown documents.
|
|
4
|
+
|
|
5
|
+
## Using Built-in Components
|
|
6
|
+
|
|
7
|
+
react-docs-ui provides some built-in MDX components that can be used directly.
|
|
8
|
+
|
|
9
|
+
**Note**: Component names support both PascalCase (recommended) and lowercase. For example, both `<CodeBlock>` and `<codeblock>` work correctly.
|
|
10
|
+
|
|
11
|
+
<Tip title="This is a warning tip"
|
|
12
|
+
>This is the content of a tip component. You can place important tips here.
|
|
13
|
+
</Tip>
|
|
14
|
+
|
|
15
|
+
<Warning title="This is a warning">
|
|
16
|
+
This is the content of a warning component. Used to remind users of potential issues or risks.
|
|
17
|
+
</Warning>
|
|
18
|
+
|
|
19
|
+
<Card title="This is a card">
|
|
20
|
+
This is the content of a card component. Cards can be used to organize related content blocks.
|
|
21
|
+
</Card>
|
|
22
|
+
|
|
23
|
+
## Using Custom Components
|
|
24
|
+
|
|
25
|
+
React components created in the `src/components` directory of the template are automatically scanned and registered, and can be used directly in MDX documents:
|
|
26
|
+
|
|
27
|
+
<MyTip>
|
|
28
|
+
This is a custom component from template/src/components! You can create any React component in the `src/components` directory, and they will be automatically available in MDX documents.
|
|
29
|
+
</MyTip>
|
|
30
|
+
|
|
31
|
+
## New Component Examples
|
|
32
|
+
|
|
33
|
+
### Alert Component
|
|
34
|
+
|
|
35
|
+
The Alert component supports multiple types: info, success, warning, error
|
|
36
|
+
|
|
37
|
+
<Alert type="info" title="Information">
|
|
38
|
+
This is a general information tip for displaying general information.
|
|
39
|
+
</Alert>
|
|
40
|
+
|
|
41
|
+
<Alert type="success" title="Operation Successful">
|
|
42
|
+
Congratulations! The operation has been completed successfully.
|
|
43
|
+
</Alert>
|
|
44
|
+
|
|
45
|
+
<Alert type="warning" title="Attention">
|
|
46
|
+
Please note, there are some things that need attention here.
|
|
47
|
+
</Alert>
|
|
48
|
+
|
|
49
|
+
<Alert type="error" title="Error">
|
|
50
|
+
An error occurred, please check and try again.
|
|
51
|
+
</Alert>
|
|
52
|
+
|
|
53
|
+
### Feature Component
|
|
54
|
+
|
|
55
|
+
The Feature component is used to display feature highlights:
|
|
56
|
+
|
|
57
|
+
<Feature
|
|
58
|
+
icon="⚡"
|
|
59
|
+
title="Quick Start"
|
|
60
|
+
description="Start your project in seconds without complex configuration."
|
|
61
|
+
></Feature>
|
|
62
|
+
<Feature
|
|
63
|
+
icon="🎨"
|
|
64
|
+
title="Theme Customization"
|
|
65
|
+
description="Supports light and dark themes, fully customizable."
|
|
66
|
+
></Feature>
|
|
67
|
+
<Feature
|
|
68
|
+
icon="📱"
|
|
69
|
+
title="Responsive Design"
|
|
70
|
+
description="Perfectly adapts to various devices for the best user experience."
|
|
71
|
+
></Feature>
|
|
72
|
+
|
|
73
|
+
### Callout Component
|
|
74
|
+
|
|
75
|
+
The Callout component is used to emphasize important content:
|
|
76
|
+
|
|
77
|
+
<Callout variant="default">
|
|
78
|
+
This is a default style Callout used to emphasize important content.
|
|
79
|
+
</Callout>
|
|
80
|
+
|
|
81
|
+
<Callout variant="primary">
|
|
82
|
+
This is a primary style Callout used to highlight core information.
|
|
83
|
+
</Callout>
|
|
84
|
+
|
|
85
|
+
<Callout variant="secondary">
|
|
86
|
+
This is a secondary style Callout used for supplementary information.
|
|
87
|
+
</Callout>
|
|
88
|
+
|
|
89
|
+
### StepList Component
|
|
90
|
+
|
|
91
|
+
The StepList component is used to display step processes:
|
|
92
|
+
|
|
93
|
+
<StepList>
|
|
94
|
+
<StepList.Step title="Install Dependencies">
|
|
95
|
+
Run the `npm install` command to install the required dependencies for the project.
|
|
96
|
+
</StepList.Step>
|
|
97
|
+
<StepList.Step title="Configure Environment">
|
|
98
|
+
Configure environment variables and development environment according to project requirements.
|
|
99
|
+
</StepList.Step>
|
|
100
|
+
<StepList.Step title="Start Project">
|
|
101
|
+
Run `npm run dev` to start the development server.
|
|
102
|
+
</StepList.Step>
|
|
103
|
+
<StepList.Step title="Start Development">
|
|
104
|
+
Start writing code to implement your functional requirements.
|
|
105
|
+
</StepList.Step>
|
|
106
|
+
</StepList>
|
|
107
|
+
|
|
108
|
+
### BadgeList Component
|
|
109
|
+
|
|
110
|
+
The BadgeList component is used to display tags or statuses:
|
|
111
|
+
|
|
112
|
+
<BadgeList>
|
|
113
|
+
<BadgeList.Badge variant="default">Default Tag</BadgeList.Badge>
|
|
114
|
+
<BadgeList.Badge variant="success">Success Status</BadgeList.Badge>
|
|
115
|
+
<BadgeList.Badge variant="warning">Warning Status</BadgeList.Badge>
|
|
116
|
+
<BadgeList.Badge variant="error">Error Status</BadgeList.Badge>
|
|
117
|
+
<BadgeList.Badge variant="info">Info Tag</BadgeList.Badge>
|
|
118
|
+
</BadgeList>
|
|
119
|
+
|
|
120
|
+
## Code Block Examples
|
|
121
|
+
|
|
122
|
+
You can use standard Markdown code block syntax in MDX:
|
|
123
|
+
|
|
124
|
+
```tsx
|
|
125
|
+
// This is a TypeScript code block example
|
|
126
|
+
function Greeting({ name }: { name: string }) {
|
|
127
|
+
return <div>Hello, {name}!</div>;
|
|
128
|
+
}
|
|
129
|
+
```
|
|
130
|
+
|
|
131
|
+
```javascript
|
|
132
|
+
// This is a JavaScript code block example
|
|
133
|
+
function add(a, b) {
|
|
134
|
+
return a + b;
|
|
135
|
+
}
|
|
136
|
+
```
|
|
@@ -0,0 +1,212 @@
|
|
|
1
|
+
# 📄 Document Rendering Test Page
|
|
2
|
+
|
|
3
|
+
> Used to test whether the documentation website correctly renders various Markdown / MDX features.
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## 🧭 Table of Contents
|
|
8
|
+
|
|
9
|
+
- [Heading Test](#heading-test)
|
|
10
|
+
- [Text Styles](#text-styles)
|
|
11
|
+
- [Lists](#lists)
|
|
12
|
+
- [Code Blocks](#code-blocks)
|
|
13
|
+
- [Tables](#tables)
|
|
14
|
+
- [Quote Blocks](#quote-blocks)
|
|
15
|
+
- [Callout Blocks](#callout-blocks)
|
|
16
|
+
- [Images](#images)
|
|
17
|
+
- [Math Formulas](#math-formulas)
|
|
18
|
+
- [MDX Components (Optional)](#mdx-components-optional)
|
|
19
|
+
|
|
20
|
+
---
|
|
21
|
+
|
|
22
|
+
## Heading Test
|
|
23
|
+
|
|
24
|
+
### H3 Heading
|
|
25
|
+
#### H4 Heading
|
|
26
|
+
##### H5 Heading
|
|
27
|
+
###### H6 Heading
|
|
28
|
+
|
|
29
|
+
---
|
|
30
|
+
|
|
31
|
+
## Text Styles
|
|
32
|
+
|
|
33
|
+
**Bold**
|
|
34
|
+
|
|
35
|
+
*Italic*
|
|
36
|
+
|
|
37
|
+
~~Strikethrough~~
|
|
38
|
+
|
|
39
|
+
`Inline code`
|
|
40
|
+
|
|
41
|
+
<kbd>Ctrl</kbd> + <kbd>C</kbd>
|
|
42
|
+
|
|
43
|
+
---
|
|
44
|
+
|
|
45
|
+
## Lists
|
|
46
|
+
|
|
47
|
+
### Unordered List
|
|
48
|
+
|
|
49
|
+
- Apple
|
|
50
|
+
- Banana
|
|
51
|
+
- Sub-item 1
|
|
52
|
+
- Sub-item 2
|
|
53
|
+
- Orange
|
|
54
|
+
|
|
55
|
+
### Ordered List
|
|
56
|
+
|
|
57
|
+
1. First step
|
|
58
|
+
2. Second step
|
|
59
|
+
3. Third step
|
|
60
|
+
|
|
61
|
+
### Task List
|
|
62
|
+
|
|
63
|
+
- [x] Completed
|
|
64
|
+
- [ ] Not completed
|
|
65
|
+
|
|
66
|
+
---
|
|
67
|
+
|
|
68
|
+
## Code Blocks
|
|
69
|
+
|
|
70
|
+
### JavaScript
|
|
71
|
+
|
|
72
|
+
```js
|
|
73
|
+
function greet(name) {
|
|
74
|
+
console.log(`Hello, ${name}!`)
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
greet("World")
|
|
78
|
+
````
|
|
79
|
+
|
|
80
|
+
### Bash
|
|
81
|
+
|
|
82
|
+
```bash
|
|
83
|
+
pnpm install
|
|
84
|
+
pnpm dev
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
### JSON
|
|
88
|
+
|
|
89
|
+
```json
|
|
90
|
+
{
|
|
91
|
+
"name": "docs-test",
|
|
92
|
+
"version": "1.0.0"
|
|
93
|
+
}
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
---
|
|
97
|
+
|
|
98
|
+
## Tables
|
|
99
|
+
|
|
100
|
+
| Feature | Supported | Notes |
|
|
101
|
+
| ---- | ---- | ----- |
|
|
102
|
+
| Headings | ✅ | Normal |
|
|
103
|
+
| Code Blocks | ✅ | Highlighted |
|
|
104
|
+
| Math Formulas | ⏳ | Depends on theme |
|
|
105
|
+
|
|
106
|
+
---
|
|
107
|
+
|
|
108
|
+
## Quote Blocks
|
|
109
|
+
|
|
110
|
+
> This is a quote block
|
|
111
|
+
> Used to test styles.
|
|
112
|
+
|
|
113
|
+
---
|
|
114
|
+
|
|
115
|
+
## Callout Blocks
|
|
116
|
+
|
|
117
|
+
> [!NOTE]
|
|
118
|
+
> This is a NOTE callout block (some themes support it)
|
|
119
|
+
|
|
120
|
+
> [!TIP]
|
|
121
|
+
> This is a TIP callout block
|
|
122
|
+
|
|
123
|
+
> [!WARNING]
|
|
124
|
+
> This is a WARNING callout block
|
|
125
|
+
|
|
126
|
+
---
|
|
127
|
+
|
|
128
|
+
## Images
|
|
129
|
+
|
|
130
|
+

|
|
131
|
+

|
|
132
|
+
|
|
133
|
+
---
|
|
134
|
+
|
|
135
|
+
## Math Formulas
|
|
136
|
+
|
|
137
|
+
Inline formula:
|
|
138
|
+
|
|
139
|
+
$E = mc^2$
|
|
140
|
+
|
|
141
|
+
Block formula:
|
|
142
|
+
|
|
143
|
+
$$
|
|
144
|
+
\int_{-\infty}^{\infty} e^{-x^2} dx = \sqrt{\pi}
|
|
145
|
+
$$
|
|
146
|
+
|
|
147
|
+
---
|
|
148
|
+
|
|
149
|
+
## MDX Components (Optional)
|
|
150
|
+
|
|
151
|
+
If your documentation system supports MDX, you can test:
|
|
152
|
+
|
|
153
|
+
```jsx
|
|
154
|
+
export function Hello() {
|
|
155
|
+
return <div style={{color: 'red'}}>Hello MDX!</div>
|
|
156
|
+
}
|
|
157
|
+
```
|
|
158
|
+
|
|
159
|
+
---
|
|
160
|
+
|
|
161
|
+
## 🔥 Collapsible Block (Some themes support)
|
|
162
|
+
|
|
163
|
+
<details>
|
|
164
|
+
<summary>Click to expand</summary>
|
|
165
|
+
|
|
166
|
+
This is the collapsed content.
|
|
167
|
+
|
|
168
|
+
</details>
|
|
169
|
+
|
|
170
|
+
---
|
|
171
|
+
|
|
172
|
+
## 🧪 Long Content Scroll Test
|
|
173
|
+
|
|
174
|
+
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
|
|
175
|
+
Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
|
|
176
|
+
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
|
|
177
|
+
Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
|
|
178
|
+
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
|
|
179
|
+
Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
|
|
180
|
+
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
|
|
181
|
+
Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
|
|
182
|
+
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
|
|
183
|
+
Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
|
|
184
|
+
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
|
|
185
|
+
Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
|
|
186
|
+
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
|
|
187
|
+
Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
|
|
188
|
+
|
|
189
|
+
---
|
|
190
|
+
|
|
191
|
+
## ✅ Rendering Checklist
|
|
192
|
+
|
|
193
|
+
* [ ] Code highlighting works correctly
|
|
194
|
+
* [ ] Table styles are correct
|
|
195
|
+
* [ ] Callout blocks have styles
|
|
196
|
+
* [ ] Math formulas work correctly
|
|
197
|
+
* [ ] Images are responsive
|
|
198
|
+
* [ ] Mobile responsive works correctly
|
|
199
|
+
|
|
200
|
+
---
|
|
201
|
+
|
|
202
|
+
**Test Completed 🎉**
|
|
203
|
+
|
|
204
|
+
---
|
|
205
|
+
|
|
206
|
+
If you'd like, I can help you generate another one:
|
|
207
|
+
|
|
208
|
+
- 🔥 Specialized test version for **Nextra**
|
|
209
|
+
- 🚀 Specialized test version for **VitePress**
|
|
210
|
+
- 🎨 Extreme stress test version (specifically tests if styles break)
|
|
211
|
+
|
|
212
|
+
Just let me know 👍
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# Documentation Tests
|
|
2
|
+
|
|
3
|
+
This section contains various test pages to verify the rendering capabilities of React Docs UI.
|
|
4
|
+
|
|
5
|
+
## Test Pages
|
|
6
|
+
|
|
7
|
+
- [MD Test](/docs/test/test) - Test various Markdown syntax and features
|
|
8
|
+
- [KaTeX Test](/docs/test/katex-test) - Test complete mathematical formula functionality
|
|
9
|
+
- [MDX Demo](/docs/test/mdx-test) - View examples of MDX component usage
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# Documentation
|
|
2
|
+
|
|
3
|
+
Welcome to the React Docs UI documentation system.
|
|
4
|
+
|
|
5
|
+
## Quick Start
|
|
6
|
+
|
|
7
|
+
- [Introduction](/docs/guide/introduction) - Learn about the core philosophy of React Docs UI
|
|
8
|
+
- [Installation](/docs/guide/installation) - Learn how to install and configure
|
|
9
|
+
- [Quick Start](/docs/guide/quick-start) - Create your first documentation site in 5 minutes
|
|
10
|
+
- [Configuration](/docs/guide/configuration) - Deep dive into configuration options
|
|
11
|
+
|
|
12
|
+
## Documentation Tests
|
|
13
|
+
|
|
14
|
+
- [MD Test](/docs/test/test) - Test Markdown rendering functionality
|
|
15
|
+
- [KaTeX Test](/docs/test/katex-test) - Test mathematical formula rendering
|
|
16
|
+
- [MDX Demo](/docs/test/mdx-test) - View MDX component usage examples
|