Skip to content

fix: move authoring policy out of the docs tree (release-2.0) - #8

Merged
chideat merged 1 commit into
release-2.0from
fix/move-agent-docs-release-2.0
Aug 13, 2026
Merged

fix: move authoring policy out of the docs tree (release-2.0)#8
chideat merged 1 commit into
release-2.0from
fix/move-agent-docs-release-2.0

Conversation

@chideat

@chideat chideat commented Aug 13, 2026

Copy link
Copy Markdown
Collaborator

Cherry-pick of #7 to release-2.0. Applied cleanly — the affected files are identical on both branches.

Why

docs/agent/ held internal authoring policy, but anything under docs/ becomes a documentation route. doom rendered those five files as /agent/* pages and SSG crashed on them, failing doc-pr-build-valkey on every PR against this branch (#4, #6) regardless of content.

It was invisible locally because internalRoutes: agent/**/* plus --ignore=true in the build script skipped those pages — and CI passes no such flag, and additionally replaces the pinned doom 1.12.1 with the latest release.

The change

  • docs/agent/ → root-level agent/, matching redis-docs.
  • References updated in AGENTS.md (and CLAUDE.md, a symlink) and llmstxt-config.yaml.
  • internalRoutes and both --ignore=true flags dropped — dead once the files are out of the docs tree.

Verification on this branch

  • yarn build (now plain doom build) — exit 0, 0 errors
  • yarn lint — 0 errors, 0 warnings
  • Verified against doom 2.5.4, the version CI installs: fails on /agent/* before, clean after.

See #7 for the full analysis.

docs/agent/ held internal authoring policy, but anything under docs/ is a
documentation route. doom rendered those five files as /agent/* pages and
SSG crashed on them, which is why doc-pr-build-valkey failed on every PR
regardless of its content.

The failure was invisible locally because doom.config.yml marked
agent/**/* as internalRoutes and the build script passed --ignore=true.
CI does not pass that flag: build-docs runs `yarn build-online-io`, which
renders internal routes. CI also discards the pinned doom version --
install-dependencies runs `yarn remove @alauda/doom && yarn add
@alauda/doom` -- so it builds with the latest doom, which adds a
generated /agent/products page in the same namespace. That page is the
one named in the pipeline log.

Moves the files to a root-level agent/ directory, matching redis-docs,
which keeps its agent instructions and TERMINOLOGY_CANDIDATES.md at the
repository root and has never had a docs/agent/ directory.

With the files out of the docs tree, internalRoutes and --ignore=true
have nothing left to hide, so both are removed. Keeping them would
restore the local/CI divergence that masked this.

Verified against doom 2.5.4, the version CI installs: the build fails on
/agent/* before this change and completes with zero errors after. Also
green on the pinned 1.12.1, and dist/agent/ is no longer produced.

(cherry picked from commit 4903be1)
@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying alauda-valkey with  Cloudflare Pages  Cloudflare Pages

Latest commit: 083faba
Status: ✅  Deploy successful!
Preview URL: https://365c8633.alauda-valkey.pages.dev
Branch Preview URL: https://fix-move-agent-docs-release.alauda-valkey.pages.dev

View logs

@chideat
chideat merged commit 0e1b7de into release-2.0 Aug 13, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant