Skip to content

Commit 9876dc9

Browse files
Copilotmadolson
andcommitted
Clean up test data and update documentation for sidebar performance fix
Co-authored-by: madolson <34459052+madolson@users.noreply.github.com>
1 parent 7aaf34e commit 9876dc9

File tree

2 files changed

+9
-2802
lines changed

2 files changed

+9
-2802
lines changed

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,15 @@ From the root directory of this repo run:
8888
../valkey-bloom/src/commands ../valkey-json/src/commands ../valkey-search/src/commands
8989
```
9090

91+
After setting up the command files, generate the command sidebar data for optimal build performance:
92+
93+
```shell
94+
# Run this after init-commands.sh or when command metadata changes
95+
./build/generate-sidebar-data.sh
96+
```
97+
98+
This script pre-processes all command JSON files into a single `_data/commands_sidebar.json` file, which dramatically improves build times by avoiding redundant file operations across hundreds of command pages.
99+
91100
Then, restart Zola.
92101
Point your browser at `http://127.0.0.1:1111/commands/` and you should see the fully populated list of topics.
93102
All files created in this process are ignored by git.

0 commit comments

Comments
 (0)