Skip to content

Commit 7da090a

Browse files
committed
docs review: installation
1 parent dc0fe94 commit 7da090a

File tree

4 files changed

+10
-37
lines changed

4 files changed

+10
-37
lines changed

docs/en/SUMMARY.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
- [Installation](installation.md)
2-
- [Getting Started](getting-started/README.md)
2+
- Getting Started
33
- [Basic Usage](getting-started/basic.md)
44
- [Route Object & Route Matching](getting-started/route.md)
55
- [Named Routes](getting-started/named-routes.md)
66
- [Programmatic Navigation](getting-started/navigation.md)
7-
- [router-link](getting-started/link.md)
8-
- [router-view](getting-started/view.md)
9-
- [Advanced Routing](advanced-routing/README.md)
7+
- [<router-link>](getting-started/link.md)
8+
- [<router-view>](getting-started/view.md)
9+
- Advanced Routing
1010
- [Nested Routes](advanced-routing/nested.md)
1111
- [Named Views](advanced-routing/named-views.md)
1212
- [Lazy Loading Routes](advanced-routing/lazy.md)
1313
- [Async Routes](advanced-routing/async-routes.md)
14-
- [Navigation](navigation/README.md)
14+
- Navigation
1515
- [Router Hooks](navigation/router-hooks.md)
1616
- [Routes Hooks](navigation/routes-hooks.md)
1717
- [Views Transitions](navigation/views-transitions.md)

docs/en/advanced-routing/README.md

Lines changed: 0 additions & 3 deletions
This file was deleted.

docs/en/getting-started/README.md

Lines changed: 0 additions & 3 deletions
This file was deleted.

docs/en/installation.md

Lines changed: 5 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,20 @@
11
# Installation
22

3-
### Direct Download
4-
5-
See [dist folder](https://github.com/vuejs/vue-router/tree/dev/dist). Note the
6-
dist files are always the latest stable - it's not update-to-date with the `dev`
7-
branch source.
8-
9-
### CDN
10-
Available on
11-
[jsdelivr](https://cdn.jsdelivr.net/vue.router/2.0.0-rc.3/vue-router.min.js) or
12-
[cdnjs](https://cdnjs.cloudflare.com/ajax/libs/vue-router/2.0.0-rc.3/vue-router.min.js)
13-
(takes some time to sync so the latest version might not be available yet)
14-
15-
Alternatively you can use
16-
[npmcdn](https://npmcdn.com/vue-router@next/dist/vue-router.js) which will
17-
reflect the latest published version to npm. This is the preferred version when
18-
creating reproductions for bugs.
19-
3+
### Direct Download / CDN
204

5+
Unpkg.com provides NPM-based CDN links. The latest release is available at [https://unpkg.com/vue-router@latest/dist/vue-router.js](https://unpkg.com/vue-router@latest/dist/vue-router.js) - you can also specify any other versions/tags available on NPM!
216

227
### NPM
238

249
``` bash
2510
npm install vue-router
2611
```
2712

28-
When used in CommonJS, you must explicitly install the router via `Vue.use()`:
13+
When used with a module system, you must explicitly install the router via `Vue.use()`:
2914

3015
``` js
31-
var Vue = require('vue')
32-
var VueRouter = require('vue-router')
16+
import Vue from 'vue'
17+
import VueRouter from 'vue-router'
3318

3419
Vue.use(VueRouter)
3520
```
@@ -48,9 +33,3 @@ cd node_modules/vue-router
4833
npm install
4934
npm run build
5035
```
51-
52-
### Bower
53-
54-
``` bash
55-
bower install vue-router
56-
```

0 commit comments

Comments
 (0)