Skip to content

Commit

Permalink
Documentation cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
nosir committed Jun 25, 2016
1 parent f41f6aa commit df05117
Show file tree
Hide file tree
Showing 12 changed files with 18 additions and 38 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Cleave.js

[![Travis](https://img.shields.io/travis/nosir/cleave.js.svg?maxAge=2592000)](https://travis-ci.org/nosir/cleave.js)
[![Codacy branch grade](https://img.shields.io/codacy/grade/b1c0b0da42fa418f887076a3f7352aea/master.svg?maxAge=2592000)](https://www.codacy.com/app/nosir/cleave-js)

Cleave.js has a simple purpose: to help you format input text content automatically.

Expand Down Expand Up @@ -83,7 +84,7 @@ require(['cleave.js/dist/cleave.min', 'cleave.js/dist/plugin/cleave-phone.{count
});
```

## ReactJS usage
## ReactJS component usage

```js
import React from 'react';
Expand Down Expand Up @@ -120,7 +121,7 @@ As you can see, here you simply use `<Cleave/>` as a normal `<input/>` field
- Pass in the custom `options` prop
- Add ReactJS `onChange` event listener

See more in documentation: [ReactJS usage](https://github.com/nosir/cleave.js/blob/master/doc/reactjs-usage.md) section
See more in documentation: [ReactJS component usage](https://github.com/nosir/cleave.js/blob/master/doc/reactjs-component-usage.md) section

## Documentation

Expand All @@ -129,7 +130,7 @@ See more in documentation: [ReactJS usage](https://github.com/nosir/cleave.js/bl
- [Options](https://github.com/nosir/cleave.js/blob/master/doc/options.md)
- [Public methods](https://github.com/nosir/cleave.js/blob/master/doc/public-methods.md)
- [Phone lib plugin](https://github.com/nosir/cleave.js/blob/master/doc/phone-lib-plugin.md)
- [ReactJS usage](https://github.com/nosir/cleave.js/blob/master/doc/reactjs-usage.md)
- [ReactJS component usage](https://github.com/nosir/cleave.js/blob/master/doc/reactjs-component-usage.md)

## Building & Running tests

Expand Down
4 changes: 2 additions & 2 deletions bower.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"name": "cleave.js",
"description": "JavaScript Library for",
"description": "JavaScript library for formatting input text content when you are typing",
"keywords": [
"cleave",
"javascript",
"html",
"form",
"input"
],
"version": "0.0.4",
"version": "0.2.0",
"author": {
"name": "Max Huang",
"email": "[email protected]",
Expand Down
1 change: 1 addition & 0 deletions codacy.json

Large diffs are not rendered by default.

3 changes: 1 addition & 2 deletions dist/cleave-react.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions dist/cleave.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion doc/constructor.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Documentation

[Cleave.js](https://github.com/nosir/cleave.js) > [JavaScript API](https://github.com/nosir/cleave.js/blob/master/doc/js-api.md) > Constructor
[Cleave.js](https://github.com/nosir/cleave.js#documentation) > [JavaScript API](https://github.com/nosir/cleave.js/blob/master/doc/js-api.md) > Constructor

## Constructor

Expand Down
2 changes: 1 addition & 1 deletion doc/js-api.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Documentation

[Cleave.js](https://github.com/nosir/cleave.js) > JavaScript API
[Cleave.js](https://github.com/nosir/cleave.js#documentation) > JavaScript API

- [Constructor](https://github.com/nosir/cleave.js/blob/master/doc/constructor.md)
- [Options](https://github.com/nosir/cleave.js/blob/master/doc/options.md)
Expand Down
2 changes: 1 addition & 1 deletion doc/options.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Documentation

[Cleave.js](https://github.com/nosir/cleave.js) > [JavaScript API](https://github.com/nosir/cleave.js/blob/master/doc/js-api.md) > Options
[Cleave.js](https://github.com/nosir/cleave.js#documentation) > [JavaScript API](https://github.com/nosir/cleave.js/blob/master/doc/js-api.md) > Options

- Credit card numbers:
- [creditCard](#creditcard)
Expand Down
2 changes: 1 addition & 1 deletion doc/phone-lib-plugin.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Documentation

[Cleave.js](https://github.com/nosir/cleave.js) > Phone lib plugin
[Cleave.js](https://github.com/nosir/cleave.js#documentation) > Phone lib plugin

## Why separate phone lib as plugin

Expand Down
Loading

0 comments on commit df05117

Please sign in to comment.