Repository navigation
Migrate documentation to nodespace-docs repo (#829) - #912
Conversation
Move all documentation from docs/ and scattered package .md files to the dedicated nodespace-docs repository. Core repo now only retains CLAUDE.md, README.md, and .claude/ configs. - Delete docs/ directory (177 files) and package .md files - Update CLAUDE.md references to ../nodespace-docs/ paths - Slim down README.md, point to docs repo - Update scripts/import-docs.ts to read from ../nodespace-docs/ Co-Authored-By: Claude <[email protected]>
malibio
left a comment
There was a problem hiding this comment.
Code Review Summary
This PR cleanly migrates ~207 documentation files from the core repo to the separate nodespace-docs repository. The CLAUDE.md references have been systematically updated, README.md has been appropriately slimmed down, and import-docs.ts correctly re-points to the sibling repo. All linked paths in CLAUDE.md have been verified to exist in the ../nodespace-docs/ directory. No non-documentation files were accidentally deleted. This is a net positive change that reduces core repo bloat.
Verdict: Approve with one improvement to address before or shortly after merge.
Findings
Suggested Improvements
[Improvement] Stale docs/ references remain in source files across packages/
The docs/ directory has been deleted, but code comments and JSDoc @see tags in source files still reference the old paths. These are all in comments (not functional), so they will not cause runtime failures, but they will mislead developers and AI agents trying to find documentation.
Frontend (TypeScript/Svelte) -- 10 locations across 7 files:
| File | Line | Stale Reference |
|---|---|---|
packages/desktop-app/src/lib/types/node.ts |
164 | @see /docs/architecture/data/optimistic-concurrency-control.md |
packages/desktop-app/src/lib/services/optimistic-operation-manager.svelte.ts |
20 | See: docs/architecture/development/hierarchy-reactivity-architecture-review.md |
packages/desktop-app/src/lib/design/components/code-block-node.svelte |
18 | docs/design-system/components.html |
packages/desktop-app/src/lib/design/components/quote-block-node.svelte |
16 | docs/design-system/components.html |
packages/desktop-app/src/lib/design/components/ordered-list-node.svelte |
15 | docs/design-system/components.html |
packages/desktop-app/src/lib/design/icons/components/code-block-icon.svelte |
7 | docs/design-system/components.html |
packages/desktop-app/src/lib/design/icons/components/ordered-list-icon.svelte |
7 | docs/design-system/patterns/foundations/icon-systems.html |
packages/desktop-app/src/lib/design/icons/components/quote-block-icon.svelte |
7 | docs/design-system/components.html |
packages/desktop-app/src/tests/utils/should-use-database.ts |
12, 15 | docs/architecture/development/testing-guide.md |
packages/desktop-app/src/tests/performance/architecture-benchmarks.test.ts |
5 | docs/architecture/core/system-overview.md |
Backend (Rust) -- 7 locations across 5 files:
| File | Line | Stale Reference |
|---|---|---|
packages/nlp-engine/tests/integration_tests.rs |
3, 18 | docs/architecture/components/nlp-model-setup.md |
packages/core/src/db/mod.rs |
20 | /docs/architecture/data/surrealdb-schema-design.md |
packages/core/src/db/surreal_store.rs |
1750 | docs/architecture/data/surrealdb-schema-design.md |
packages/core/src/models/schema.rs |
68 | docs/architecture/data/schema-relational-fields.md |
packages/core/src/mcp/mod.rs |
34 | /docs/architecture/business-logic/mcp-integration.md |
Note: packages/core/src/mcp/handlers/markdown_test.rs lines 2117-2303 contain docs/architecture.md in test fixture data -- those are test content and should NOT be changed.
Recommendation: Update these comment references to ../nodespace-docs/ paths in this PR or a fast follow-up. Since these are all comments, this is not a merge blocker, but it should be addressed soon to prevent confusion for agents and developers.
Nitpicks
-
Nit:
CLAUDE.mdline 134 -- The tree listing still showscomponents/without context. Since the docs repo has a different directory structure, this line (components/ - Detailed component specifications) should clarify the path is relative to../nodespace-docs/. -
Nit:
README.md-- The screenshot imagedocs/images/screenshot-alpha-preview.pngwas deleted. If this image is worth keeping, it should be moved to the docs repo or a top-levelimages/directory. If intentionally dropped, no action needed. -
Nit:
README.md-- The MCP security note (The MCP server binds to localhost only...) was removed along with the feature sections. This security context seems worth preserving somewhere (perhaps in the docs repo's MCP documentation).
Overall this is a clean, well-executed migration. The one substantive finding (stale source code comments) is low-risk but worth cleaning up to keep the codebase consistent with the new docs location.
- Restore screenshot to assets/ and add back to README - Fix 17 stale docs/ path references in source code comments across 14 files (Rust, TypeScript, Svelte) - Skip: markdown_test.rs references are test data, not doc links - Skip: CLAUDE.md line 134 ambiguity is clear enough in context Co-Authored-By: Claude <[email protected]>
Review Addressed✅ Addressed (2 findings):
⏭️ Skipped (2 items):
Tests: 3586 passed, quality:fix clean |
Summary
NNN-name.mdnaming conventionarchived/../nodespace-docs/pathsscripts/import-docs.tsto read from../nodespace-docs/What remains in this repo
Only
CLAUDE.md,README.md, and.claude/configs (agent/command/skill definitions).Test plan
bun run test— 3586 tests passing (no tests depend on .md files)bun run quality:fix— cleandocs/references in CLAUDE.mdfind . -name "*.md" -not -path "*/node_modules/*" -not -path "*/target/*" -not -path "./.claude/*"returns only CLAUDE.md and README.md🤖 Generated with Claude Code