You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The order of the `clientsExamples` list matters: it's the order in which the language tabs are presented for each code example.
@@ -18,13 +18,17 @@ There are two sections that need to updated when new languages are added.
18
18
[params.clientsConfig]
19
19
"Python"={quickstartSlug="redis-py"}
20
20
"Node.js"={quickstartSlug="nodejs"}
21
-
"Java-sync"={quickstartSlug="jedis"}
22
-
"Java-async"={quickstartSlug="lettuce"}
23
-
"Java-reactive"={quickstartSlug="lettuce"}
21
+
"Java-Sync"={quickstartSlug="jedis"}
22
+
"Lettuce-Sync"={quickstartSlug="lettuce"}
23
+
"Java-Async"={quickstartSlug="lettuce"}
24
+
"Java-Reactive"={quickstartSlug="lettuce"}
24
25
"Go"={quickstartSlug="go"}
25
-
"C#"={quickstartSlug="dotnet"}
26
+
"C#-Sync"={quickstartSlug="dotnet"}
27
+
"C#-Async"={quickstartSlug="dotnet"}
26
28
"RedisVL"={quickstartSlug="redis-vl"}
27
29
"PHP"={quickstartSlug="php"}
30
+
"Rust-Sync"={quickstartSlug="rust"}
31
+
"Rust-Async"={quickstartSlug="rust"}
28
32
```
29
33
30
34
This configuration, along with the configuration steps below, is used to control the behavior of the Hugo shortcode that was developed to show tabbed code examples.
@@ -36,7 +40,7 @@ A shortcode is a simple snippet inside a content file that Hugo will render usin
36
40
37
41
The folder `data/components` contains one component configuration file for each supported language. These files contain information about the GitHub repos that house the code examples.
38
42
39
-
Here is the configuration file for Python, `redis_py.json`:
43
+
Here is the configuration file for Python, `redis_py.json`:
40
44
41
45
```json
42
46
{
@@ -65,15 +69,19 @@ Register your component file by adding it to the `clients` array in the `index.j
65
69
Here is an example:
66
70
```json
67
71
"clients": [
68
-
"nredisstack",
72
+
"nredisstack_sync",
73
+
"nredisstack_async",
69
74
"go_redis",
70
75
"node_redis",
71
76
"php",
72
77
"redis_py",
73
78
"jedis",
79
+
"lettuce_sync",
74
80
"lettuce_async",
75
81
"lettuce_reactive",
76
-
"redis_vl"
82
+
"redis_vl",
83
+
"redis_rs_sync",
84
+
"redis_rs_async"
77
85
]
78
86
```
79
87
@@ -133,7 +141,8 @@ Add a source code file to an appropriate client repo. Consult the /data/componen
This allows the same language to appear multiple times in the tab interface with different implementations.
257
+
This allows the same language to appear multiple times in the tab interface with different implementations. The order of checks matters: more specific paths (e.g., `lettuce-sync`) should be checked before generic ones (e.g., `Java-Sync`).
257
258
258
259
**Outputs**:
259
260
- Copies files to `examples/{example_id}/local_{filename}`
0 commit comments