Skip to content

Commit 26ba22d

Browse files
committed
restructure docs
1 parent bbd7bea commit 26ba22d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+28
-1134
lines changed

β€Ždocs/en/README.md

-50
This file was deleted.

β€Ždocs/en/README.md

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
SUMMARY.md

β€Ždocs/en/SUMMARY.md

+26-43
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,29 @@
1+
# vue-router 2
2+
3+
> Note: [email protected] only works with Vue 2.x. The docs for the 1.x router is [here](https://github.com/vuejs/vue-router/tree/1.0/docs/en).
4+
5+
- [Release Notes](https://github.com/vuejs/vue-router/releases)
16
- [Installation](installation.md)
2-
- Getting Started
3-
- [Basic Usage](getting-started/basic.md)
4-
- [Route Object & Route Matching](getting-started/route.md)
5-
- [Named Routes](getting-started/named-routes.md)
6-
- [Programmatic Navigation](getting-started/navigation.md)
7-
- [<router-link>](getting-started/link.md)
8-
- [<router-view>](getting-started/view.md)
9-
- Advanced Routing
10-
- [Nested Routes](advanced-routing/nested.md)
11-
- [Named Views](advanced-routing/named-views.md)
12-
- [Lazy Loading Routes](advanced-routing/lazy.md)
13-
- [Async Routes](advanced-routing/async-routes.md)
14-
- Navigation
15-
- [Router Hooks](navigation/router-hooks.md)
16-
- [Routes Hooks](navigation/routes-hooks.md)
17-
- [Views Transitions](navigation/views-transitions.md)
18-
- [API](api/README.md)
19-
- [VueRouter](api/router/README.md)
20-
- [constructor](api/router/constructor.md)
21-
- [currentRoute](api/router/current-route.md)
22-
- [beforeEach](api/router/before-each.md)
23-
- [afterEach](api/router/after-each.md)
24-
- [push](api/router/push.md)
25-
- [replace](api/router/replace.md)
26-
- [go](api/router/go.md)
27-
- [back](api/router/back.md)
28-
- [forward](api/router/back.md)
29-
- [getMatchedComponents](api/router/get-matched-components.md)
30-
- [$route](api/route.md)
7+
- Essentials
8+
- [Getting Started](essentials/getting-started.md)
9+
- [Navigating with Links](essentials/links.md)
10+
- [Nested Routes](essentials/nested-routes.md)
11+
- [Redirect and Alias](essentials/redirect-and-alias.md)
12+
- [Programmatic Navigation](essentials/navigation.md)
13+
- Advanced
14+
- [Named Routes](advanced/named-routes.md)
15+
- [Named Views](advanced/named-views.md)
16+
- [Navigation Guards](advanced/navigation-guards.md)
17+
- [Animations](advanced/animations.md)
18+
- [Data Fetching](advanced/data-fetching.md)
19+
- [Scroll Behavior](advanced/scroll-behavior.md)
20+
- [Lazy Loading](advanced/lazy-loading.md)
21+
- API Reference
22+
- [Router Constructor Options](api/options.md)
23+
- [Route Config Options](api/route-config.md)
24+
- [Route Matching Rules](api/matching.md)
25+
- [Router Instance](api/router-instance.md)
26+
- [The $route Object](api/route-object.md)
27+
- [Component Navigation Hooks](api/component-hooks.md)
3128
- [router-link](api/router-link.md)
3229
- [router-view](api/router-view.md)
33-
- [beforeRouteEnter](api/beforeRouteEnter.md)
34-
- [beforeRouteLeave](api/beforeRouteLeave.md)
35-
- [beforeEnter](api/beforeEnter.md)
36-
- [Types](api/types/README.md)
37-
- [RouterOptions](api/types/router-options.md)
38-
- [RedirectOption](api/types/redirect-option.md)
39-
- [RouteConfig](api/types/route-config.md)
40-
- [RouteRecord](api/types/route-record.md)
41-
- [RouteMap](api/types/route-map.md)
42-
- [StringHash](api/types/string-hash.md)
43-
- [Location](api/types/location.md)
44-
- [RawLocation](api/types/raw-location.md)
45-
- [Route](api/types/route.md)
46-
- [Matcher](api/types/matcher.md)

β€Ždocs/en/advanced/animations.md

Whitespace-only changes.

β€Ždocs/en/advanced-routing/async-routes.md renamed to β€Ždocs/en/advanced/data-fetching.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Async Routes
1+
# Data Fetching
22

33
Sometimes you need to fetch data from the server before rendering a route. For
44
example, before visiting a user profile, you have to fetch his data from the

β€Ždocs/en/advanced/navigation-guards.md

Whitespace-only changes.

β€Ždocs/en/advanced/scroll-behavior.md

Whitespace-only changes.

β€Ždocs/en/api/README.md

-21
This file was deleted.

β€Ždocs/en/api/after-each.md

-25
This file was deleted.

β€Ždocs/en/api/alias.md

-29
This file was deleted.

β€Ždocs/en/api/before-each.md

-44
This file was deleted.

β€Ždocs/en/api/component-hooks.md

Whitespace-only changes.

β€Ždocs/en/api/go.md

-38
This file was deleted.

β€Ždocs/en/api/map.md

-51
This file was deleted.

β€Ždocs/en/api/matching.md

Whitespace-only changes.

β€Ždocs/en/api/on.md

-22
This file was deleted.

β€Ždocs/en/api/options.md

Whitespace-only changes.

β€Ždocs/en/api/properties.md

-21
This file was deleted.

0 commit comments

Comments
Β (0)