Skip to content

Commit 7ab4954

Browse files
committed
Merge branch 'main' into DOC-4825
2 parents b6fdd63 + f6359f0 commit 7ab4954

File tree

535 files changed

+11639
-3551
lines changed

Some content is hidden

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

535 files changed

+11639
-3551
lines changed

.github/workflows/main-staging.yml

Lines changed: 35 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ jobs:
6060
setBaseUrl
6161
kubernetes_versions=($(find content/operate/kubernetes/ -maxdepth 1 -type d -regex ".*[0-9-]" | awk -F/ '{print $NF}'))
6262
rs_versions=($(find content/operate/rs/ -maxdepth 1 -type d -regex ".*[0-9-]" | awk -F/ '{print $NF}'))
63+
rdi_versions=($(find content/integrate/redis-data-integration/ -maxdepth 1 -type d -regex ".*[0-9-]" | awk -F/ '{print $NF}'))
6364
6465
# build latest
6566
for version in "${kubernetes_versions[@]}"; do
@@ -68,6 +69,9 @@ jobs:
6869
for version in "${rs_versions[@]}"; do
6970
rm -r "content/operate/rs/${version}"
7071
done
72+
for version in "${rdi_versions[@]}"; do
73+
rm -r "content/integrate/redis-data-integration/${version}"
74+
done
7175
make all
7276
7377
git checkout .
@@ -89,7 +93,7 @@ jobs:
8993
sed -i 's/linkTitle: '"${version}"'/linkTitle: Redis for Kubernetes/' content/operate/kubernetes/_index.md
9094
9195
# inject replace command in meta-links to make sure editURL and issuesURL point to right version
92-
sed -i "11i \{\{ \$gh_file = replaceRE \`\^operate\/kubernetes\/\` \"operate\/kubernetes\/$version\/\" \$gh_file }}" layouts/partials/meta-links.html
96+
sed -i "12i \{\{ \$gh_file = replaceRE \`\^operate\/kubernetes\/\` \"operate\/kubernetes\/$version\/\" \$gh_file }}" layouts/partials/meta-links.html
9397
9498
hugo -d "kubernetes-${version}"
9599
@@ -112,13 +116,36 @@ jobs:
112116
sed -i 's/linkTitle: '"${version}"'/linkTitle: Redis Software/' content/operate/rs/_index.md
113117
114118
# inject replace command in meta-links to make sure editURL and issuesURL point to right version
115-
sed -i "11i \{\{ \$gh_file = replaceRE \`\^operate\/rs\/\` \"operate\/rs\/$version\/\" \$gh_file }}" layouts/partials/meta-links.html
119+
sed -i "12i \{\{ \$gh_file = replaceRE \`\^operate\/rs\/\` \"operate\/rs\/$version\/\" \$gh_file }}" layouts/partials/meta-links.html
116120
117121
hugo -d "rs-${version}"
118122
119123
git checkout .
120124
done
121125
126+
for version in "${rdi_versions[@]}"; do
127+
128+
setBaseUrl
129+
130+
# for each version, remove all other versions before building
131+
versions_to_remove=($(echo "${rdi_versions[@]}" "${version}" | tr ' ' '\n' | sort | uniq -u))
132+
for version_to_remove in "${versions_to_remove[@]}"; do
133+
rm -r "content/integrate/redis-data-integration/${version_to_remove}"
134+
done
135+
136+
cp -r "content/integrate/redis-data-integration/${version}"/* content/integrate/redis-data-integration/
137+
rm -r "content/integrate/redis-data-integration/${version}"
138+
sed -i 's/id="versionSelectorRedis-Data-IntegrationValue" class="version-selector-control">latest/id="versionSelectorRedis-Data-IntegrationValue" class="version-selector-control">v'"${version}"'/' layouts/partials/docs-nav.html
139+
sed -i 's/linkTitle: '"${version}"'/linkTitle: Redis Data Integration/' content/integrate/redis-data-integration/_index.md
140+
141+
# inject replace command in meta-links to make sure editURL and issuesURL point to right version
142+
sed -i "12i \{\{ \$gh_file = replaceRE \`\^integrate\/redis-data-integration\/\` \"integrate\/redis-data-integration\/$version\/\" \$gh_file }}" layouts/partials/meta-links.html
143+
144+
hugo -d "redis-data-integration-${version}"
145+
146+
git checkout .
147+
done
148+
122149
- name: List client examples
123150
run: ls "${{ github.workspace }}/examples"
124151
- name: List files to be published
@@ -152,8 +179,12 @@ jobs:
152179
153180
versioned_builds=($(find . -type d -regex ".*[0-9-]" -maxdepth 1 | sed -E 's/^.\///'))
154181
for versioned_build in "${versioned_builds[@]}"; do
155-
product=$(grep -Eo '[a-zA-Z]+' <<< $versioned_build)
156-
gsutil -m rsync -r -c -j html -d "${{ github.workspace }}/${versioned_build}/operate/${product}" "gs://${BUCKET}/${versioned_build}/operate/${product}"
182+
product=$(awk 'BEGIN{FS=OFS="-"}{NF--; print}' <<< $versioned_build)
183+
if [[ "${product}" == "redis-data-integration" ]]; then
184+
gsutil -m rsync -r -c -j html -d "${{ github.workspace }}/${versioned_build}/integrate/${product}" "gs://${BUCKET}/${versioned_build}/integrate/${product}"
185+
else
186+
gsutil -m rsync -r -c -j html -d "${{ github.workspace }}/${versioned_build}/operate/${product}" "gs://${BUCKET}/${versioned_build}/operate/${product}"
187+
fi
157188
done
158189
159190
- name: End

.github/workflows/main.yml

Lines changed: 41 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ jobs:
6060
setBaseUrl
6161
kubernetes_versions=($(find content/operate/kubernetes/ -maxdepth 1 -type d -regex ".*[0-9-]" | awk -F/ '{print $NF}'))
6262
rs_versions=($(find content/operate/rs/ -maxdepth 1 -type d -regex ".*[0-9-]" | awk -F/ '{print $NF}'))
63+
rdi_versions=($(find content/integrate/redis-data-integration/ -maxdepth 1 -type d -regex ".*[0-9-]" | awk -F/ '{print $NF}'))
6364
6465
# build latest
6566
for version in "${kubernetes_versions[@]}"; do
@@ -68,6 +69,9 @@ jobs:
6869
for version in "${rs_versions[@]}"; do
6970
rm -r "content/operate/rs/${version}"
7071
done
72+
for version in "${rdi_versions[@]}"; do
73+
rm -r "content/integrate/redis-data-integration/${version}"
74+
done
7175
make all
7276
7377
git checkout .
@@ -89,7 +93,7 @@ jobs:
8993
sed -i 's/linkTitle: '"${version}"'/linkTitle: Redis for Kubernetes/' content/operate/kubernetes/_index.md
9094
9195
# inject replace command in meta-links to make sure editURL and issuesURL point to right version
92-
sed -i "11i \{\{ \$gh_file = replaceRE \`\^operate\/kubernetes\/\` \"operate\/kubernetes\/$version\/\" \$gh_file }}" layouts/partials/meta-links.html
96+
sed -i "12i \{\{ \$gh_file = replaceRE \`\^operate\/kubernetes\/\` \"operate\/kubernetes\/$version\/\" \$gh_file }}" layouts/partials/meta-links.html
9397
9498
hugo -d "kubernetes-${version}"
9599
@@ -112,13 +116,36 @@ jobs:
112116
sed -i 's/linkTitle: '"${version}"'/linkTitle: Redis Software/' content/operate/rs/_index.md
113117
114118
# inject replace command in meta-links to make sure editURL and issuesURL point to right version
115-
sed -i "11i \{\{ \$gh_file = replaceRE \`\^operate\/rs\/\` \"operate\/rs\/$version\/\" \$gh_file }}" layouts/partials/meta-links.html
119+
sed -i "12i \{\{ \$gh_file = replaceRE \`\^operate\/rs\/\` \"operate\/rs\/$version\/\" \$gh_file }}" layouts/partials/meta-links.html
116120
117121
hugo -d "rs-${version}"
118122
119123
git checkout .
120124
done
121125
126+
for version in "${rdi_versions[@]}"; do
127+
128+
setBaseUrl
129+
130+
# for each version, remove all other versions before building
131+
versions_to_remove=($(echo "${rdi_versions[@]}" "${version}" | tr ' ' '\n' | sort | uniq -u))
132+
for version_to_remove in "${versions_to_remove[@]}"; do
133+
rm -r "content/integrate/redis-data-integration/${version_to_remove}"
134+
done
135+
136+
cp -r "content/integrate/redis-data-integration/${version}"/* content/integrate/redis-data-integration/
137+
rm -r "content/integrate/redis-data-integration/${version}"
138+
sed -i 's/id="versionSelectorRedis-Data-IntegrationValue" class="version-selector-control">latest/id="versionSelectorRedis-Data-IntegrationValue" class="version-selector-control">v'"${version}"'/' layouts/partials/docs-nav.html
139+
sed -i 's/linkTitle: '"${version}"'/linkTitle: Redis Data Integration/' content/integrate/redis-data-integration/_index.md
140+
141+
# inject replace command in meta-links to make sure editURL and issuesURL point to right version
142+
sed -i "12i \{\{ \$gh_file = replaceRE \`\^integrate\/redis-data-integration\/\` \"integrate\/redis-data-integration\/$version\/\" \$gh_file }}" layouts/partials/meta-links.html
143+
144+
hugo -d "redis-data-integration-${version}"
145+
146+
git checkout .
147+
done
148+
122149
- name: List client examples
123150
run: ls "${{ github.workspace }}/examples"
124151
- name: List files to be published
@@ -154,17 +181,25 @@ jobs:
154181
then
155182
versioned_builds=($(find . -type d -regex ".*[0-9-]" -maxdepth 1 | sed -E 's/^.\///'))
156183
for versioned_build in "${versioned_builds[@]}"; do
157-
product=$(grep -Eo '[a-zA-Z]+' <<< $versioned_build)
158-
gsutil -m rsync -r -c -j html -d "${{ github.workspace }}/${versioned_build}/operate/${product}" "gs://${BUCKET}/${versioned_build}/operate/${product}"
184+
product=$(awk 'BEGIN{FS=OFS="-"}{NF--; print}' <<< $versioned_build)
185+
if [[ "${product}" == "redis-data-integration" ]]; then
186+
gsutil -m rsync -r -c -j html -d "${{ github.workspace }}/${versioned_build}/integrate/${product}" "gs://${BUCKET}/${versioned_build}/integrate/${product}"
187+
else
188+
gsutil -m rsync -r -c -j html -d "${{ github.workspace }}/${versioned_build}/operate/${product}" "gs://${BUCKET}/${versioned_build}/operate/${product}"
189+
fi
159190
done
160191
fi
161192
162193
if [[ "$bucket_path" == staging/* ]]
163194
then
164195
versioned_builds=($(find . -type d -regex ".*[0-9-]" -maxdepth 1 | sed -E 's/^.\///'))
165196
for versioned_build in "${versioned_builds[@]}"; do
166-
product=$(grep -Eo '[a-zA-Z]+' <<< $versioned_build)
167-
gsutil -m rsync -r -c -j html -d "${{ github.workspace }}/${versioned_build}/operate/${product}" "gs://${BUCKET}/${bucket_path}/${versioned_build}/operate/${product}"
197+
product=$(awk 'BEGIN{FS=OFS="-"}{NF--; print}' <<< $versioned_build)
198+
if [[ "${product}" == "redis-data-integration" ]]; then
199+
gsutil -m rsync -r -c -j html -d "${{ github.workspace }}/${versioned_build}/integrate/${product}" "gs://${BUCKET}/${bucket_path}/${versioned_build}/integrate/${product}"
200+
else
201+
gsutil -m rsync -r -c -j html -d "${{ github.workspace }}/${versioned_build}/operate/${product}" "gs://${BUCKET}/${bucket_path}/${versioned_build}/operate/${product}"
202+
fi
168203
done
169204
fi
170205

assets/css/index.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,11 @@ select {
102102
@apply relative block text-redis-pen-600 hover:text-redis-pen-300 -my-0.5 py-1 pl-6 transition-colors leading-6;
103103
}
104104

105+
/* Increase indentation for deeper nested items */
106+
#TableOfContents ul ul a {
107+
@apply pl-10; /* Second level */
108+
}
109+
105110
#TableOfContents a:before {
106111
content: '';
107112
@apply w-1 h-full bg-redis-pencil-250 absolute left-0 top-0 rounded-sm transition;

