Skip to content

Commit 35e1714

Browse files
Merge pull request #35 from RedisInsight/main
Releasing latest changes
2 parents b0f7499 + 8eab9e6 commit 35e1714

File tree

2 files changed

+93
-36
lines changed

2 files changed

+93
-36
lines changed

README.md

+92-35
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
## Introduction
2-
Tutorials are documents that contain helpful use cases, comments and interesting experience about Redis and Redis Stack capabilities.
3-
It is a perfect tool to present your use cases and experience using RedisInsight Workbench and share them with others!
42

5-
This page provides an overview of the Tutorials structure, its elements and contains instructions, recommendations, and best practices for updating and sharing Tutorials.
3+
Tutorials are interactive documents that contain helpful use cases, comments, and related demonstrations of Redis features to help you level up your Redis game.
4+
You can use RedisInsight's built-in tutorials to explore powerful Redis capabilities or create custom tutorials to present your experience using RedisInsight and share them with others.
65

7-
If you want to share your own tutorials - add the `redis-tutorials` label to your GitHub repository and other GitHub users will be able to see and share your experience!
6+
This page provides an overview of the Tutorials structure and its elements. It also contains instructions, recommendations, and best practices for creating, updating and sharing Tutorials.
7+
8+
If you want to share your custom tutorials with others, add the `redis-tutorials` label to your GitHub repository so other GitHub users can find them and learn your experience.
89

910
## Navigation
1011

