Skip to content

Commit f54c409

Browse files
committed
api doc category rename/order
1 parent 1518f7d commit f54c409

File tree

5 files changed

+13
-13
lines changed

5 files changed

+13
-13
lines changed

packages/react-router/lib/components.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ export function mapRouteProperties(route: RouteObject) {
131131
}
132132

133133
/**
134-
* @category Routers
134+
* @category Data Routers
135135
*/
136136
export function createMemoryRouter(
137137
routes: RouteObject[],
@@ -470,7 +470,7 @@ export interface MemoryRouterProps {
470470
/**
471471
* A `<Router>` that stores all entries in memory.
472472
*
473-
* @category Router Components
473+
* @category Component Routers
474474
*/
475475
export function MemoryRouter({
476476
basename,

packages/react-router/lib/dom-export/hydrated-router.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ function createHydratedRouter(): DataRouter {
199199
}
200200

201201
/**
202-
* @category Router Components
202+
* @category Component Routers
203203
*/
204204
export function HydratedRouter() {
205205
if (!router) {

packages/react-router/lib/dom/lib.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ interface DOMRouterOpts {
135135
}
136136

137137
/**
138-
* @category Routers
138+
* @category Data Routers
139139
*/
140140
export function createBrowserRouter(
141141
routes: RouteObject[],
@@ -155,7 +155,7 @@ export function createBrowserRouter(
155155
}
156156

157157
/**
158-
* @category Routers
158+
* @category Data Routers
159159
*/
160160
export function createHashRouter(
161161
routes: RouteObject[],
@@ -251,7 +251,7 @@ export interface BrowserRouterProps {
251251
/**
252252
* A `<Router>` for use in web browsers. Provides the cleanest URLs.
253253
*
254-
* @category Router Components
254+
* @category Component Routers
255255
*/
256256
export function BrowserRouter({
257257
basename,
@@ -301,7 +301,7 @@ export interface HashRouterProps {
301301
* A `<Router>` for use in web browsers. Stores the location in the hash
302302
* portion of the URL so it is not sent to the server.
303303
*
304-
* @category Router Components
304+
* @category Component Routers
305305
*/
306306
export function HashRouter({ basename, children, window }: HashRouterProps) {
307307
let historyRef = React.useRef<HashHistory>();
@@ -350,7 +350,7 @@ export interface HistoryRouterProps {
350350
* version of the history library that React Router uses internally.
351351
*
352352
* @name unstable_HistoryRouter
353-
* @category Router Components
353+
* @category Component Routers
354354
*/
355355
export function HistoryRouter({
356356
basename,

packages/react-router/lib/dom/server.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export interface StaticRouterProps {
4646
* A `<Router>` that may not navigate to any other location. This is useful
4747
* on the server where there is no stateful UI.
4848
*
49-
* @category Router Components
49+
* @category Component Routers
5050
*/
5151
export function StaticRouter({
5252
basename,
@@ -90,7 +90,7 @@ export interface StaticRouterProviderProps {
9090
* A Data Router that may not navigate to any other location. This is useful
9191
* on the server where there is no stateful UI.
9292
*
93-
* @category Router Components
93+
* @category Component Routers
9494
*/
9595
export function StaticRouterProvider({
9696
context,
@@ -268,7 +268,7 @@ export function createStaticHandler(
268268
}
269269

270270
/**
271-
* @category Routers
271+
* @category Data Routers
272272
*/
273273
export function createStaticRouter(
274274
routes: RouteObject[],

packages/react-router/typedoc.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
22
"entryPoints": ["./index.ts"],
33
"categoryOrder": [
4-
"Routers",
5-
"Router Components",
64
"Components",
75
"Hooks",
6+
"Data Routers",
7+
"Component Routers",
88
"Utils",
99
"Types",
1010
"*"

0 commit comments

Comments
 (0)