Skip to content

docs: revamp navigation, close plugin coverage gaps, fix binary size claims - #56

Open
olamide226 wants to merge 1 commit into
mainfrom
docs/revamp-navigation-and-coverage
Open

docs: revamp navigation, close plugin coverage gaps, fix binary size claims#56
olamide226 wants to merge 1 commit into
mainfrom
docs/revamp-navigation-and-coverage

Conversation

@olamide226

Copy link
Copy Markdown
Collaborator

Summary

Full sweep of the docs site (Astro Starlight) for navigability and value communication, prompted by four specific gaps: redundant content, under-referenced examples, missing Vite/Next.js plugin coverage, and a stale gateway binary size claim.

  • Redundancy removed: quick-start.mdx and the near-duplicate examples/quick-no-manifest.mdx are merged into one canonical getting-started tutorial (the extra hot-reload/file-watch section was folded in). examples/no-manifest.md at the repo root shrinks from a full third copy to a short pointer at the docs site.
  • Navigation fix: examples/nextjs-csr-kubernetes.mdx renamed to examples/nextjs-csr-embedded.mdx to match the actual examples/nextjs-csr-embedded/ folder on disk — no more name mismatch between GitHub and the docs site.
  • Plain-HTML example discoverability: examples/simple-html.mdx already existed but wasn't linked from anywhere a reader would look for it — now cross-linked from frameworks/vanilla.mdx and quick-start.mdx.
  • Vite/Next.js plugin coverage: @rep-protocol/vite and @rep-protocol/next (both real, published, v0.1.15) were only documented in one guide with no reference page. Added reference/plugins/vite.mdx and reference/plugins/next.mdx (documenting repPlugin()/RepScript options and dev-only behavior, sourced from the actual plugin code), a new "Build-Tool Plugins" sidebar group, and cross-links from installation.mdx, frameworks/react.mdx, and the homepage.
  • Binary size accuracy: rebuilt the gateway locally — 6.9MB (darwin/arm64), 7.3MB (linux/amd64, the container target). Every "~3–5MB"/"~6MB" claim across index.mdx, installation.mdx, docker-embedded.mdx, gateway/README.md, CLAUDE.md, and AGENTS.md now says ~7MB. This also surfaced a real spec conformance violation — RFC-0001 §R6 required "under 5MB," which the current binary now exceeds — relaxed to "under 8MB" in both spec/REP-RFC-0001.md and its docs mirror.
  • Homepage: added "Build-Tool Plugins" and "Codemod" cards to the Project Components grid — both real, shipped capabilities that weren't represented there — and reworded the "Works Everywhere" intro so it doesn't read as contradicting the new plugin visibility.

Test plan

  • pnpm build in docs/ completes cleanly (46 pages, no errors/warnings)
  • Checked built HTML output for dangling links to the removed/renamed pages — none found
  • Verified all new cross-links (anchor IDs, reference page slugs) resolve against the actual built output
  • Confirmed @rep-protocol/vite and @rep-protocol/next package names/versions against their package.json before documenting them
  • Measured actual gateway binary size via make build / make build-linux rather than trusting the existing doc claims

🤖 Generated with Claude Code

https://claude.ai/code/session_01SFPGdCQcXhSzCRRMrkNyyr

…claims

Full sweep of the docs site for navigability and accuracy:

- Merge quick-start.mdx and the near-duplicate examples/quick-no-manifest.mdx
  into one canonical getting-started tutorial; shrink examples/no-manifest.md
  to a pointer instead of a third copy of the same content.
- Rename examples/nextjs-csr-kubernetes.mdx to nextjs-csr-embedded.mdx to
  match the actual example folder name on disk.
- Add reference/plugins/vite.mdx and reference/plugins/next.mdx documenting
  repPlugin()/RepScript options and dev-only behavior — previously the Vite
  and Next.js plugins had no reference page and were under-linked from the
  framework guides and homepage.
- Cross-link the plain-HTML example from frameworks/vanilla.mdx and
  quick-start.mdx now that it's easier to find.
- Fix binary size claims across docs, CLAUDE.md, AGENTS.md, and
  gateway/README.md: measured the current build (6.9MB darwin/arm64, 7.3MB
  linux/amd64) and corrected every "~3-5MB"/"~6MB" claim to ~7MB. Also fixes
  a real spec conformance violation — RFC-0001 R6 required "under 5MB",
  which the current binary now exceeds; relaxed to "under 8MB" in both
  spec/REP-RFC-0001.md and its docs mirror.
- Add Build-Tool Plugins and Codemod cards to the homepage's Project
  Components grid — both are real, shipped capabilities that weren't
  represented there.

Claude-Session: https://claude.ai/code/session_01SFPGdCQcXhSzCRRMrkNyyr
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