You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Adding functionality for the bloom module to have its commands displayed on the Valkey website (#212)
Related PR's
Bloom repo json command files:
valkey-io/valkey-bloom#47
Valkey-doc repo: valkey-io/valkey-doc#233
### Description
This PR will allow set the framework so that modules can have their
commands displayed on the valkey website (By adding the bloom module
commands in a way that can be easily expanded on). I have tried to make
this future proof by using a for loop on the `commands.html` page which
can be expanded by just adding any new folders we want to pull commands
from. For the `command-page.html` I have used an array to hold the data
from the multiple folders with commands and then get the first
occurrence that isn't empty (i.e the command belongs to that folder).
This will keep ability so that if the command doesn't exist we still
have the same fallback.
Updated the `init-commands.sh` to create a link for the bloom commands
as well and take in the bloom repository.
I have updated the README as well to include the new repo that will be
needed for the commands and the information change associated with now
expecting commands from the bloom repo.
Lastly updated the github workflow as well to also now build and take in
the bloom repo
**For screenshots of the new documentation the two pr's above
(valkey-io/valkey-doc#233 and
valkey-io/valkey-bloom#47) have screenshots of
all sections being added**
### Check List
- [x] Commits are signed per the DCO using `--signoff`
By submitting this pull request, I confirm that my contribution is made
under the terms of the BSD-3-Clause License.
Signed-off-by: zackcam <[email protected]>
Copy file name to clipboardExpand all lines: README.md
+5-5
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
# Valkey.io website
2
2
3
3
This repo contains the source for the valkey.io website (build scripts, template, blog posts, stylesheets, etc.).
4
-
The build integrates content from [`valkey-io/valkey-doc`](https://github.com/valkey-io/valkey-doc) and the commands definitions from [`valkey-io/valkey`](https://github.com/valkey-io/valkey) (see [Build Locally](#build-locally) below for more details).
4
+
The build integrates content from [`valkey-io/valkey-doc`](https://github.com/valkey-io/valkey-doc) and the commands definitions from [`valkey-io/valkey`](https://github.com/valkey-io/valkey)and [`valkey-io/valkey-bloom`](https://github.com/valkey-io/valkey-bloom)(see [Build Locally](#build-locally) below for more details).
5
5
6
6
## Contributing
7
7
@@ -63,8 +63,8 @@ Commit your changes to your local copy of `valkey-io/valkey-doc`.
63
63
64
64
### Building the command reference
65
65
66
-
The command reference (i.e. `/commands/set/`, `/commands/get/`, `/commands/lolwut/`) sources information from `valkey-io/valkey`, and `valkey-io/valkey-doc`.
67
-
`valkey-io/valkey` provides the command metadata (items like computational complexity, version history, arguments, etc) whilst `valkey-io/valkey-doc` provides the command description and the command reply.
66
+
The command reference (i.e. `/commands/set/`, `/commands/get/`, `/commands/lolwut/`) sources information from `valkey-io/valkey`, `valkey-io/valkey-bloom`, and `valkey-io/valkey-doc`.
67
+
`valkey-io/valkey`and `valkey-io/valkey-bloom`provides the command metadata (items like computational complexity, version history, arguments, etc) whilst `valkey-io/valkey-doc` provides the command description and the command reply.
68
68
69
69
```mermaid
70
70
flowchart TD
@@ -75,13 +75,13 @@ flowchart TD
75
75
H --> J[Files: /resp2_replies.json,<br/>/resp3_replies.json] --> Z[Command Reply]
76
76
```
77
77
78
-
Let's say that this repo and your local copy of `valkey-io/valkey-doc` and `valkey-io/valkey` reside in the same directories.
78
+
Let's say that this repo and your local copy of `valkey-io/valkey-doc`, `valkey-io/valkey-bloom` and `valkey-io/valkey` reside in the same directories.
79
79
First, stop the `zola serve` process if you're running it.
80
80
From the root directory of this repo run:
81
81
82
82
```shell
83
83
# You should only need to run this once or when you add a new command.
0 commit comments