Skip to content

Commit 166df96

Browse files
Copilothuangyiirene
andcommitted
Add fumadocs features demo page showcasing all enabled features
Co-authored-by: huangyiirene <7665279+huangyiirene@users.noreply.github.com>
1 parent 3a9349f commit 166df96

File tree

1 file changed

+111
-0
lines changed

1 file changed

+111
-0
lines changed
Lines changed: 111 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,111 @@
1+
---
2+
title: Fumadocs Features Demo
3+
description: Demonstration of enabled fumadocs features
4+
---
5+
6+
## GitHub Flavored Markdown
7+
8+
### Tables
9+
10+
| Feature | Status | Description |
11+
|---------|--------|-------------|
12+
| GFM Tables | ✅ Enabled | Support for GitHub Flavored Markdown tables |
13+
| Math Equations | ✅ Enabled | LaTeX math rendering with KaTeX |
14+
| Code Highlighting | ✅ Enabled | Syntax highlighting with themes |
15+
| Anchor Links | ✅ Enabled | Automatic heading anchors |
16+
17+
### Task Lists
18+
19+
- [x] Install fumadocs dependencies
20+
- [x] Configure MDX plugins
21+
- [x] Enable enhanced code highlighting
22+
- [ ] Add more content examples
23+
24+
### Strikethrough
25+
26+
~~This text has been deprecated~~ Use the new API instead.
27+
28+
## Math Equations
29+
30+
Fumadocs now supports LaTeX math equations!
31+
32+
### Inline Math
33+
34+
The quadratic formula is $x = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}$.
35+
36+
### Block Math
37+
38+
$$
39+
E = mc^2
40+
$$
41+
42+
$$
43+
\int_{-\infty}^{\infty} e^{-x^2} dx = \sqrt{\pi}
44+
$$
45+
46+
### Complex Equations
47+
48+
The Schrödinger equation:
49+
50+
$$
51+
i\hbar\frac{\partial}{\partial t}\Psi(\mathbf{r},t) = \hat{H}\Psi(\mathbf{r},t)
52+
$$
53+
54+
## Code Highlighting
55+
56+
### TypeScript Example
57+
58+
```typescript
59+
import { ObjectQL } from '@objectql/core';
60+
61+
interface User {
62+
id: string;
63+
name: string;
64+
email: string;
65+
}
66+
67+
async function getUser(id: string): Promise<User> {
68+
const user = await ObjectQL.findOne('users', { _id: id });
69+
return user as User;
70+
}
71+
```
72+
73+
### Python Example
74+
75+
```python
76+
def fibonacci(n):
77+
"""Calculate the nth Fibonacci number."""
78+
if n <= 1:
79+
return n
80+
return fibonacci(n-1) + fibonacci(n-2)
81+
82+
# Usage
83+
result = fibonacci(10)
84+
print(f"The 10th Fibonacci number is {result}")
85+
```
86+
87+
### Bash Example
88+
89+
```bash
90+
# Install ObjectQL
91+
pnpm add @objectql/core
92+
93+
# Run development server
94+
pnpm dev
95+
```
96+
97+
## Blockquotes
98+
99+
> **Note**: This is an important note about ObjectQL.
100+
>
101+
> It supports multiple lines and **formatted text**.
102+
103+
> **Warning**: Be careful when modifying production data!
104+
105+
## Links and Navigation
106+
107+
- Jump to [Tables](#tables)
108+
- Go to [Math Equations](#math-equations)
109+
- Check out [Code Highlighting](#code-highlighting)
110+
111+
All headings now have automatic anchor links!

0 commit comments

Comments
 (0)