Skip to content

Move commands and topics to the code repositories - #4

Open
madolson wants to merge 9 commits into
mainfrom
move-docs-out
Open

madolson wants to merge 9 commits into
mainfrom
move-docs-out

Conversation

@madolson

@madolson madolson commented Nov 30, 2026 •

Copy link
Copy Markdown
Owner

The commands, topics, menu and command groups now live in docs/ in valkey and in each module repo, so this deletes them here (except the Valkey Bundle page, which stays) and points the man page build at those repos. The module API reference man page is generated from valkey's src/module.c instead of a committed copy. Do not promote this until the valkey and module content PRs are merged upstream: until then the man page CI has nothing to build, and the website's fallback copy of every page disappears.

AI generated details

Epic: madolson/valkey#233. Spec: valkey-io/valkey#4940.

Depends on, upstream first:

What stays

clients/, libraries/, tools/, modules/, resources/, modules.json, languages.json, tool_types.json (#4940 "Stays in valkey-doc"), topics/valkey-bundle.md and modules-nav/valkey-bundle.yml (Valkey Bundle is not a module; madolson, 2026-11-30), and the man page tooling: Makefile, utils/ (minus check-links.pl).

Commits

  1. Build man pages from the docs in the code repositories (Makefile). Pages come from $(ROOT)/docs/commands/ and $(ROOT)/docs/topics/ of valkey and every module root, groups.json from $(VALKEY_ROOT)/docs/groups.json. Adds VALKEY_LDAP_ROOT: the man7 page for ldap.md is built today. Rules find each source with doc_path under .SECONDEXPANSION, so a generated topic in _build/topics/ works like a repo one. The module API reference is generated into _build/topics/modules-api-ref.md; generate-modules-api-ref, verify-modules-api-ref and the git tag -d 8.0.8 they ran on your valkey clone are gone.
  2. Turn absolute valkey.io page links into man page references (utils/links-to-man.py, behavior change). The content PRs made cross-repo links absolute (https://valkey.io/topics/ldap/). Without this, 12 more man pages render them as URLs instead of valkey-ldap(7).
  3. Delete the commands and topics moved to the code repositories, plus check-modules-api-ref.yml.
  4. Update CI ...: drops spellcheck, .spellcheckerrc.yml, wordlist, check-links and utils/check-links.pl (they only read commands/ and topics/). Man page CI checks out valkey-ldap, installs ruby, and fetches valkey with fetch-depth: 0 for the "Available since" tags.
  5. Fail early when VALKEY_ROOT has no docs/.
  6. README: where docs live, what this repo still does. The writing guide moved to valkey docs/README.md (new commit da772a5f4 on valkey PR 234).
  7. Keep the Valkey Bundle page in valkey-doc: topics/valkey-bundle.md and modules-nav/valkey-bundle.yml restored byte for byte from 7c5512a.
  8. Link the Valkey Bundle page to the pages in the code repos: its 9 relative links (valkey-json, bloomfilters, search, ldap, valkey.conf) become https://valkey.io/topics/<name>/, the same rewrite madolson/valkey-bundle PR 1 made. The file is now identical to that PR's copy.
  9. Build the Valkey Bundle man page from topics/ again: docs_in and doc_path also read this repo's topics/, after the code repos'. VALKEY_BUNDLE_ROOT and CI's valkey-bundle checkout are gone.

Decisions

  1. Release-tag man pages. Building against a valkey tag without PR 235 gives 17 wrong "since 8.0.8" lines (upstream tag 8.0.8 sits on unstable). Proposal: accept; the old Makefile deleted that tag from the user's clone, which is worse.
  2. Ruby is optional: without it the API reference man page is skipped with a message. Proposal: keep.
  3. spellcheck, check-links and wordlist are deleted, not kept idle. valkey has its own spellcheck and wordlist copy. Proposal: delete. topics/valkey-bundle.md is the one page left here; it has had 3 commits ever, and the website's link check already covers its links on the built site. Proposal: no spellcheck or link check for it here; if wanted, a spellcheck job on that one file with a short wordlist.
  4. trigger-build.yml is unchanged. It has no path filters; the website still reads modules.json from here, and an extra deploy per push is harmless. Proposal: keep.
  5. auto-tag-on-merge.yml stays; Makefile VERSION still names the man page release. Proposal: keep.
  6. There is no CONTRIBUTING.md in this repo, so nothing to update there.

Verification

Man pages, origin/main (7c5512a) against today's upstream repos vs this branch against the staged branches (valkey = 234 + 235 merged), pandoc 3.1.11.1, .TH lines (version/date) dropped:

base pages: 548, new pages: 548, file lists identical
pages that differ: 10 (22 without commit 2)
Pages Cause
ft.aggregate, ft.create, ft.cursor, ft.hybrid, ft._list, ft.search (man3), valkey-search-configurables (man7) valkey-search PR 17 reconciliation (QUERY_TIMEOUT, FT._LIST REGEX, max-regex-pattern-bytes, FT.CURSOR DEL)
valkey-modules-api-ref generated from unstable: one newer doc comment ("or if the payload exceeds the cluster bus message size limit"); no version lines differ
valkey-modules-intro 3 links whose text spans a line break (links-to-man.py skips those) now show the absolute URL instead of plain text
valkey-atomic-slot-migration an existing https://valkey.io/commands/select/ link now renders as select(3valkey) (commit 2)

Other checks: a second make man does nothing; without module roots and without Ruby the build succeeds with 65 man7 pages (84 minus 18 module topics and the API reference); a valkey without docs/ stops with VALKEY_ROOT must be a Valkey version that has its docs in docs/. make md html produce the same file list as origin/main.

Website integration build (website PR 41, all staged branches, this branch as valkey-doc): same 1385 index.html files as origin/main with upstream sources, 0 broken links, 0 unconverted links.

Not verified

  • This PR's GitHub CI. It checks out upstream valkey-io repos, which don't have docs/ yet, so it fails until the content PRs merge.
  • Man page install on a real system (make install).

This was generated by AI but verified, with love, by a human.

The commands and topics move to docs/commands/ and docs/topics/ in valkey
and the module repos, and groups.json to valkey's docs/. Read them from
there, add VALKEY_LDAP_ROOT and VALKEY_BUNDLE_ROOT for the ldap and bundle
topics, and generate the module API reference from valkey's src/module.c
instead of reading a committed copy.

Signed-off-by: Madelyn Olson <madelyneolson@gmail.com>
Links between repos are absolute, such as https://valkey.io/topics/ldap/.
Treat them like the relative links they replace, so they still render as
valkey-ldap(7) instead of a URL.

Signed-off-by: Madelyn Olson <madelyneolson@gmail.com>
commands/, topics/, nav.yml and groups.json now live in valkey-io/valkey
under docs/. Each module's pages and modules-nav/<repo>.yml live in that
module's docs/. The module API reference is generated from valkey's
src/module.c, so its check against the committed copy goes too.

Signed-off-by: Madelyn Olson <madelyneolson@gmail.com>
The spellcheck and link check covered commands/ and topics/, which are
gone; valkey and the modules check their own docs now. The man page build
checks out valkey-ldap and valkey-bundle for their topics, and installs
Ruby and fetches valkey's tags to generate the module API reference.

Signed-off-by: Madelyn Olson <madelyneolson@gmail.com>
Valkey versions before the docs moved have no docs/topics/. Say so instead
of failing on a missing _build/topics/index.md.

Signed-off-by: Madelyn Olson <madelyneolson@gmail.com>
The commands and topics, and the guide for writing them, are in valkey's
docs/ and in the module repos. This repo builds the man pages and holds the
website's client, module, library and tool data.

Signed-off-by: Madelyn Olson <madelyneolson@gmail.com>
@madolson madolson added the needs-review Staged work waiting on madolson's review label Nov 30, 2026
Valkey Bundle isn't a module, so its page and menu file stay here instead
of moving to valkey-io/valkey-bundle. Restored byte for byte from
7c5512a.

Signed-off-by: Madelyn Olson <madelyneolson@gmail.com>
Its relative links to pages that now live in valkey, valkey-json,
valkey-bloom, valkey-search and valkey-ldap become absolute valkey.io URLs,
the same rewrite madolson/valkey-bundle#1 made.

Signed-off-by: Madelyn Olson <madelyneolson@gmail.com>
The Makefile reads this repo's own topics/ after the code repos' docs/, so
VALKEY_BUNDLE_ROOT and CI's valkey-bundle checkout go away. The README says
the Valkey Bundle page lives here.

Signed-off-by: Madelyn Olson <madelyneolson@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs-review Staged work waiting on madolson's review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant