Repository navigation
Remove the retired Agents v1 docs and redirect /docs/agents - #151
Merged
Merged
Conversation
v1 agents (deployed and managed from the portal's /agents page) were retired and replaced by Workspaces. Their guide described a product members can no longer use. - Delete /docs/agents (EN + ES) and its screenshots under public/docs/agents. - Hermes guide (EN + ES): drop the "deployed on NaN Cloud" path that pointed to the v1 panel; keep the bring-your-own-machine setup. - 301 /docs/agents and any subpath to /docs (and /es/docs/agents to /es/docs) via the middleware's REMOVED_DOCS table, which now supports subpaths and a docs-root target. - Renumber apps docs order (20 -> 19) so orders stay gapless. - Update the unrendered community "not included" item and ARCHITECTURE.md. Tests: middleware redirect cases (root, trailing slash, ES, subpaths, no false matches) and a new removedDocs test asserting retired slugs have no live page and nothing on the site links to them or to the v1 portal page. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Review blocker: agent-setup still promised the retired v1 path. Adds a regression test over all site copy. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
What
v1 agents (deployed and managed from the portal's
/agentspage) were retired and replaced by Workspaces. This removes their documentation from nan.builders.src/content/docs/agents.md,src/content/docs-es/agents.mdand the 15 screenshots inpublic/docs/agents/. The docs nav is generated from the content collection, so the sidebar entry goes away with the page./docs/agentsand described the v1 panel, plus the related "two paths do not mix" known issue. The own-machine setup (customprovider) stays.REMOVED_DOCS, 301, keeps query string):/docs/agents,/docs/agents/,/docs/agents/*->/docs/es/docs/agents[/*]->/es/docsObject.hasOwn, so slugs likeconstructordo not match.appsdocsorder20 -> 19 so orders stay gapless (enforced byDocsShell.test.ts).community.notIncludedi18n item "Agents and apps deployment" is now "Workspaces and app deployment" (the key is not rendered right now).ARCHITECTURE.md.Mentions of AI agents as a general concept (events, Gauntlet, agent setup guides) are untouched.
Tests
src/tests/lib/middleware.test.ts: covers the redirect for root, trailing slash, ES, subpaths, no false match onagent-setup/agentsx, and inherited Object keys.src/tests/layouts/removedDocs.test.ts: retired slugs have no live page in either locale, nothing in content/pages/components/layouts/i18n links to/docs/<retired>orcloud.nan.builders/agents, and the screenshots are gone.noInfraDisclosure.test.ts: dropped the assertion on the deleted agents guide.npx vitest run: 69 files, 1390 tests passed.npm run build: completed.Deploy notes
There is no VERSION file. Nothing else is needed: no env vars, no migrations.
🤖 Generated with Claude Code