Repository navigation
docs: add documentation website - #3
Merged
Merged
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.bun run docs:devstarts the site locally.bun run docs:buildtypechecks and builds it, and fails on dead links.validateand as a newdocsjob in CI.docs.ymlworkflow publishes the site to GitHub Pages on every push tomain. Pages must be set to deploy from GitHub Actions in the repo settings.scripts/use-latest-nitro-ui.shnow only checks the NitroUI side.Not included yet: a site logo.
Test plan
bun run format:checkbun run docs:buildbun run validate(earlier on this branch)🤖 Generated with Claude Code