config.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ rdi_redis_gears_version = "1.2.6"
5555
rdi_debezium_server_version = "2.3.0.Final"
5656
rdi_db_types = "cassandra|mysql|oracle|postgresql|sqlserver"
5757
rdi_cli_latest = "latest"
58-
rdi_current_version = "v1.6.0"
58+
rdi_current_version = "v1.6.1"
5959

6060
[params.clientsConfig]
6161
"Python"={quickstartSlug="redis-py"}

content/commands/acl-setuser/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ This is a list of all the supported Redis ACL rules:
131131
* `#<hashedpassword>`: Adds the specified hashed password to the list of user passwords. A Redis hashed password is hashed with SHA256 and translated into a hexadecimal string. Example: `#c3ab8ff13720e8ad9047dd39466b3c8974e592c2fa383d4a3960714caef0c4f2`.
132132
* `<password`: Like `>password` but removes the password instead of adding it.
133133
* `!<hashedpassword>`: Like `#<hashedpassword>` but removes the password instead of adding it.
134-
* `(<rule list>)`: (Available in Redis 7.0 and later) Creates a new selector to match rules against. Selectors are evaluated after the user permissions, and are evaluated according to the order they are defined. If a command matches either the user permissions or any selector, it is allowed. See [selectors]({{< baseurl >}}/operate/oss_and_stack/management/security/acl#selectors) for more information.
134+
* `(<rule list>)`: (Available in Redis 7.0 and later) Creates a new selector to match rules against. Selectors are evaluated after the user permissions, and are evaluated according to the order they are defined. If a command matches either the user permissions or any selector, it is allowed. See [selectors]({{< baseurl >}}operate/oss_and_stack/management/security/acl#selectors) for more information.
135135
* `clearselectors`: (Available in Redis 7.0 and later) Deletes all of the selectors attached to the user.
136136
* `reset`: Removes any capability from the user. They are set to off, without passwords, unable to execute any command, unable to access any key.
137137

content/commands/bf.add/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,15 @@ title: BF.ADD
2929
---
3030
Adds an item to a Bloom filter.
3131

32-
This command is similar to [`BF.MADD`]({{< baseurl >}}/commands/bf.madd/), except that only one item can be added.
32+
This command is similar to [`BF.MADD`]({{< baseurl >}}commands/bf.madd/), except that only one item can be added.
3333

3434
## Required arguments
3535

3636
<details open><summary><code>key</code></summary>
3737

3838
is key name for a Bloom filter to add the item to.
3939

40-
If `key` does not exist - a new Bloom filter is created with default error rate, capacity, and expansion (see [`BF.RESERVE`]({{< baseurl >}}/commands/bf.reserve/)).
40+
If `key` does not exist - a new Bloom filter is created with default error rate, capacity, and expansion (see [`BF.RESERVE`]({{< baseurl >}}commands/bf.reserve/)).
4141
</details>
4242

4343
<details open><summary><code>item</code></summary>

content/commands/bf.exists/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ title: BF.EXISTS
2929
---
3030
Determines whether a given item was added to a Bloom filter.
3131

32-
This command is similar to [`BF.MEXISTS`]({{< baseurl >}}/commands/bf.mexists/), except that only one item can be checked.
32+
This command is similar to [`BF.MEXISTS`]({{< baseurl >}}commands/bf.mexists/), except that only one item can be checked.
3333

3434
## Required arguments
3535

content/commands/bf.insert/index.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ title: BF.INSERT
5858
---
5959
Creates a new Bloom filter if the `key` does not exist using the specified error rate, capacity, and expansion, then adds all specified items to the Bloom Filter.
6060

61-
This command is similar to [`BF.MADD`]({{< baseurl >}}/commands/bf.madd/), except that the error rate, capacity, and expansion can be specified. It is a sugarcoated combination of [`BF.RESERVE`]({{< baseurl >}}/commands/bf.reserve/) and [`BF.MADD`]({{< baseurl >}}/commands/bf.madd/).
61+
This command is similar to [`BF.MADD`]({{< baseurl >}}commands/bf.madd/), except that the error rate, capacity, and expansion can be specified. It is a sugarcoated combination of [`BF.RESERVE`]({{< baseurl >}}commands/bf.reserve/) and [`BF.MADD`]({{< baseurl >}}commands/bf.madd/).
6262

6363
## Required arguments
6464

@@ -89,14 +89,14 @@ It is an error to specify `NOCREATE` together with either `CAPACITY` or `ERROR`.
8989
Specifies the desired `capacity` for the filter to be created.
9090
This parameter is ignored if the filter already exists.
9191
If the filter is automatically created and this parameter is absent, then the module-level `capacity` is used.
92-
See [`BF.RESERVE`]({{< baseurl >}}/commands/bf.reserve/) for more information about the impact of this value.
92+
See [`BF.RESERVE`]({{< baseurl >}}commands/bf.reserve/) for more information about the impact of this value.
9393
</details>
9494

9595
<details open><summary><code>ERROR error</code></summary>
9696

9797
Specifies the `error` ratio of the newly created filter if it does not yet exist.
9898
If the filter is automatically created and `error` is not specified then the module-level error rate is used.
99-
See [`BF.RESERVE`]({{< baseurl >}}/commands/bf.reserve/) for more information about the format of this value.
99+
See [`BF.RESERVE`]({{< baseurl >}}commands/bf.reserve/) for more information about the format of this value.
100100
</details>
101101

102102
<details open><summary><code>NONSCALING</code></summary>

content/commands/bf.loadchunk/index.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ syntax_fmt: BF.LOADCHUNK key iterator data
2929
syntax_str: iterator data
3030
title: BF.LOADCHUNK
3131
---
32-
Restores a Bloom filter previously saved using [`BF.SCANDUMP`]({{< baseurl >}}/commands/bf.scandump/).
32+
Restores a Bloom filter previously saved using [`BF.SCANDUMP`]({{< baseurl >}}commands/bf.scandump/).
3333

34-
See the [`BF.SCANDUMP`]({{< baseurl >}}/commands/bf.scandump/) command for example usage.
34+
See the [`BF.SCANDUMP`]({{< baseurl >}}commands/bf.scandump/) command for example usage.
3535

3636
<note><b>Notes</b>
3737

@@ -49,12 +49,12 @@ is key name for a Bloom filter to restore.
4949

5050
<details open><summary><code>iterator</code></summary>
5151

52-
Iterator value associated with `data` (returned by [`BF.SCANDUMP`]({{< baseurl >}}/commands/bf.scandump/))
52+
Iterator value associated with `data` (returned by [`BF.SCANDUMP`]({{< baseurl >}}commands/bf.scandump/))
5353
</details>
5454

5555
<details open><summary><code>data</code></summary>
5656

57-
Current data chunk (returned by [`BF.SCANDUMP`]({{< baseurl >}}/commands/bf.scandump/))
57+
Current data chunk (returned by [`BF.SCANDUMP`]({{< baseurl >}}commands/bf.scandump/))
5858
</details>
5959

6060
## Return value
@@ -66,4 +66,4 @@ Returns one of these replies:
6666

6767
## Examples
6868

69-
See [`BF.SCANDUMP`]({{< baseurl >}}/commands/bf.scandump/) for an example.
69+
See [`BF.SCANDUMP`]({{< baseurl >}}commands/bf.scandump/) for an example.

content/commands/bf.madd/index.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,17 +33,17 @@ title: BF.MADD
3333
---
3434
Adds one or more items to a Bloom filter.
3535

36-
This command is similar to [`BF.ADD`]({{< baseurl >}}/commands/bf.add/), except that you can add more than one item.
36+
This command is similar to [`BF.ADD`]({{< baseurl >}}commands/bf.add/), except that you can add more than one item.
3737

38-
This command is similar to [`BF.INSERT`]({{< baseurl >}}/commands/bf.insert/), except that the error rate, capacity, and expansion cannot be specified.
38+
This command is similar to [`BF.INSERT`]({{< baseurl >}}commands/bf.insert/), except that the error rate, capacity, and expansion cannot be specified.
3939

4040
## Required arguments
4141

4242
<details open><summary><code>key</code></summary>
4343

4444
is key name for a Bloom filter to add the items to.
4545

46-
If `key` does not exist - a new Bloom filter is created with default error rate, capacity, and expansion (see [`BF.RESERVE`]({{< baseurl >}}/commands/bf.reserve/)).
46+
If `key` does not exist - a new Bloom filter is created with default error rate, capacity, and expansion (see [`BF.RESERVE`]({{< baseurl >}}commands/bf.reserve/)).
4747
</details>
4848

4949
<details open><summary><code>item...</code></summary>

0 commit comments

Comments
 (0)