@@ -15,6 +16,7 @@ If you want to share your own tutorials - add the `redis-tutorials` label to you
1516
5. [Manifest](#Manifest)
1617
6. [Bulk Upload From Tutorials](#bulk-upload-from-tutorials)
1718
7. [Advanced button parameters](#Advanced)
19+
8. [Links configuration](#links-configuration)
1820

1921
## Structure
2022

@@ -23,14 +25,21 @@ Tutorials should be combined into a .zip archive that contains the following:
2325
2. [manifest.json](#Manifest) that describes the structure and behavior of Tutorials
2426

2527
## Examples
26-
If you would like to start with Tutorials, download this example with Redis Stack Tutorials and upload the archive using the "Upload Tutorial" feature in RedisInsight Workbench so you can view and understand the overall logic.
28+
If you are interested in creating your own tutorials and would like to understand how they work, you can start with the following steps:
29+
- Download this example.
30+
- Open RedisInsight.
31+
- Navigate to the Insights panel (top right corner).
32+
- Find the "My Tutorials" section on the "Explore" tab.
33+
- Click the "Upload Tutorial" button and select the example.
34+
35+
Your first custom Tutorials are uploaded, and you can open and explore them.
2736

28-
[Redis-Tutorials.zip](https://github.com/RedisInsight/Tutorials/files/11092920/Redis-Tutorials.zip)
37+
[Tutorials Example](https://github.com/RedisInsight/Tutorials/releases/download/2.42/data.zip)
2938

3039
## Markdown
3140

3241
In short, Tutorials support the basic [Markdown syntax](https://www.markdownguide.org/basic-syntax/) that you can use to specify your information.
33-
If you would like to add a button that will insert Redis commands to the Workbench Editor, use Redis Code block that is almost the same as for the [Fenced Code Block](https://www.markdownguide.org/extended-syntax/#fenced-code-blocks), but you need to specify `redis` as language and the label next to it (see the `Create` button example below).
42+
If you would like to add a button to run commands, use a Redis Code block that is almost the same as a [Fenced Code Block](https://www.markdownguide.org/extended-syntax/#fenced-code-blocks), but you need to specify `redis` as the language and write a label next to it (see the `Create` button example below).
3443

3544
````
3645
```redis Create
@@ -50,7 +59,7 @@ If you would like to add a button that will insert Redis commands to the Workben
5059
Basic [markdown syntax](https://www.markdownguide.org/basic-syntax/#images-1) provides the ability to render images.
5160

5261
To render images, you need to provide either an external URL to these images or a relative path to a folder inside of your tutorials.
53-
The folder with images can have any name, but it is recommended to start it with an underscore (_) or a dot (.) to avoid displaying it in Workbench when the [manifest](#Manifest) is automatically generated.
62+
The folder with images can have any name, but it is recommended to start it with an underscore (_) or a dot (.) to avoid displaying it in RedisInsight in cases when the [manifest](#Manifest) is automatically generated.
5463

5564
Use the following logic to specify a relative path:
5665

@@ -66,34 +75,37 @@ For example:
6675

6776
## Manifest
6877

69-
Manifest.json is not required and can be skipped, in the case of missing manifest.json, RedisInsight will:
70-
1. Take the Tutorial name from the .zip archive
71-
2. All the pages will have names the same as file names in the .zip archive
72-
3. The order of pages will be the same as in the .zip archive
78+
`manifest.json` is an optional file that describes the structure and behavior of Tutorials.
79+
If not specified, then RedisInsight will use the following logic:
80+
81+
1. the tutorial name is defined based on the name of the `.zip` archive
82+
2. Page names are defined based on the file names in the `.zip` archive
83+
3. The order of pages is defined based on the order in the `.zip` archive
7384

74-
If you would like to customize or prettify the archive name, page names, or the order, you can use the manifest.json. This JSON file is described as simple [Objects](https://javascript.info/object) which represents tree node and might have children nodes inside.
85+
If you would like to customize or prettify the archive name, page names, or the order, you can use the `manifest.json`. This JSON file is described as simple [Objects](https://javascript.info/object) which represents tree node and might have children nodes inside.
7586

76-
Manifest file should start with single Node and should have properties described
87+
The `manifest.json` file should start with single Node and should have properties described
7788
below (it will be displayed as type "group"):
7889

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 |
90+
| Prop | Type | Description |
91+
|-------------------------|----------|---------------------------------------------------------------------|
92+
| label (**required**) | string | Label that will be displayed on UI for Node |
93+
| children (**required**) | Node[] | List of Nodes (nested groups or markdown files) |
94+
| type | | Can be skipped - RedisInsight will always use the "group" parameter |
95+
| author | string | _Not required, not displayed in RedisInsight_<br/> Author name |
96+
| URL | string | _Not required, not displayed in RedisInsight_<br/> link to repository/web-site |
97+
| industry | string[] | _Not required, not displayed in RedisInsight_<br/> tags to show relevant industry |
98+
| description | string | _Not required, not displayed in RedisInsight_<br/> short description of tutorials |
8899

89100
Each Node requires a `label`,`type` (all available properties are described in the table below).
90101

91102
| Prop | Type | Description |
92103
|----------------------|--------------------------|----------------------------------------------------------------------------------------|
93-
| id | string | |
104+
| id (**required**) | string | |
94105
| type (**required**) | "group", "internal-link" | |
95106
| label (**required**) | string | Label that will be displayed on UI for Node |
96-
| children | Node[] | Use only for the "group" type |
107+
| summary | string | Short summary for the document (applied only for "internal-link" type) |
108+
| children | Node[] | Use only for the "group" type |
97109
| args | Record<string, any> | A special set of parameters required by a certain type of node (each type has its own) |
98110

99111
A Node can be represented by various UI components and is specified by `type` prop. Supported types are listed below.
@@ -127,7 +139,7 @@ The following syntax describes the `redis-upload` button:
127139
**Notes:**
128140

129141
* use only a relative path to the text file inside the tutorial folder
130-
* it is recommended to start the folder name with the text file from a dot (*.*) or underscore (*_*), so in the cases when the manifest file is automatically generated, RedisInsight will ignore this folder and not display it in your custom tutorial
142+
* it is recommended to start the folder name with the text file from a dot (*.*) or underscore (*_*), so in the cases when the `manifest,json` file is automatically generated, RedisInsight will ignore this folder and not display it in your custom tutorial
131143
* all the files included in your custom tutorials will be stored inside the RedisInsight folder as long as the tutorials exist in RedisInsight, so instead of including large text files in your custom tutorials, consider using Bulk Upload in Browser
132144

133145
**Example:**
@@ -165,7 +177,7 @@ as an absolute path from the tutorial folder.
165177

166178
You can customize the run parameters to configure the raw mode, pipeline parameter and group mode. If specified, they will override
167179
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
180+
To specify the parameters, insert them after the `redis:` and add the parameters in square brackets separated with a semicolon (`;`) in
169181
the following way:
170182

171183
```
@@ -176,12 +188,12 @@ Ensure that all the parameters are listed **without spaces**, ordering does not
176188

177189
_Supported parameters:_
178190

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 |
191+
| Name | Values | Notes | Description |
192+
|------------------|-----------------------------------------|-----------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
193+
| 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 |
194+
| mode | * _ascii_<br/>* _raw_ | | Enable/disable the raw mode to display command results. |
195+
| pipeline | any integer number | | Configure the number of commands in the pipeline. 0 or 1 pipelines every command. |
196+
| run_confirmation | * _true_ | If _true_ RedisInsight will display confirmation dialog to run the commands | Enabling this parameter shows for particular query confirmation dialog |
185197

186198

187199
_Notes:_
@@ -193,10 +205,55 @@ _Examples:_
193205

194206
```
195207
redis:[results=single]
196-
redis:[auto=true;mode=raw]
208+
redis:[mode=raw]
197209
redis:[pipeline=1]
198210
redis:[results=silent;mode=raw]
199211
redis:[results=single;pipeline=4]
200212
redis:[results=group;mode=ascii]
201-
redis:[auto=true;pipeline=8;mode=raw;results=single;]
213+
redis:[pipeline=8;mode=raw;results=single;]
214+
```
215+
### Links configuration
216+
217+
#### Internal links
218+
You can insert links that lead to a specific page inside RedisInsight. The syntax for these links is following:
219+
```
220+
[{text}](redisinsight:{path})
221+
```
222+
223+
For example:
224+
```
225+
[Browser](redisinsight:browser)
226+
```
227+
228+
The full list of pages:
229+
230+
| Page | path |
231+
|---------------------------------------------|-------------------------------|
232+
| Home Page (List of databases) | / |
233+
| Browser | browser |
234+
| Workbench | workbench |
235+
| Analytics (will be redirected to first tab) | analytics |
236+
| Cluster Details | analytics/cluster-details |
237+
| Database Analysis | analytics/database-analysis |
238+
| Slow Log | analytics/slowlog |
239+
| Pub Sub | pub-sub |
240+
| Triggers and Functions | triggered-functions |
241+
| Libraries | triggered-functions/libraries |
242+
| Functions | triggered-functions/functions |
243+
| Settings | settings |
244+
245+
246+
#### Create a free Cloud database link
247+
248+
Also, there is a possibility to insert link which opens Create Free Database dialog inside RedisInsight
249+
250+
> *Note*: For Docker builds these links will work as pure external links
251+
Syntax:
252+
```
253+
[{title}]({link} 'Redis Cloud')
254+
```
255+
256+
For example:
257+
```
258+
[Create a free database](https://redis.com/try-free 'Redis Cloud')
202259
```

src/sq/intro.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,6 @@ The search and query features of Redis Stack allow you to use Redis as a:
1818

1919
[Redis Stack](https://redis.io/download?utm_source=redisinsight&utm_medium=main&utm_campaign=tutorials) >=7.2.0-v7 \
2020
OR \
21-
[RediSearch]([https://github.com/RedisJSON/RedisJSON/](https://github.com/RediSearch/RediSearch/) >=2.8.11 \
21+
[RediSearch](https://github.com/RediSearch/RediSearch/) >=2.8.11 \
2222
OR \
2323
A free Redis Stack instance on [Redis Cloud](https://redis.com/try-free/?utm_source=redis\&utm_medium=app\&utm_campaign=redisinsight_vecsim_guide "Redis Cloud").

0 commit comments

Comments
 (0)