Skip to content

Migrate documentation to nodespace-docs repo (#829) - #912

Merged
malibio merged 2 commits into
mainfrom
feature/issue-829-docs-migration
Feb 26, 2026
Merged

malibio merged 2 commits into
mainfrom
feature/issue-829-docs-migration

Conversation

@malibio

@malibio malibio commented Feb 26, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Moved all 177 docs + 5 package .md files to the private nodespace-docs repo
  • Wrote 18 fresh docs from current codebase (with 10 mermaid diagrams)
  • Standardized 18 ADRs with NNN-name.md naming convention
  • Preserved 163 old docs in archived/
  • Updated CLAUDE.md references to ../nodespace-docs/ paths
  • Slimmed down README.md, points to docs repo
  • Updated scripts/import-docs.ts to 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 — clean
  • No stale docs/ references in CLAUDE.md
  • find . -name "*.md" -not -path "*/node_modules/*" -not -path "*/target/*" -not -path "./.claude/*" returns only CLAUDE.md and README.md

🤖 Generated with Claude Code

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 malibio left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.md line 134 -- The tree listing still shows components/ 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 image docs/images/screenshot-alpha-preview.png was deleted. If this image is worth keeping, it should be moved to the docs repo or a top-level images/ 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]>
@malibio

malibio commented Feb 26, 2026

Copy link
Copy Markdown
Collaborator Author

Review Addressed

✅ Addressed (2 findings):

  1. Screenshot restored — Moved docs/images/screenshot-alpha-preview.png to assets/screenshot-alpha-preview.png and added it back to README.md
  2. Stale docs/ references fixed — Updated 17 comment references across 14 files (Rust, TypeScript, Svelte) to point to ../nodespace-docs/ paths

⏭️ Skipped (2 items):

  • markdown_test.rs references (lines 2117, 2125, 2295, 2303) — These are test string data, not actual doc references
  • CLAUDE.md line 134 components/ ambiguity — Clear in context (under "Review ../nodespace-docs/" heading)

Tests: 3586 passed, quality:fix clean

@malibio
malibio merged commit f9023c3 into main Feb 26, 2026
@malibio
malibio deleted the feature/issue-829-docs-migration branch February 26, 2026 09:50
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