Skip to content
This repository has been archived by the owner on Aug 20, 2020. It is now read-only.

Commit

Permalink
Merge pull request #44 from maxtotterman/f-add-esdoc
Browse files Browse the repository at this point in the history
Added esdoc
  • Loading branch information
Matt Bernier authored Oct 28, 2017
2 parents 9e40b55 + bf54dda commit ce24cec
Show file tree
Hide file tree
Showing 5 changed files with 38 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .esdoc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"source": "./lib",
"destination": "./docs",
"plugins": [
{
"name": "esdoc-coverage-plugin",
"option": {
"enable": true,
"kind": [
"class",
"method",
"member",
"get",
"set",
"constructor",
"function",
"variable"
]
}
}
]
}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ lib-cov

# Coverage directory used by tools like istanbul
coverage
docs

# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt
Expand Down
1 change: 1 addition & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ Generally, we follow the style guidelines as suggested by the official language.
Please run your code through:

- [ESLint](http://eslint.org/) with the standard style guide.
- [esdoc](https://github.com/sendgrid/nodejs-http-client/blob/master/USAGE.md) to check the documentation coverage of your added code.

<a name="creating-a-pull-request"></a>
## Creating a Pull Request
Expand Down
12 changes: 12 additions & 0 deletions USAGE.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,15 @@ To run the example:
```bash
node examples/example
```

# Documentation

If you would like to auto-generate documentation of the packages, you can do so locally by running:

`./node_modules/.bin/esdoc`

Using the .esdoc.json file, esdoc will create documentation in the docs directory.

## Checking docs coverage

You will find a coverage.json file in the **docs** directory. This will contain information about the documentation coverage for each of the different files in this repo.
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
"dependencies": {},
"devDependencies": {
"chai": "^3.5.0",
"esdoc": "^1.0.3",
"esdoc-coverage-plugin": "^1.1.0",
"eslint": "^2.7.0",
"eslint-config-standard": "^5.1.0",
"eslint-plugin-standard": "^1.3.2",
Expand Down

0 comments on commit ce24cec

Please sign in to comment.