Skip to content

docs: add documentation website - #3

Merged
mdjastrzebski merged 18 commits into
mainfrom
docs/website
Dec 3, 2026
Merged

mdjastrzebski merged 18 commits into
mainfrom
docs/website

Conversation

@mdjastrzebski

@mdjastrzebski mdjastrzebski commented Dec 3, 2026 •

Copy link
Copy Markdown
Member

Summary

Adds a documentation website in a new private website/ workspace, built with RSPress 2.1 and the Callstack theme (@callstack/rspress-theme). Its structure follows the RNTL docs: Getting started, API reference, Guides, Advanced guides and a Cookbook.

  • Quick start: one test runner picker (Vitest, Bun test, Jest), with logos, right below "Test runner setup". It shows only the steps for the chosen runner, so the page doesn't jump between linked pickers.
  • Package manager tabs: a local copy of the RSPress component, ordered bun, pnpm, yarn, npm, without deno.
  • Intro: shorter, recommends Vitest, and compares the library with E2E tests.
  • Tooling:
    • bun run docs:dev starts the site locally.
    • bun run docs:build typechecks and builds it, and fails on dead links.
    • The docs build runs as part of validate and as a new docs job in CI.
    • A new docs.yml workflow publishes the site to GitHub Pages on every push to main. Pages must be set to deploy from GitHub Actions in the repo settings.
  • React: the website has its own React (19.3.1, which RSPress needs). The React check in scripts/use-latest-nitro-ui.sh now only checks the NitroUI side.
  • AGENTS.md and the README describe the website.

Not included yet: a site logo.

Test plan

  • bun run format:check
  • bun run docs:build
  • bun run validate (earlier on this branch)
  • In the browser: switching runners keeps the setup heading in place

🤖 Generated with Claude Code

mdjastrzebski and others added 18 commits December 3, 2026 12:02
Add a private `website` workspace built with Rspress 2.1 and the Callstack
theme, shaped like React Native Testing Library's docs: Getting started,
API reference, Guides, Advanced Guides and a Cookbook.

Rspress 2.1 needs React 19.3.1, so the website has its own React. It never
loads NitroUI, so the one-React check in `use-latest-nitro-ui.sh` now
checks only what loads NitroUI: the library, the example app and
`nitro-ui-renderer`.

`bun run docs:dev` starts the site, and `bun run docs:build` typechecks and
builds it, failing on dead links. CI and `validate` run the docs build.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Adapted from Rspress's PackageManagerTabs into website/theme/.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
The setup and TypeScript sections each had a linked runner picker, so
switching runners in the second one resized the first and moved the page.
Each runner's tab now holds all its steps (install, setup entry, types)
under a single picker, so a switch only changes content below it. Steps
use bold labels rather than headings, so the outline doesn't repeat them
per runner. The Bun tab is labeled "Bun test".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…olve

The check compared only the library's, the example's and the renderer's React. Now that the website puts another react in the store, a peer resolving to it would slip through. Also resolve react next to test-renderer and the example's renderer, navigation and glass, and require a single copy.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@mdjastrzebski
mdjastrzebski merged commit 3eb653b into main Dec 3, 2026
15 checks passed
@mdjastrzebski
mdjastrzebski deleted the docs/website branch December 3, 2026 16:38
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