Skip to content

Commit 3a688e0

Browse files
Add Redis commands reference pages for versions 6.2, 7.2, and 7.4, update all pages with sentence case headings, weights, and summaries
- Added redis-6-2-commands.md with 423 commands (23 new in 6.2) - Added redis-7-2-commands.md with 465 commands (4 new in 7.2) - Added redis-7-4-commands.md with 474 commands (9 new in 7.4) - Updated all command pages to use sentence case for section headings - Added version-based weights for proper navigation ordering (8.4 at top with weight 1, down to 6.2 with weight 6) - Added summary field matching description for all pages - Updated generate_version_commands_page.py script to support these features
1 parent b6fffdc commit 3a688e0

File tree

7 files changed

+16799
-144
lines changed

7 files changed

+16799
-144
lines changed

build/generate_version_commands_page.py

Lines changed: 35 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -13,27 +13,27 @@
1313

1414
# Command group display names and order
1515
GROUP_ORDER = [
16-
('string', 'String Commands'),
17-
('hash', 'Hash Commands'),
18-
('list', 'List Commands'),
19-
('set', 'Set Commands'),
20-
('sorted-set', 'Sorted Set Commands'),
21-
('stream', 'Stream Commands'),
22-
('bitmap', 'Bitmap Commands'),
23-
('hyperloglog', 'HyperLogLog Commands'),
24-
('geo', 'Geospatial Commands'),
25-
('json', 'JSON Commands'),
26-
('search', 'Search Commands'),
27-
('timeseries', 'Time Series Commands'),
28-
('bloom', 'Probabilistic Commands'),
29-
('vector_set', 'Vector Set Commands'),
30-
('pubsub', 'Pub/Sub Commands'),
31-
('transactions', 'Transaction Commands'),
32-
('scripting', 'Scripting Commands'),
33-
('connection', 'Connection Commands'),
34-
('server', 'Server Commands'),
35-
('cluster', 'Cluster Commands'),
36-
('generic', 'Generic Commands'),
16+
('string', 'String commands'),
17+
('hash', 'Hash commands'),
18+
('list', 'List commands'),
19+
('set', 'Set commands'),
20+
('sorted-set', 'Sorted set commands'),
21+
('stream', 'Stream commands'),
22+
('bitmap', 'Bitmap commands'),
23+
('hyperloglog', 'HyperLogLog commands'),
24+
('geo', 'Geospatial commands'),
25+
('json', 'JSON commands'),
26+
('search', 'Search commands'),
27+
('timeseries', 'Time series commands'),
28+
('bloom', 'Probabilistic commands'),
29+
('vector_set', 'Vector set commands'),
30+
('pubsub', 'Pub/Sub commands'),
31+
('transactions', 'Transaction commands'),
32+
('scripting', 'Scripting commands'),
33+
('connection', 'Connection commands'),
34+
('server', 'Server commands'),
35+
('cluster', 'Cluster commands'),
36+
('generic', 'Generic commands'),
3737
]
3838

3939
def parse_frontmatter(content):
@@ -126,11 +126,24 @@ def generate_page_content(commands_by_group, target_version):
126126

127127
version_display = target_version.rsplit('.', 1)[0] # "8.4.0" -> "8.4"
128128

129+
# Calculate weight based on version (higher version = lower weight = appears first)
130+
# Weight mapping: 8.4->1, 8.2->2, 8.0->3, 7.4->4, 7.2->5, 6.2->6
131+
version_weights = {
132+
'8.4': 1,
133+
'8.2': 2,
134+
'8.0': 3,
135+
'7.4': 4,
136+
'7.2': 5,
137+
'6.2': 6,
138+
}
139+
weight = version_weights.get(version_display, 10)
140+
129141
# Header
130142
content.append(f'''---
131143
title: Redis {version_display} Commands Reference
132144
linkTitle: Redis {version_display} Commands
133145
description: Complete list of all Redis commands available in version {version_display}, organized by functional group
146+
summary: Complete list of all Redis commands available in version {version_display}, organized by functional group
134147
layout: single
135148
type: develop
136149
categories:
@@ -142,7 +155,7 @@ def generate_page_content(commands_by_group, target_version):
142155
- rc
143156
- kubernetes
144157
- clients
145-
weight: 1
158+
weight: {weight}
146159
---
147160
148161
This page provides a comprehensive reference of all Redis commands available in Redis {version_display}, organized by functional group. Each command includes its description and syntax in a collapsible section for easy navigation.

0 commit comments

Comments
 (0)