Skip to content

Commit c5625f0

Browse files
authored
docs: refine homepage and code examples (#36)
1 parent 762615d commit c5625f0

68 files changed

Lines changed: 2925 additions & 5857 deletions

Some content is hidden

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

website/codehike-theme.json

Lines changed: 106 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,106 @@
1+
{
2+
"name": "a3s-code",
3+
"type": "dark",
4+
"colors": {
5+
"editor.background": "#0b0f14",
6+
"editor.foreground": "#d4d9e2",
7+
"editorLineNumber.foreground": "#414a58",
8+
"editorLineNumber.activeForeground": "#8e9aac",
9+
"editor.selectionBackground": "#243854"
10+
},
11+
"tokenColors": [
12+
{
13+
"scope": ["comment", "punctuation.definition.comment"],
14+
"settings": {
15+
"foreground": "#657181",
16+
"fontStyle": "italic"
17+
}
18+
},
19+
{
20+
"scope": [
21+
"keyword",
22+
"storage",
23+
"storage.type",
24+
"storage.modifier",
25+
"keyword.control",
26+
"keyword.operator.word"
27+
],
28+
"settings": {
29+
"foreground": "#8fb8f8"
30+
}
31+
},
32+
{
33+
"scope": [
34+
"entity.name.function",
35+
"support.function",
36+
"meta.function-call",
37+
"variable.function"
38+
],
39+
"settings": {
40+
"foreground": "#dfb978"
41+
}
42+
},
43+
{
44+
"scope": [
45+
"entity.name.type",
46+
"entity.name.class",
47+
"support.type",
48+
"support.class",
49+
"entity.name.namespace"
50+
],
51+
"settings": {
52+
"foreground": "#bda4dd"
53+
}
54+
},
55+
{
56+
"scope": [
57+
"entity.name.function.decorator",
58+
"meta.function.decorator",
59+
"punctuation.definition.decorator"
60+
],
61+
"settings": {
62+
"foreground": "#c8a5ee"
63+
}
64+
},
65+
{
66+
"scope": ["string", "string.quoted", "string.template"],
67+
"settings": {
68+
"foreground": "#8fc4a4"
69+
}
70+
},
71+
{
72+
"scope": [
73+
"constant.numeric",
74+
"constant.language",
75+
"constant.character",
76+
"constant.other"
77+
],
78+
"settings": {
79+
"foreground": "#d89573"
80+
}
81+
},
82+
{
83+
"scope": [
84+
"variable.parameter",
85+
"variable.other",
86+
"meta.object-literal.key",
87+
"meta.mapping.key"
88+
],
89+
"settings": {
90+
"foreground": "#cfd5df"
91+
}
92+
},
93+
{
94+
"scope": ["punctuation", "meta.brace", "meta.delimiter"],
95+
"settings": {
96+
"foreground": "#7c8796"
97+
}
98+
},
99+
{
100+
"scope": ["keyword.operator", "operator"],
101+
"settings": {
102+
"foreground": "#7fa6b9"
103+
}
104+
}
105+
]
106+
}

website/docs/v6/en/_nav.json

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,7 @@
22
{
33
"text": "Docs",
44
"link": "/guide/",
5-
"activeMatch": "^/guide/(?!examples/|components/)"
6-
},
7-
{
8-
"text": "Components",
9-
"link": "/guide/components/",
10-
"activeMatch": "^/guide/components/"
5+
"activeMatch": "^/guide/(?!examples/)"
116
},
127
{
138
"text": "Examples",

website/docs/v6/en/api/index.mdx

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ truth for package versions and release status.
1212

1313
| Entry | Package or command | Documentation | Use it for |
1414
| -------- | ------------------ | -------------------------------------------------- | -------------------------------------------------- |
15-
| Terminal | `a3s code` | [A3S CLI](https://github.com/A3S-Lab/CLI) | Run a coding agent directly in your terminal |
15+
| Terminal | `a3s code` | [A3S CLI](https://github.com/A3S-Lab/a3s) | Run a coding agent directly in your terminal |
1616
| Rust | `a3s-code-core` | [docs.rs](https://docs.rs/a3s-code-core) | Use the complete runtime API or extension traits |
1717
| Node.js | `@a3s-lab/code` | [npm](https://www.npmjs.com/package/@a3s-lab/code) | Subscribe to async events in a Node.js application |
1818
| Python | `a3s-code` | [PyPI](https://pypi.org/project/a3s-code/) | Use synchronous or asynchronous Python APIs |
@@ -43,6 +43,5 @@ Start with the [API contract](/guide/api-contract), then continue to
4343

4444
When connecting your own infrastructure, you can replace `LlmClient`,
4545
`ContextProvider`, `MemoryStore`, `SessionStore`, Workspace services, tools,
46-
permission confirmation, hooks, MCP transports, and graph stores. To see how
47-
events reach a UI first, open the
48-
[A3S TUI and A3S Web component docs](/guide/components/).
46+
permission confirmation, hooks, MCP transports, and graph stores. For UI
47+
integration, start with [sessions and event streams](/guide/sessions).

website/docs/v6/en/guide/_meta.json

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,6 @@
11
[
22
"index",
33
"tui",
4-
{
5-
"type": "dir",
6-
"name": "components",
7-
"label": "Components",
8-
"collapsible": true,
9-
"collapsed": false
10-
},
114
{
125
"type": "dir",
136
"name": "examples",

website/docs/v6/en/guide/components/_meta.json

Lines changed: 0 additions & 17 deletions
This file was deleted.

website/docs/v6/en/guide/components/index.mdx

Lines changed: 0 additions & 28 deletions
This file was deleted.

website/docs/v6/en/guide/components/tui/_meta.json

Lines changed: 0 additions & 1 deletion
This file was deleted.

website/docs/v6/en/guide/components/tui/activity.mdx

Lines changed: 0 additions & 20 deletions
This file was deleted.

website/docs/v6/en/guide/components/tui/data.mdx

Lines changed: 0 additions & 24 deletions
This file was deleted.

website/docs/v6/en/guide/components/tui/feedback.mdx

Lines changed: 0 additions & 30 deletions
This file was deleted.

0 commit comments

Comments
 (0)