Skip to content

Commit c31ecfa

Browse files
committed
Try to customize home page theme
1 parent 01ff74e commit c31ecfa

File tree

5 files changed

+49
-19
lines changed

5 files changed

+49
-19
lines changed

docs/_meta.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,10 @@
1313
"text": "Std library",
1414
"link": "/std-library/",
1515
"activeMatch": "/std-library/"
16+
},
17+
{
18+
"text": "Reference",
19+
"link": "/referece/",
20+
"activeMatch": "/reference/"
1621
}
1722
]

docs/index.md

Lines changed: 29 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -15,29 +15,39 @@ hero:
1515
image:
1616
src: /tuocan.png
1717
alt: Logo
18-
features:
19-
- title: AI-Native Architecture
20-
details: |
21-
- Prompt, embed, and agent are first-class language keywords
18+
# features:
19+
# - title: AI-Native Architecture
20+
# details: |
21+
# - Prompt, embed, and agent are first-class language keywords
2222

23-
- Built-in context and memory management
23+
# - Built-in context and memory management
2424

25-
- Agentic framework, inspired by OpenAI Swarm
26-
icon: 🏃🏻‍♀️
27-
- title: Modern Web Development Simplified
28-
details: |
29-
- Built-in web server, data validation, database query capabilities
25+
# - Agentic framework, inspired by OpenAI Swarm
26+
# icon: 🏃🏻‍♀️
27+
# - title: Modern Web Development Simplified
28+
# details: |
29+
# - Built-in web server, data validation, database query capabilities
3030

31-
- No more boilerplate code
31+
# - No more boilerplate code
3232

33-
- AI tool/agent registry: sharing tools and agents is as easy as publishing a library
34-
icon: 📦
35-
- title: Easy, elegant, and ergonomic
36-
details: |
37-
Think of it as a combination of Python's and Rust's strengths while avoiding their weaknesses
33+
# - AI tool/agent registry: sharing tools and agents is as easy as publishing a library
34+
# icon: 📦
35+
# - title: Easy, elegant, and ergonomic
36+
# details: |
37+
# Think of it as a combination of Python's and Rust's strengths while avoiding their weaknesses
3838

39-
Compile-time type checking to detect errors and bugs
39+
# Compile-time type checking to detect errors and bugs
4040

41-
High performance without unnecessary complexity
42-
icon: 🎨
41+
# High performance without unnecessary complexity
42+
# icon: 🎨
4343
---
44+
45+
## AI-Native
46+
47+
Prompt is a first-class language keyword in AIScript.
48+
49+
```rs
50+
let answer = prompt "What's moon of Pluto?";
51+
print(answer);
52+
// The moon of Pluto is Charon.
53+
```

docs/reference/index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# References

rspress.config.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ export default defineConfig({
1010
dark: '/aiscript-logo.svg',
1111
},
1212
themeConfig: {
13+
footer: {
14+
message:
15+
'<p>AIScript Community &copy; 2025.</p>',
16+
},
1317
prevPageText: 'Prev Page',
1418
nextPageText: 'Next Page',
1519
socialLinks: [

theme/index.tsx

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import Theme from 'rspress/theme';
2+
3+
const Layout = () => <Theme.Layout beforeNavTitle={<div>some content</div>} />;
4+
5+
export default {
6+
...Theme,
7+
Layout,
8+
};
9+
10+
export * from 'rspress/theme';

0 commit comments

Comments
 (0)