Repository navigation
Conversation
build/doc-sources.csv lists the repos the command and topic pages come from: valkey (core), the modules, valkey-bundle, and valkey-doc as the fallback. build/checkout-doc-sources.sh clones them for CI, and build/init-docs.sh replaces init-topics.sh and init-commands.sh: it links docs/commands/*.md, docs/topics/* and src/commands/*.json from every repo, and the fallback's commands/ and topics/ for names no code repo provides, into build-command-docs/, build-topics/ and build-command-json/. Two code repos providing the same name fail the step. The menu comes from the core repo's docs/nav.yml and each other repo's docs/nav.yml, else valkey-doc's nav.yml and modules-nav/. groups.json comes from valkey docs/, else valkey-doc; modules.json stays in valkey-doc. The command JSON is in one directory, so the templates read one path, and the menu takes its sources and "module" badges from the registry instead of config.toml. Each stub records its source repo, branch and path in [extra]. Adds valkey-ldap and valkey-bundle. valkey-search's docs/ copies of its pages now win over valkey-doc's. Signed-off-by: Madelyn Olson <madelyneolson@gmail.com>
The edit links were hard-coded to valkey-doc. They now use the source repo, branch and path that build/init-docs.sh records in each stub. Signed-off-by: Madelyn Olson <madelyneolson@gmail.com>
build/init-docs.sh runs valkey's utils/generate-module-api-doc.rb and uses its output for /topics/modules-api-ref/ instead of valkey-doc's committed copy, which goes stale between regenerations. The script needs Ruby >= 2.3; without it the fallback's copy is used, with a warning. "Available since" comes from valkey's release tags, so checkout-doc-sources.sh fetches every tag at depth 1. That gives the same output as a full clone (16 MB instead of 305 MB of .git). Signed-off-by: Madelyn Olson <madelyneolson@gmail.com>
The ../topics/<name>.md patterns in fix_links_command matched from the first link on a line to the .md of the next one, so valkey-search's ft.search.md, which has both links to search-query.md on one line, rendered /commands/topics/search-query#vector-range-match and /topics/search-query.md. Stop the file name at a closing parenthesis. No valkey-doc page changes. Signed-off-by: Madelyn Olson <madelyneolson@gmail.com>
valkey-search's docs link to ../../COMPATIBILITY.md, which isn't a page on the site. A ../../ link in a page from docs/commands/ or docs/topics/ now goes to that file in the page's repo on GitHub, which is what valkey-doc's copies of those pages link to. Signed-off-by: Madelyn Olson <madelyneolson@gmail.com>
README: how to check out and gather the docs, the file layout, the precedence and duplicate rules, and how to register a repo. The community page points contributors at the docs next to the code instead of valkey-doc. Signed-off-by: Madelyn Olson <madelyneolson@gmail.com>
8 tasks
One [[source]] table per repo, in the same order, with a comment block that explains the keys and roles and how to add a module. The shell scripts read it through build/doc-sources.py (stdlib tomllib, Python 3.11+), which also checks for unknown roles, missing keys and exactly one core and one fallback repo. The templates load it as TOML. The built site is identical. Signed-off-by: Madelyn Olson <madelyneolson@gmail.com>
Valkey Bundle isn't a module and its page stays in valkey-doc, so valkey-bundle is no longer a doc source. The fallback's menu files that no source is named after (modules-nav/valkey-bundle.yml) are merged last. Without its only user, the "other" role goes away. Signed-off-by: Madelyn Olson <madelyneolson@gmail.com>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The site now reads its command and topic pages from the code repos (
docs/commands/,docs/topics/,docs/nav.ymlin valkey and each module), with valkey-doc as the fallback for anything not moved yet and for the pages that stay there (the Valkey Bundle page), so the content PRs can merge in any order. The repos are one[[source]]table each inbuild/doc-sources.toml, which drives both the CI checkout and the gathering. Two code repos providing the same page fail the build, and every page's "Update this Page on GitHub" link points at its real source. The module API reference is generated from valkey'ssrc/module.cat build time.AI generated details
Epic: madolson/valkey#233. Spec: valkey-io/valkey#4940 ("Website changes", "Cutover plan"), with the differences in the epic's contract (website lands first,
modules-api-ref.mdgenerated, valkey-large-object moves too).Registry
role:coregives the core menu,groups.jsonand the API reference;fallbackis valkey-doc;modulegets the menu badge. valkey-bundle is not a source: its page stays in valkey-doc (madolson, 2026-11-30), and the fallback's menu files that no source is named after (modules-nav/valkey-bundle.yml) are merged last. That leftotherwithout a user, so it is gone. Table order is the menu merge order (same as the oldnav_sources).config.tomllosesnav_sources,nav_badgesand the four per-module JSON paths. To build against a content PR before it merges, change that source'srepositoryandbranch.The file opens with a comment explaining each key, the roles and how to add a module. The templates read it with
load_data. The shell scripts read it throughbuild/doc-sources.py(stdlibtomllib), which fails on an unknown role, a missing key, or anything but exactly onecoreand onefallback. That needs Python 3.11 or later. CI's ubuntu-latest (26.04) has 3.14, so no setup-python step. A local build with an olderpython3stops withbuild/doc-sources.py needs Python 3.11 or later (for tomllib), found 3.7. Proposal: accept; the alternative is parsing TOML in bash.Decisions
build/init-docs.sh <sources-dir>replacesinit-topics.shandinit-commands.sh, because both need the same registry and duplicate rules. Proposal: keep it. #4940 names the old scripts, but nothing outside this repo calls them.git cloneinstead ofactions/checkout. A composite action can't loop overuses:steps, so registering a repo would otherwise mean editing the action too.build/checkout-doc-sources.shclones each source at depth 1. Proposal: keep it. The repos are public; nothing needs a token.git tag. Every tag fetched at depth 1 produces byte-identical output to a full clone (table below). Proposal: keep depth 1 plus tags.8.0.8points at an unstable commit, so the generator reports 17 APIs from 8.1.0/9.1.0 as "since 8.0.8". Proposal: promote Adds Netapp to participants valkey-io/valkey-io.github.io#235 before this PR merges.docs/already wins today. Its upstream copies differ from valkey-doc's (list below). Two anchor links in them are broken on the site because Zola slugsFT.HYBRIDasft-hybridwhile GitHub usesfthybrid. Proposal: fix the heading or links in valkey-search. Until then, link-check on this PR reports those 2 as new.../../links. valkey-search pages link../../COMPATIBILITY.md. The templates now send../../<path>from a code repo's page tohttps://github.com/<repo>/blob/<branch>/<path>, which is the URL valkey-doc's copies hard-coded. Proposal: keep it, so code repos can link to their own files.resp2/resp3_replies.json.templates/command-page.html:180still reads them, soinit-docs.shlinks them from valkey-doc when present; at valkey-doc@7c5512ae they're gone and no link is made. Proposal: drop that template block in a follow-up.commands/index.htmlwhitespace. The command list loop now reads one JSON path instead of five, so 4 empty iterations' whitespace is gone. No visible change. Proposal: accept.init-commands.shreadsvalkey-doc/groups.json), so that PR lists every broken link instead of the new ones. That is the existing fallback inlink-check.yml. Proposal: accept for the one cutover PR.A. Transitional build (origin/main vs this branch, same sources)
Sources: valkey bb94c2ebd, valkey-doc 7c5512ae3, valkey-bloom 4d34db279, valkey-json b0b6b63ec, valkey-search c33d8c3ed, valkey-large-object 5f10fa111, valkey-ldap 0b7977315, valkey-bundle cad0a8622. Zola 0.23.6.
"content" excludes the edit link. The other 530 valkey-doc pages keep the same edit URL, so they're byte-identical.
valkey-search pages (valkey-search
docs/vs valkey-doc copy):TIMEOUTfalls back to the index'sQUERY_TIMEOUTQUERY_TIMEOUTargumentDELerror also covers a cursor whose index was replacedTIMEOUTfalls back toQUERY_TIMEOUTREGEX <pattern>argument and exampleTIMEOUTfalls back toQUERY_TIMEOUTsearch.max-regex-pattern-bytessearch-monitoring.mdisn't in valkey-search yet, so it still comes from valkey-doc.modules-api-ref (generated vs committed), by line:
With the generator fix (madolson/valkey#235), only the #5269 comment and the edit link differ.
B. Simulated cutover
Every repo's
docs/populated from valkey-doc@7c5512ae per the partition (valkey-search keeps its 16 existing files),nav.yml,modules-nav/<repo>.ymlas<repo>/docs/nav.yml,groups.jsonin valkeydocs/, and valkey-doc withoutcommands/,topics/,nav.yml,modules-nav/,groups.json:All 546 edit links in B resolve to an existing file in the simulated repos.
C. Duplicates
A duplicate
src/commands/get.jsonfails the same way.D. Link checks (baseline origin/main: 0 and 0)
B gives the same 2 and 0. Both are decision 5. Before commits 4 and 5 there were 13 and 11: 9
COMPATIBILITY.mdlinks and ft.search's two links on one line.Module API checkout
A full site build from
checkout-doc-sources.shoutput is byte-identical to the A build. Without Ruby >= 2.3:The old build-site steps (link-check's base side) on the new checkout layout give output identical to the baseline. Without jq, output is identical too (the templates read the single JSON dir).
E. actionlint 1.7.12
No findings in
link-check.yml,zola-deploy.ymlorpreview.yml. The whole repo has the same 6 SC2046 warnings indeply.ymlbefore and after. shellcheck is clean on both new scripts.Not verified
This was generated by AI but verified, with love, by a human.