Skip to content

Commit 0e6448d

Browse files
committed
Fix MDX component imports and home page
- Add Steps and Step components to MDX components configuration - Fix Steps usage in docs/index.mdx to use proper Step wrapper components - Replace placeholder home page with proper llms.py landing page - Add feature highlights and quick install section
1 parent 8a84f97 commit 0e6448d

File tree

3 files changed

+66
-10
lines changed

3 files changed

+66
-10
lines changed

app/(home)/page.tsx

Lines changed: 55 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,60 @@ import Link from 'next/link';
22

33
export default function HomePage() {
44
return (
5-
<div className="flex flex-col justify-center text-center flex-1">
6-
<h1 className="text-2xl font-bold mb-4">Hello World</h1>
7-
<p>
8-
You can open{' '}
9-
<Link href="/docs" className="font-medium underline">
10-
/docs
11-
</Link>{' '}
12-
and see the documentation.
13-
</p>
14-
</div>
5+
<main className="flex flex-col items-center justify-center min-h-screen p-8">
6+
<div className="max-w-4xl mx-auto text-center space-y-8">
7+
<div className="space-y-4">
8+
<h1 className="text-5xl font-bold tracking-tight">llms.py</h1>
9+
<p className="text-xl text-muted-foreground max-w-2xl mx-auto">
10+
Lightweight OpenAI compatible CLI and server gateway for multiple LLMs
11+
</p>
12+
</div>
13+
14+
<div className="flex flex-col sm:flex-row gap-4 justify-center items-center">
15+
<Link
16+
href="/docs"
17+
className="px-6 py-3 rounded-lg bg-primary text-primary-foreground font-semibold hover:bg-primary/90 transition-colors"
18+
>
19+
Get Started
20+
</Link>
21+
<a
22+
href="https://github.com/ServiceStack/llms"
23+
target="_blank"
24+
rel="noopener noreferrer"
25+
className="px-6 py-3 rounded-lg border border-input bg-background hover:bg-accent hover:text-accent-foreground transition-colors font-semibold"
26+
>
27+
View on GitHub
28+
</a>
29+
</div>
30+
31+
<div className="grid md:grid-cols-3 gap-6 mt-16 text-left">
32+
<div className="p-6 rounded-lg border bg-card">
33+
<h3 className="font-semibold text-lg mb-2">🪶 Ultra-Lightweight</h3>
34+
<p className="text-sm text-muted-foreground">
35+
Single file with just one aiohttp dependency. Perfect for ComfyUI and minimal environments.
36+
</p>
37+
</div>
38+
<div className="p-6 rounded-lg border bg-card">
39+
<h3 className="font-semibold text-lg mb-2">🌐 Multi-Provider</h3>
40+
<p className="text-sm text-muted-foreground">
41+
Access 160+ models from OpenAI, Anthropic, Google, Grok, Groq, Ollama, and more.
42+
</p>
43+
</div>
44+
<div className="p-6 rounded-lg border bg-card">
45+
<h3 className="font-semibold text-lg mb-2">💻 ChatGPT-like UI</h3>
46+
<p className="text-sm text-muted-foreground">
47+
Fast, privacy-focused web interface with dark mode and built-in analytics.
48+
</p>
49+
</div>
50+
</div>
51+
52+
<div className="mt-12 p-6 rounded-lg bg-muted">
53+
<h3 className="font-semibold mb-4">Quick Install</h3>
54+
<code className="text-sm bg-background px-4 py-2 rounded border block">
55+
pip install llms-py
56+
</code>
57+
</div>
58+
</div>
59+
</main>
1560
);
1661
}

content/docs/index.mdx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,20 +20,27 @@ description: Lightweight OpenAI compatible CLI and server gateway for multiple L
2020
## Quick Start
2121

2222
<Steps>
23+
<Step>
2324

2425
### Install
2526

2627
```bash
2728
pip install llms-py
2829
```
2930

31+
</Step>
32+
<Step>
33+
3034
### Set API Keys
3135

3236
```bash
3337
export OPENROUTER_API_KEY="sk-or-..."
3438
export GROQ_API_KEY="gsk_..."
3539
```
3640

41+
</Step>
42+
<Step>
43+
3744
### Start Server
3845

3946
```bash
@@ -42,6 +49,7 @@ llms --serve 8000
4249

4350
Access the UI at `http://localhost:8000`
4451

52+
</Step>
4553
</Steps>
4654

4755
## Use Cases

mdx-components.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
import defaultMdxComponents from 'fumadocs-ui/mdx';
2+
import { Steps, Step } from 'fumadocs-ui/components/steps';
23
import type { MDXComponents } from 'mdx/types';
34

45
export function getMDXComponents(components?: MDXComponents): MDXComponents {
56
return {
67
...defaultMdxComponents,
8+
Steps,
9+
Step,
710
...components,
811
};
912
}

0 commit comments

Comments
 (0)