Skip to content

docs: move package docs to per-package READMEs#27

Merged
henrypalacios merged 2 commits into
mainfrom
docs/per-package-readme
May 4, 2026
Merged

docs: move package docs to per-package READMEs#27
henrypalacios merged 2 commits into
mainfrom
docs/per-package-readme

Conversation

@henrypalacios

@henrypalacios henrypalacios commented May 4, 2026

Copy link
Copy Markdown
Collaborator

Summary

Follow-up to #26. Two cleanups so the right README shows up where readers expect it.

1. Per-package READMEs

Move the per-package reference docs out of docs/packages/ and into each package's own README.md so they:

  • Surface on npmjs.com (npm reads README.md from the package root).
  • Render inline when browsing the package folder on GitHub.
  • Sit next to the code they describe.

Each package README is rewritten as a landing-style doc with install snippet and a minimal quickstart, then links back to the monorepo docs/ for overview, glossary, flows, and ADRs.

2. Remove .github/README.md

GitHub's README discovery picks .github/README.md over the root README.md (confirmed via GET /repos/.../readme). The stub at .github/README.md was outdated and was hiding the new root landing. Removed so the repo home page renders the canonical README at the root.

Changes

  • New: packages/protocol-core/README.md (64 lines)
  • New: packages/sdk/README.md (70 lines)
  • Removed: docs/packages/protocol-core.md, docs/packages/sdk.md (folder gone)
  • Removed: .github/README.md
  • Root README.md: package-table links now point at packages/<name>/, and the docs index links to the in-page Packages section

Test plan

  • Click into packages/protocol-core/ and packages/sdk/ on GitHub — the README renders inline
  • Open the rendered root README.md — every link resolves (no docs/packages/ 404s)
  • After merge, repo home page on GitHub renders the root README (not the old .github/README.md)
  • On the next publish, confirm npmjs.com picks up the new README for both packages

Each published package now has its own README.md at the package
root so it surfaces on npmjs.com and renders inline when browsing
the package folder on GitHub. Removes the duplicated docs/packages/
folder and updates the root README cross-references.
GitHub's README discovery picks .github/README.md over the root
README.md. Removing the .github stub so the repo home page renders
the canonical landing at the root.
@henrypalacios henrypalacios merged commit 7e8faee into main May 4, 2026
2 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