Skip to content

Commit 4f19059

Browse files
committed
Merge pull request #506 from taurose/master
Update links in docs
2 parents 2be3037 + 0087dd4 commit 4f19059

File tree

3 files changed

+13
-11
lines changed

3 files changed

+13
-11
lines changed

docs/api/README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,24 @@ React Router API
33

44
- [`Router`](/docs/api/Router.md)
55

6+
- [`Router.run`](/docs/api/run.md)
7+
8+
- [`Router.create`](/docs/api/create.md)
9+
610
- Components
711
- [`DefaultRoute`](/docs/api/components/DefaultRoute.md)
812
- [`Link`](/docs/api/components/Link.md)
913
- [`NotFoundRoute`](/docs/api/components/NotFoundRoute.md)
1014
- [`Redirect`](/docs/api/components/Redirect.md)
1115
- [`Route`](/docs/api/components/Route.md)
1216
- [`RouteHandler`](/docs/api/components/RouteHandler.md)
13-
- [`Routes`](/docs/api/components/Routes.md)
1417

1518
- Mixins
1619
- [`State`](/docs/api/mixins/State.md)
1720
- [`Navigation`](/docs/api/mixins/Navigation.md)
1821

1922
- Misc
23+
- [`Location`](/docs/api/misc/Location.md)
2024
- [`transition`](/docs/api/misc/transition.md)
2125

2226
Public Modules

docs/api/run.md

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Your route config. See [Route][1]
1919

2020
### `location` optional
2121

22-
Defaults to [`Router.HashLocation`][2]. If given a `Location` object, it
22+
Defaults to `Router.HashLocation`. If given a `Location` object, it
2323
will setup and listen for changes on it, if given a string path, the
2424
router will immediately match that path and callback.
2525

@@ -57,10 +57,10 @@ An object containing the matched state.
5757

5858
##### `state.matches`
5959

60-
An array of the matched [routes][3]. Very useful for fetching data before
60+
An array of the matched [routes][1]. Very useful for fetching data before
6161
rendering.
6262

63-
See also: [Route][3].
63+
See also: [Route][1].
6464

6565
##### `state.params`
6666

@@ -87,7 +87,7 @@ Router.run(routes, function (Handler) {
8787
```
8888

8989
Sample data fetching using `state.matches`. Check out the
90-
[async-data][4] example.
90+
[async-data][2] example.
9191

9292
```js
9393
var resolveHash = require('when/keys').all;
@@ -137,7 +137,5 @@ something.serve(function (req, res) {
137137
```
138138

139139
[1]:./components/Route.md
140-
[2]:./locations/HashLocation.md
141-
[3]:./classes/Route.md
142-
[4]:https://github.com/rackt/react-router/tree/latest/examples/async-data
140+
[2]:https://github.com/rackt/react-router/tree/latest/examples/async-data
143141

docs/guides/overview.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -357,8 +357,8 @@ Scrolling
357357
By default, the router will manage the scroll position between route
358358
transitions. When a user clicks "back" or "forward", it will restore
359359
their scroll position. If they visit a new route, it will automatically
360-
scroll the window to the top. You can configure this options on
361-
[Routes][Routes].
360+
scroll the window to the top. You can configure this option with
361+
[Router.create][create].
362362

363363
Bells and Whistles
364364
------------------
@@ -418,7 +418,7 @@ redirecting transitions, query parameters and more.
418418

419419
[AsyncState]:../api/mixins/AsyncState.md
420420
[Route]:../api/components/Route.md
421-
[Routes]:../api/components/Routes.md
421+
[create]: ../api/create.md
422422
[API]:../api/
423423
[path-matching]:./path-matching.md
424424

0 commit comments

Comments
 (0)