Skip to content

Commit

Permalink
docs: adjusted READMEs for the api docs generator
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanflorence committed Nov 19, 2024
1 parent 6c13442 commit c8fd138
Show file tree
Hide file tree
Showing 12 changed files with 39 additions and 59 deletions.
47 changes: 16 additions & 31 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,43 +1,28 @@
# Welcome to React Router · [![npm package][npm-badge]][npm] [![build][build-badge]][build]
[![npm package][npm-badge]][npm] [![build][build-badge]][build]

[npm-badge]: https://img.shields.io/npm/v/react-router-dom.svg?style=flat-square
[npm]: https://www.npmjs.org/package/react-router-dom
[build-badge]: https://img.shields.io/github/actions/workflow/status/remix-run/react-router/test.yml?branch=dev&style=square
[build]: https://github.com/remix-run/react-router/actions/workflows/test.yml

React Router is a lightweight, fully-featured routing library for the [React](https://reactjs.org) JavaScript library. React Router runs anywhere React runs; on the web, on the server with node.js, or on any other Javascript platform that supports the [Web Fetch API][fetch-api].
React Router is a multi-strategy router for React bridging the gap from React 18 to React 19. You can use it maximally as a React framework or minimally as a library with your own architecture.

If you're new to React Router, we recommend you start with [the tutorial](https://reactrouter.com/en/main/start/tutorial).

If you're migrating to v6 from v5 (or v4, which is the same as v5), check out [the migration guide](/docs/upgrading/v5.md). If you're migrating from Reach Router, check out [the migration guide for Reach Router](/docs/upgrading/reach.md). If you need to find the code for v5, [it is on the `v5` branch](https://github.com/remix-run/react-router/tree/v5).

Documentation for v6 can be found [on our website](https://reactrouter.com/).

## Contributing

There are many different ways to contribute to React Router's development. If you're interested, check out [our contributing guidelines](CONTRIBUTING.md) to learn how you can get involved.
- [Getting Started - Framework](https://reactrouter.com/start/framework/installation)
- [Getting Started - Library](https://react.router.com/start/library/installation)
- [Upgrade from v6](https://reactrouter.com/upgrading/v6)
- [Upgrade from Remix](https://reactrouter.com/upgrading/remix)
- [Changelog](https://github.com/remix-run/react-router/blob/main/CHANGELOG.md)

## Packages

This repository is a monorepo containing the following packages:

- [`@react-router/dev`](/packages/react-router-dev)
- [`@react-router/express`](/packages/react-router-express)
- [`@react-router/node`](/packages/react-router-node)
- [`@react-router/serve`](/packages/react-router-serve)
- [`react-router`](/packages/react-router)
- [`react-router-dom`](/packages/react-router-dom)

## Changes

Detailed release notes for a given version can be found [on our releases page](https://github.com/remix-run/react-router/releases).

## Funding

You may provide financial support for this project by donating [via Open Collective](https://opencollective.com/react-router). Thank you for your support!

## About
- [react-router](./modules/react_router)
- [@react-router/dev](./modules/_react_router_dev)
- [@react-router/node](./modules/_react_router_node)
- [@react-router/cloudflare](./modules/_react_router_cloudflare)
- [@react-router/serve](./modules/_react_router_serve)
- [@react-router/fs-routes](./modules/_react_router_fs_routes)

React Router is developed and maintained by [Remix Software](https://remix.run) and many [amazing contributors](https://github.com/remix-run/react-router/graphs/contributors).
## Previous Versions

[fetch-api]: https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API
- [v6](https://reactrouter.com/v6)
- [v5](https://v5.reactrouter.com/)
2 changes: 0 additions & 2 deletions packages/create-react-router/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# create-react-router

Create a new React Router app.

```sh
Expand Down
4 changes: 1 addition & 3 deletions packages/react-router-architect/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
# @react-router/architect

Architect server request handler for React Router.
[Architect](https://arc.codes) server request handler for React Router.

```bash
npm install @react-router/architect
Expand Down
4 changes: 1 addition & 3 deletions packages/react-router-cloudflare/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
# @react-router/cloudflare

Cloudflare platform abstractions for [React Router.](https://reactrouter.com)
Cloudflare platform abstractions for React Router

```bash
npm install @react-router/cloudflare @cloudflare/workers-types
Expand Down
4 changes: 1 addition & 3 deletions packages/react-router-dev/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
# @react-router/dev

Dev tools and CLI for [React Router.](https://github.com/remix-run/react-router)
Dev tools and CLI for React Router that enables framework features through bundler integration like server rendering, code splitting, HMR, etc.

```sh
npm install @react-router/dev
Expand Down
7 changes: 5 additions & 2 deletions packages/react-router-dom/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# React Router DOM
This package simply re-exports everything from `react-router` to smooth the upgrade path for v6 applications. Once upgraded you can change all of your imports and remove it from your dependencies:

The `react-router-dom` package is deprecated and only kept around for backwards-compatibility. It re-exports everything from the `react-router` package - you should convert your applications to import everything from `react-router` in v7 and beyond.
```diff
-import { Routes } from "react-router-dom"
+import { Routes } from "react-router"
```
4 changes: 1 addition & 3 deletions packages/react-router-express/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
# @react-router/express

[Express](https://expressjs.com) server request handler for [React Router.](https://github.com/remix-run/react-router)
[Express](https://expressjs.com) server request handler for React Router.

```sh
npm install @react-router/express
Expand Down
4 changes: 1 addition & 3 deletions packages/react-router-fs-routes/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
# @react-router/fs-routes

File system routing conventions for [React Router](https://github.com/remix-run/react-router), for use within `routes.ts`.
File system routing conventions for React Router

```sh
npm install @react-router/fs-routes
Expand Down
4 changes: 1 addition & 3 deletions packages/react-router-node/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
# @react-router/node

Node.js platform abstractions for [React Router.](https://github.com/remix-run/react-router)
Node.js platform abstractions for React Router

```sh
npm install @react-router/node
Expand Down
4 changes: 1 addition & 3 deletions packages/react-router-serve/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
# @react-router/serve

Production application server for [React Router.](https://github.com/remix-run/react-router)
Node.js application server for React Router

```sh
npm install @react-router/serve
Expand Down
8 changes: 6 additions & 2 deletions packages/react-router/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# React Router
`react-router` is the primary package in the React Router project.

The `react-router` package is the heart of [React Router](https://github.com/remix-run/react-router) and provides all the core functionality.
## Installation

```sh
npm i react-router
```
6 changes: 5 additions & 1 deletion packages/react-router/tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,8 @@ const config = (enableDevWarnings: boolean) =>
},
]);

export default defineConfig([...config(false), ...config(true)]);
export default defineConfig([
// @ts-expect-error
...config(false),
...config(true),
]);

0 comments on commit c8fd138

Please sign in to comment.