Skip to content

Commit af93159

Browse files
author
lihao
committed
chore: Update documentation and examples for improved clarity and functionality
- Enhanced various documentation files to reflect recent changes in the framework. - Updated example configurations and README files to include new API keys and usage instructions. - Removed deprecated files and streamlined example structures for better usability. - Improved translations and added new features in the web components for better user experience. - Adjusted code comments and logging for consistency and clarity across the codebase.
1 parent 67c2bf0 commit af93159

File tree

177 files changed

+8915
-5661
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

177 files changed

+8915
-5661
lines changed

docs/astro.config.mjs

Lines changed: 49 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ export default defineConfig({
2525
src: './src/assets/langcrew-logo.png',
2626
},
2727
social: [
28-
{ icon: 'github', label: 'GitHub', href: 'https://github.com/01-ai/langcrew' }
28+
{ icon: 'github', label: 'GitHub', href: 'https://github.com/01-ai/langcrew' },
29+
{ icon: 'rocket', label: 'Langcrew Studio', href: 'https://studio.langcrew.ai/' }
2930
],
3031
sidebar: [
3132
{
@@ -42,10 +43,10 @@ export default defineConfig({
4243
}
4344
},
4445
{
45-
label: '超级智能体',
46-
link: '/guides/super-agent',
46+
label: '安装指南',
47+
link: '/guides/installation',
4748
translations: {
48-
en: 'Super Agent'
49+
en: 'Installation'
4950
}
5051
},
5152
],
@@ -98,6 +99,13 @@ export default defineConfig({
9899
en: 'Tools'
99100
}
100101
},
102+
{
103+
label: 'Web服务',
104+
link: '/concepts/web',
105+
translations: {
106+
en: 'Web'
107+
}
108+
},
101109
{
102110
label: '安全护栏',
103111
link: '/concepts/guardrails',
@@ -112,13 +120,6 @@ export default defineConfig({
112120
en: 'Observability'
113121
}
114122
},
115-
{
116-
label: 'Web服务',
117-
link: '/concepts/web',
118-
translations: {
119-
en: 'Web'
120-
}
121-
},
122123
],
123124
},
124125
{
@@ -154,13 +155,6 @@ export default defineConfig({
154155
en: 'Long-term Memory'
155156
}
156157
},
157-
{
158-
label: '实体记忆',
159-
link: '/guides/memory/entity',
160-
translations: {
161-
en: 'Entity Memory'
162-
}
163-
},
164158
{
165159
label: '存储配置',
166160
link: '/guides/memory/storage',
@@ -228,28 +222,6 @@ export default defineConfig({
228222
},
229223
]
230224
},
231-
{
232-
label: '安全护栏',
233-
translations: {
234-
en: 'Guardrails'
235-
},
236-
items: [
237-
{
238-
label: '快速开始',
239-
link: '/guides/guardrails',
240-
translations: {
241-
en: 'Getting Started'
242-
}
243-
},
244-
{
245-
label: '实用示例',
246-
link: '/examples/guardrails',
247-
translations: {
248-
en: 'Examples'
249-
}
250-
},
251-
]
252-
},
253225
{
254226
label: 'Web服务',
255227
translations: {
@@ -279,6 +251,21 @@ export default defineConfig({
279251
},
280252
]
281253
},
254+
{
255+
label: '安全护栏',
256+
translations: {
257+
en: 'Guardrails'
258+
},
259+
items: [
260+
{
261+
label: '快速开始',
262+
link: '/guides/guardrails',
263+
translations: {
264+
en: 'Getting Started'
265+
}
266+
},
267+
]
268+
},
282269
{
283270
label: '工具库',
284271
link: '/guides/utils',
@@ -288,6 +275,28 @@ export default defineConfig({
288275
},
289276
],
290277
},
278+
{
279+
label: '示例',
280+
translations: {
281+
en: 'Examples'
282+
},
283+
items: [
284+
{
285+
label: '超级智能体',
286+
link: '/examples/super-agent',
287+
translations: {
288+
en: 'Super Agent'
289+
}
290+
},
291+
{
292+
label: '安全护栏',
293+
link: '/examples/guardrails',
294+
translations: {
295+
en: 'Guardrails'
296+
}
297+
},
298+
],
299+
},
291300
{
292301
label: '参考',
293302
translations: {

docs/package-lock.json

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

docs/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
"start": "astro dev",
88
"build": "astro build",
99
"preview": "astro preview",
10-
"astro": "astro"
10+
"astro": "astro",
11+
"deploy": "npm run build && npx wrangler pages deploy dist --project-name=langcrew --branch=main"
1112
},
1213
"dependencies": {
1314
"@astrojs/starlight": "^0.35.2",

docs/public/favicon.svg

Lines changed: 628 additions & 1 deletion
Loading

docs/src/assets/houston.webp

-96.2 KB
Binary file not shown.

docs/src/assets/langcrew-logo.png

1.3 MB
Loading

0 commit comments

Comments
 (0)