Skip to content

Commit

Permalink
api doc category rename/order
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanflorence committed Jan 8, 2025
1 parent 1518f7d commit f54c409
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 13 deletions.
4 changes: 2 additions & 2 deletions packages/react-router/lib/components.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ export function mapRouteProperties(route: RouteObject) {
}

/**
* @category Routers
* @category Data Routers
*/
export function createMemoryRouter(
routes: RouteObject[],
Expand Down Expand Up @@ -470,7 +470,7 @@ export interface MemoryRouterProps {
/**
* A `<Router>` that stores all entries in memory.
*
* @category Router Components
* @category Component Routers
*/
export function MemoryRouter({
basename,
Expand Down
2 changes: 1 addition & 1 deletion packages/react-router/lib/dom-export/hydrated-router.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ function createHydratedRouter(): DataRouter {
}

/**
* @category Router Components
* @category Component Routers
*/
export function HydratedRouter() {
if (!router) {
Expand Down
10 changes: 5 additions & 5 deletions packages/react-router/lib/dom/lib.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ interface DOMRouterOpts {
}

/**
* @category Routers
* @category Data Routers
*/
export function createBrowserRouter(
routes: RouteObject[],
Expand All @@ -155,7 +155,7 @@ export function createBrowserRouter(
}

/**
* @category Routers
* @category Data Routers
*/
export function createHashRouter(
routes: RouteObject[],
Expand Down Expand Up @@ -251,7 +251,7 @@ export interface BrowserRouterProps {
/**
* A `<Router>` for use in web browsers. Provides the cleanest URLs.
*
* @category Router Components
* @category Component Routers
*/
export function BrowserRouter({
basename,
Expand Down Expand Up @@ -301,7 +301,7 @@ export interface HashRouterProps {
* A `<Router>` for use in web browsers. Stores the location in the hash
* portion of the URL so it is not sent to the server.
*
* @category Router Components
* @category Component Routers
*/
export function HashRouter({ basename, children, window }: HashRouterProps) {
let historyRef = React.useRef<HashHistory>();
Expand Down Expand Up @@ -350,7 +350,7 @@ export interface HistoryRouterProps {
* version of the history library that React Router uses internally.
*
* @name unstable_HistoryRouter
* @category Router Components
* @category Component Routers
*/
export function HistoryRouter({
basename,
Expand Down
6 changes: 3 additions & 3 deletions packages/react-router/lib/dom/server.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export interface StaticRouterProps {
* A `<Router>` that may not navigate to any other location. This is useful
* on the server where there is no stateful UI.
*
* @category Router Components
* @category Component Routers
*/
export function StaticRouter({
basename,
Expand Down Expand Up @@ -90,7 +90,7 @@ export interface StaticRouterProviderProps {
* A Data Router that may not navigate to any other location. This is useful
* on the server where there is no stateful UI.
*
* @category Router Components
* @category Component Routers
*/
export function StaticRouterProvider({
context,
Expand Down Expand Up @@ -268,7 +268,7 @@ export function createStaticHandler(
}

/**
* @category Routers
* @category Data Routers
*/
export function createStaticRouter(
routes: RouteObject[],
Expand Down
4 changes: 2 additions & 2 deletions packages/react-router/typedoc.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"entryPoints": ["./index.ts"],
"categoryOrder": [
"Routers",
"Router Components",
"Components",
"Hooks",
"Data Routers",
"Component Routers",
"Utils",
"Types",
"*"
Expand Down

0 comments on commit f54c409

Please sign in to comment.