This repository has been archived by the owner on Feb 8, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
⭐ new: setup documentation with gitbook
- Loading branch information
Showing
8 changed files
with
93 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
* [English](en/) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
"gitbook": "2.x.x", | ||
"plugins": ["edit-link", "github", "advanced-emoji"], | ||
"pluginsConfig": { | ||
{{#unless_eq githubAccount ""}} | ||
"edit-link": { | ||
"base": "https://github.com/{{ githubAccount }}/{{ name }}/tree/master/docs", | ||
"label": "Edit This Page" | ||
}, | ||
"github": { | ||
"url": "https://github.com/{{ githubAccount }}/{{ name }}/" | ||
} | ||
{{/unless_eq}} | ||
}, | ||
"links": { | ||
"sharing": { | ||
"facebook": false, | ||
"twitter": false | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
SUMMARY.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# {{ name }} documentation | ||
|
||
> {{ description }} | ||
{{#unless_eq githubAccount ""}} | ||
**[CHANGELOG](https://github.com/{{ githubAccount }}/{{ name }}/blob/master/CHANGELOG.md)** | ||
{{/unless_eq}} | ||
|
||
- [Installation](installation.md) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# Installation | ||
|
||
{{#unless_eq githubAccount ""}} | ||
## Direct Download | ||
|
||
See [dist folder](https://github.com/{{ githubAccount }}/{{ name }}/tree/master/dist). Note the dist files are always the latest stable - it's not update-to-date with the master branch source. | ||
{{/unless_eq}} | ||
|
||
## NPM | ||
|
||
### stable version | ||
|
||
$ npm install {{ name }} | ||
|
||
{{#unless_eq githubAccount ""}} | ||
### development version | ||
|
||
$ git clone https://github.com/{{ githubAccount }}/{{ name }}.git node_modules/{{ name }} | ||
$ cd node_modules/{{ name }} | ||
$ npm install | ||
$ npm run build | ||
|
||
When used in CommonJS, you must explicitly install the validator via `Vue.use()`: | ||
{{/unless_eq}} | ||
|
||
|
||
```javascript | ||
const Vue = require('vue') | ||
const {{ classify name }} = require('{{ name }}') | ||
|
||
Vue.use({{ classify name }}) | ||
``` | ||
|
||
You don't need to do this when using the standalone build, as it installs itself automatically. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters