@@ -15,6 +15,7 @@ If you want to share your own tutorials - add the `redis-tutorials` label to you
15
15
5 . [ Manifest] ( #Manifest )
16
16
6 . [ Bulk Upload From Tutorials] ( #bulk-upload-from-tutorials )
17
17
7 . [ Advanced button parameters] ( #Advanced )
18
+ 7 . [ Links configuration] ( #links-configuration )
18
19
19
20
## Structure
20
21
@@ -76,24 +77,25 @@ If you would like to customize or prettify the archive name, page names, or the
76
77
Manifest file should start with single Node and should have properties described
77
78
below (it will be displayed as type "group"):
78
79
79
- | Prop | Type | Description |
80
- | -------------------------| -------------------------- | ---------------------------------------------------------- ---------------------------------------------------------------------|
81
- | label (** required** ) | string | Label that will be displayed on UI for Node |
82
- | children (** required** ) | Node[ ] | List of Nodes (nested groups or markdown files) |
83
- | type | | Can be skipped - RedisInsight will always use the "group" parameter |
84
- | author | string | Not required, Author name |
85
- | URL | string | Not required, link to repository/web-site |
86
- | industry | string[ ] | Not required, tags to show relevant industry |
87
- | description | string | Not required, short description of tutorials |
80
+ | Prop | Type | Description |
81
+ | -------------------------| ----------| ---------------------------------------------------------------------|
82
+ | label (** required** ) | string | Label that will be displayed on UI for Node |
83
+ | children (** required** ) | Node[ ] | List of Nodes (nested groups or markdown files) |
84
+ | type | | Can be skipped - RedisInsight will always use the "group" parameter |
85
+ | author | string | Not required, Author name |
86
+ | URL | string | Not required, link to repository/web-site |
87
+ | industry | string[ ] | Not required, tags to show relevant industry |
88
+ | description | string | Not required, short description of tutorials |
88
89
89
90
Each Node requires a ` label ` ,` type ` (all available properties are described in the table below).
90
91
91
92
| Prop | Type | Description |
92
93
| ----------------------| --------------------------| ----------------------------------------------------------------------------------------|
93
- | id | string | |
94
+ | id ( ** required ** ) | string | |
94
95
| type (** required** ) | "group", "internal-link" | |
95
96
| label (** required** ) | string | Label that will be displayed on UI for Node |
96
- | children | Node[ ] | Use only for the "group" type |
97
+ | summary | string | Short summary for the document (applied only for "internal-link" type) |
98
+ | children | Node[ ] | Use only for the "group" type |
97
99
| args | Record<string, any> | A special set of parameters required by a certain type of node (each type has its own) |
98
100
99
101
A Node can be represented by various UI components and is specified by ` type ` prop. Supported types are listed below.
@@ -165,7 +167,7 @@ as an absolute path from the tutorial folder.
165
167
166
168
You can customize the run parameters to configure the raw mode, pipeline parameter and group mode. If specified, they will override
167
169
the configuration set in RedisInsight. If not specified - the behaviour will be defined by parameters set in RedisInsight.
168
- To specify the parameters, insert them after the ` redis-auto : ` and add the parameters in square brackets separated with a semicolon (` ; ` ) in
170
+ To specify the parameters, insert them after the ` redis: ` and add the parameters in square brackets separated with a semicolon (` ; ` ) in
169
171
the following way:
170
172
171
173
```
@@ -176,12 +178,12 @@ Ensure that all the parameters are listed **without spaces**, ordering does not
176
178
177
179
_ Supported parameters:_
178
180
179
- | Name | Values | Notes | Description |
180
- | ----------| --------------------------| -------------------------------------------| ----------------------------------------------------------------------------------------------------------------------------------------------------------|
181
- | results | * _ single_ <br />* _ group_ <br />* _ silent_ | If enabled, then pipeline mode is ignored | * _ single_ - Disable the group mode to display the command results in a batch or as separate ones.<br />* _ group_ - Enable the group mode <br />* _ silent_ : <br />&emsp ; 1. Enable the group mode <br />&emsp ; 2. Auto collapse the result <br />&emsp ; 3. Show only error commands in the results|
182
- | mode | * _ ascii_ <br />* _ raw_ | | Enable/disable the raw mode to display command results. |
183
- | pipeline | any integer number | | Configure the number of commands in the pipeline. 0 or 1 pipelines every command. |
184
- | auto | * _ true_ < br /> * _ false _ | | Configure the auto execute commands after click on the button |
181
+ | Name | Values | Notes | Description |
182
+ | ------------------ | ----------------------------------------- | ----------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- ----------------------------------------------------------------------------------------------------------------------------------------------------------|
183
+ | results | * _ single_ <br />* _ group_ <br />* _ silent_ | If enabled, then pipeline mode is ignored | * _ single_ - Disable the group mode to display the command results in a batch or as separate ones.<br />* _ group_ - Enable the group mode <br />* _ silent_ : <br />&emsp ; 1. Enable the group mode <br />&emsp ; 2. Auto collapse the result <br />&emsp ; 3. Show only error commands in the results |
184
+ | mode | * _ ascii_ <br />* _ raw_ | | Enable/disable the raw mode to display command results. |
185
+ | pipeline | any integer number | | Configure the number of commands in the pipeline. 0 or 1 pipelines every command. |
186
+ | run_confirmation | * _ true_ | If _ true _ RedisInsight will display confirmation dialog to run the commands | Enabling this parameter shows for particular query confirmation dialog |
185
187
186
188
187
189
_ Notes:_
@@ -200,3 +202,51 @@ redis:[results=single;pipeline=4]
200
202
redis:[results=group;mode=ascii]
201
203
redis:[auto=true;pipeline=8;mode=raw;results=single;]
202
204
```
205
+
206
+ ### Links configuration
207
+
208
+ #### Internal links
209
+ You can insert links that lead to a specific page. The syntax for these links is following:
210
+ ```
211
+ [{text}](redisinsight:{path})
212
+ ```
213
+
214
+ For example:
215
+ ```
216
+ [Browser](redisinsight:browser)
217
+ ```
218
+
219
+ The full list of pages:
220
+
221
+ | Page | path |
222
+ | ---------------------------------------------| -------------------------------|
223
+ | Home Page (List of databases) | / |
224
+ | Browser | browser |
225
+ | Workbench | workbench |
226
+ | Analytics (will be redirected to first tab) | analytics |
227
+ | Cluster Details | analytics/cluster-details |
228
+ | Database Analysis | analytics/database-analysis |
229
+ | Slow Log | analytics/slowlog |
230
+ | Pub Sub | pub-sub |
231
+ | Triggers and Functions | triggered-functions |
232
+ | Libraries | triggered-functions/libraries |
233
+ | Functions | triggered-functions/functions |
234
+ | Settings | settings |
235
+
236
+ #### Create a free Cloud database link
237
+
238
+ Also, there is a possibility to insert link which opens Create Free Database dialog inside RedisInsight
239
+
240
+ > * Note* : For Docker builds these links will work as pure external links
241
+
242
+ Syntax:
243
+ ```
244
+ [{title}]({link} 'Redis Cloud')
245
+ ```
246
+
247
+ For example:
248
+ ```
249
+ [Create a free database](https://redis.com/try-free 'Redis Cloud')
250
+ ```
251
+
252
+
0 commit comments