Skip to content

Move documentation from valkey-doc into docs/ - #1

Closed
madolson wants to merge 3 commits into
mainlinefrom
move-docs-from-valkey-doc
Closed

madolson wants to merge 3 commits into
mainlinefrom
move-docs-from-valkey-doc

Conversation

@madolson

Copy link
Copy Markdown
Owner

The valkey-bundle topic page moves here from valkey-doc, so docs ship in the same PR as the image they describe. It is copied byte for byte into docs/topics/, with the menu entries as docs/nav.yml. It stays CC-BY-SA-4.0, declared in a new REUSE.toml, and its links to the module and core topics now point at valkey.io.

AI generated details

Stage of madolson/valkey#233, implementing valkey-io/valkey#4940. Source snapshot: valkey-io/valkey-doc@7c5512a. File ownership comes from the epic's partition table.

Commits

  1. Import documentation from valkey-io/valkey-doc@7c5512ae34b8c066db77e04058459c3603c958b5
  2. License docs/ as CC-BY-SA-4.0 with REUSE.toml
  3. Make links to pages in other repositories absolute

Reviewer decisions

  1. Copyright holder. REUSE.toml names "2009-2014, Salvatore Sanfilippo", the only holder in valkey-doc COPYRIGHT line 1 at the pinned SHA, although these pages were written by Valkey contributors later. Proposal: keep it as the source says here and decide adding "Valkey contributors" once for the whole epic, so all repos match.
  2. Deploy trigger. #4940 asks module repos for a repository_dispatch trigger on pushes touching docs/** or src/commands/**. Not included: it needs the DEPLOY_ACCESS_TOKEN secret and the website PR first. Proposal: follow-up PR once the website gathers docs from this repo.

Links rewritten

Relative links whose target is owned by another repository now point at valkey.io (every URL returned HTTP 200 on 2026-11-30):

valkey-json.md -> https://valkey.io/topics/valkey-json/
bloomfilters.md -> https://valkey.io/topics/bloomfilters/
search.md -> https://valkey.io/topics/search/
ldap.md -> https://valkey.io/topics/ldap/
valkey.conf.md -> https://valkey.io/topics/valkey.conf/
valkey-json.md -> https://valkey.io/topics/valkey-json/
bloomfilters.md -> https://valkey.io/topics/bloomfilters/
search.md -> https://valkey.io/topics/search/
ldap.md -> https://valkey.io/topics/ldap/

Verification

No README, CONTRIBUTING or workflow file refers to valkey-doc (git grep -niE "valkey-doc([^k]|$)" outside docs/ is empty), and no workflow lints markdown or filters on paths that include docs/.

Scripts: verify-import.sh compares every imported blob to the valkey-doc blob at the pinned SHA; links.py resolves every relative link in docs/; pairs.sh pairs src/commands/*.json with docs/commands/*.md.

$ verify-import.sh
valkey-bundle import f9fe576dffcaf7f0c661cbb087062da4b01db730: commands=0 topics=1 nav=1 identical=2 mismatched=0 files_in_commit=2 (expected 2)

$ links.py (final tree; OK = resolves in repo, any other class would be listed)
valkey-bundle links:  rewritten=0

$ pairs.sh (src/commands/*.json vs docs/commands/*.md)
valkey-bundle: 0 json, 0 pages

$ git diff --stat origin/mainline
 LICENSES/CC-BY-SA-4.0.txt    | 170 ++++++++++++++++++++++++++++
 REUSE.toml                   |   9 ++
 docs/nav.yml                 |   5 +
 docs/topics/valkey-bundle.md | 256 +++++++++++++++++++++++++++++++++++++++++++
 4 files changed, 440 insertions(+)
verify-import.sh
#!/bin/bash
# usage: verify-import.sh <repo>; compares the import commit's blobs to valkey-doc blobs at SRC
set -uo pipefail
r=$1; SRC=7c5512ae34b8c066db77e04058459c3603c958b5; W=/tmp/docs-split-$r; VD=~/git/valkey-doc
C=$(git -C $W log --format=%H --grep="^Import documentation from valkey-io/valkey-doc@$SRC" -1)
ok=0; bad=0; cmd=0; top=0
while read p; do
  a=$(git -C $VD rev-parse $SRC:$p); d=$(git -C $W rev-parse $C:docs/$p 2>/dev/null || echo missing)
  if [ "$a" = "$d" ]; then ok=$((ok+1)); else bad=$((bad+1)); echo "MISMATCH $p"; fi
  case $p in commands/*) cmd=$((cmd+1));; topics/*) top=$((top+1));; esac
done < <(awk -F'\t' -v r=$r '$2==r{print $1}' ~/docs-split/partition.tsv)
a=$(git -C $VD rev-parse $SRC:modules-nav/$r.yml); d=$(git -C $W rev-parse $C:docs/nav.yml)
[ "$a" = "$d" ] && ok=$((ok+1)) || { bad=$((bad+1)); echo "MISMATCH nav.yml"; }
extra=$(git -C $W diff-tree --no-commit-id --name-only -r $C | wc -l)
echo "$r import $C: commands=$cmd topics=$top nav=1 identical=$ok mismatched=$bad files_in_commit=$extra (expected $((cmd+top+1)))"

reuse lint (fsfe/reuse docker image) on this branch, filtered to the imported files: every one resolves to CC-BY-SA-4.0 with a copyright line, and no license is reported bad, missing or unused. The full lint is not clean because the code files carry no SPDX headers, which predates this PR.

Could not verify

The website rendering of these pages from this repo: that depends on the website stage of the epic.

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

Signed-off-by: Madelyn Olson <madelyneolson@gmail.com>
The documentation imported from valkey-doc is CC-BY-SA-4.0 (valkey-doc
LICENSE and COPYRIGHT at 7c5512ae). Annotate it in REUSE.toml and add the
SPDX license text.

Signed-off-by: Madelyn Olson <madelyneolson@gmail.com>
These pages now live outside valkey-doc, so relative links to pages owned
by another repository no longer resolve. Point them at valkey.io.

Signed-off-by: Madelyn Olson <madelyneolson@gmail.com>
madolson added a commit to madolson/valkey-doc that referenced this pull request Nov 30, 2026
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>
@madolson

Copy link
Copy Markdown
Owner Author

Closing: the Valkey Bundle page stays in valkey-doc (madolson/valkey-doc#4).

@madolson madolson closed this Nov 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant