Skip to content

Commit ce2d520

Browse files
committed
Convert features to yaml file
1 parent ca9f13c commit ce2d520

File tree

6 files changed

+274
-89
lines changed

6 files changed

+274
-89
lines changed

package-lock.json

Lines changed: 16 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
"devDependencies": {
1717
"@biomejs/biome": "^1.9.4",
1818
"@eslint/js": "^9.19.0",
19+
"@rsbuild/plugin-yaml": "^1.0.2",
1920
"@types/node": "^18.11.17",
2021
"eslint": "^9.19.0",
2122
"globals": "^15.14.0",

rspress.config.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import * as path from 'node:path';
22
import { defineConfig } from 'rspress/config';
3+
import { pluginYaml } from "@rsbuild/plugin-yaml";
34

45
export default defineConfig({
56
root: path.join(__dirname, 'docs'),
@@ -9,6 +10,7 @@ export default defineConfig({
910
light: '/aiscript-logo.svg',
1011
dark: '/aiscript-logo.svg',
1112
},
13+
builderPlugins: [pluginYaml()],
1214
themeConfig: {
1315
footer: {
1416
message:

theme/components/Landingpage/features.json

Lines changed: 0 additions & 88 deletions
This file was deleted.
Lines changed: 254 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,254 @@
1+
ai:
2+
- title: Prompt
3+
description: AIscript is designed to be the first-class language for AI development. It is designed to be easy to learn and use, and it is designed to be fast and efficient.
4+
code: |
5+
// Define a function that takes a prompt and returns a response
6+
fn generate_response(prompt: string) -> string {
7+
// Call the AI model to generate a response
8+
let response = ai.generate({
9+
model: "gpt-4",
10+
prompt: prompt,
11+
max_tokens: 100
12+
});
13+
14+
return response;
15+
}
16+
17+
// Example usage
18+
let result = generate_response("Tell me a joke");
19+
print(result);
20+
filename: main.ai
21+
- title: AI Function
22+
description: AIscript comes with a powerful type system that helps catch errors before they happen. The type system is designed to be intuitive and easy to use.
23+
code: |
24+
// Define a function that takes a prompt and returns a response
25+
fn generate_response(prompt: string) -> string {
26+
// Call the AI model to generate a response
27+
let response = ai.generate({
28+
model: "gpt-4",
29+
prompt: prompt,
30+
max_tokens: 100
31+
});
32+
33+
return response;
34+
}
35+
36+
// Example usage
37+
let result = generate_response("Tell me a joke");
38+
print(result);
39+
filename: main.ai
40+
- title: Agent
41+
description: AIscript comes with a powerful type system that helps catch errors before they happen. The type system is designed to be intuitive and easy to use.
42+
code: |
43+
// Define a function that takes a prompt and returns a response
44+
fn generate_response(prompt: string) -> string {
45+
// Call the AI model to generate a response
46+
let response = ai.generate({
47+
model: "gpt-4",
48+
prompt: prompt,
49+
max_tokens: 100
50+
});
51+
52+
return response;
53+
}
54+
55+
// Example usage
56+
let result = generate_response("Tell me a joke");
57+
print(result);
58+
filename: main.ai
59+
60+
web:
61+
- title: Route DSL
62+
description: AIscript is designed to be the first-class language for AI development. It is designed to be easy to learn and use, and it is designed to be fast and efficient.
63+
code: |
64+
// Define a function that takes a prompt and returns a response
65+
fn generate_response(prompt: string) -> string {
66+
// Call the AI model to generate a response
67+
let response = ai.generate({
68+
model: "gpt-4",
69+
prompt: prompt,
70+
max_tokens: 100
71+
});
72+
73+
return response;
74+
}
75+
76+
// Example usage
77+
let result = generate_response("Tell me a joke");
78+
print(result);
79+
filename: main.ai
80+
- title: Validator
81+
description: AIscript comes with a powerful type system that helps catch errors before they happen. The type system is designed to be intuitive and easy to use.
82+
code: |
83+
// Define a function that takes a prompt and returns a response
84+
fn generate_response(prompt: string) -> string {
85+
// Call the AI model to generate a response
86+
let response = ai.generate({
87+
model: "gpt-4",
88+
prompt: prompt,
89+
max_tokens: 100
90+
});
91+
92+
return response;
93+
}
94+
95+
// Example usage
96+
let result = generate_response("Tell me a joke");
97+
print(result);
98+
filename: main.ai
99+
- title: OpenAPI
100+
description: AIscript comes with a powerful type system that helps catch errors before they happen. The type system is designed to be intuitive and easy to use.
101+
code: |
102+
// Define a function that takes a prompt and returns a response
103+
fn generate_response(prompt: string) -> string {
104+
// Call the AI model to generate a response
105+
let response = ai.generate({
106+
model: "gpt-4",
107+
prompt: prompt,
108+
max_tokens: 100
109+
});
110+
111+
return response;
112+
}
113+
114+
// Example usage
115+
let result = generate_response("Tell me a joke");
116+
print(result);
117+
filename: main.ai
118+
- title: Effortless Social Login
119+
description: AIscript comes with a powerful type system that helps catch errors before they happen. The type system is designed to be intuitive and easy to use.
120+
code: |
121+
// Define a function that takes a prompt and returns a response
122+
fn generate_response(prompt: string) -> string {
123+
// Call the AI model to generate a response
124+
let response = ai.generate({
125+
model: "gpt-4",
126+
prompt: prompt,
127+
max_tokens: 100
128+
});
129+
130+
return response;
131+
}
132+
133+
// Example usage
134+
let result = generate_response("Tell me a joke");
135+
print(result);
136+
filename: main.ai
137+
138+
language:
139+
- title: Enum
140+
description: AIscript is designed to be the first-class language for AI development. It is designed to be easy to learn and use, and it is designed to be fast and efficient.
141+
code: |
142+
// Define a function that takes a prompt and returns a response
143+
fn generate_response(prompt: string) -> string {
144+
// Call the AI model to generate a response
145+
let response = ai.generate({
146+
model: "gpt-4",
147+
prompt: prompt,
148+
max_tokens: 100
149+
});
150+
151+
return response;
152+
}
153+
154+
// Example usage
155+
let result = generate_response("Tell me a joke");
156+
print(result);
157+
filename: main.ai
158+
- title: Pipe Operator
159+
description: AIscript is designed to be the first-class language for AI development. It is designed to be easy to learn and use, and it is designed to be fast and efficient.
160+
code: |
161+
// Define a function that takes a prompt and returns a response
162+
fn generate_response(prompt: string) -> string {
163+
// Call the AI model to generate a response
164+
let response = ai.generate({
165+
model: "gpt-4",
166+
prompt: prompt,
167+
max_tokens: 100
168+
});
169+
170+
return response;
171+
}
172+
173+
// Example usage
174+
let result = generate_response("Tell me a joke");
175+
print(result);
176+
filename: main.ai
177+
- title: Error handling
178+
description: AIscript comes with a powerful type system that helps catch errors before they happen. The type system is designed to be intuitive and easy to use.
179+
code: |
180+
// Define a function that takes a prompt and returns a response
181+
fn generate_response(prompt: string) -> string {
182+
// Call the AI model to generate a response
183+
let response = ai.generate({
184+
model: "gpt-4",
185+
prompt: prompt,
186+
max_tokens: 100
187+
});
188+
189+
return response;
190+
}
191+
192+
// Example usage
193+
let result = generate_response("Tell me a joke");
194+
print(result);
195+
filename: main.ai
196+
197+
std-library:
198+
- title: Database
199+
description: AIscript is designed to be the first-class language for AI development. It is designed to be easy to learn and use, and it is designed to be fast and efficient.
200+
code: |
201+
// Define a function that takes a prompt and returns a response
202+
fn generate_response(prompt: string) -> string {
203+
// Call the AI model to generate a response
204+
let response = ai.generate({
205+
model: "gpt-4",
206+
prompt: prompt,
207+
max_tokens: 100
208+
});
209+
210+
return response;
211+
}
212+
213+
// Example usage
214+
let result = generate_response("Tell me a joke");
215+
print(result);
216+
filename: main.ai
217+
- title: Redis
218+
description: AIscript is designed to be the first-class language for AI development. It is designed to be easy to learn and use, and it is designed to be fast and efficient.
219+
code: |
220+
// Define a function that takes a prompt and returns a response
221+
fn generate_response(prompt: string) -> string {
222+
// Call the AI model to generate a response
223+
let response = ai.generate({
224+
model: "gpt-4",
225+
prompt: prompt,
226+
max_tokens: 100
227+
});
228+
229+
return response;
230+
}
231+
232+
// Example usage
233+
let result = generate_response("Tell me a joke");
234+
print(result);
235+
filename: main.ai
236+
- title: Builtin functions
237+
description: AIscript comes with a powerful type system that helps catch errors before they happen. The type system is designed to be intuitive and easy to use.
238+
code: |
239+
// Define a function that takes a prompt and returns a response
240+
fn generate_response(prompt: string) -> string {
241+
// Call the AI model to generate a response
242+
let response = ai.generate({
243+
model: "gpt-4",
244+
prompt: prompt,
245+
max_tokens: 100
246+
});
247+
248+
return response;
249+
}
250+
251+
// Example usage
252+
let result = generate_response("Tell me a joke");
253+
print(result);
254+
filename: main.ai

0 commit comments

Comments
 (0)