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

Commit ce24cec

Browse files
author
Matt Bernier
authored
Merge pull request #44 from maxtotterman/f-add-esdoc
Added esdoc
2 parents 9e40b55 + bf54dda commit ce24cec

File tree

5 files changed

+38
-0
lines changed

5 files changed

+38
-0
lines changed

.esdoc.json

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"source": "./lib",
3+
"destination": "./docs",
4+
"plugins": [
5+
{
6+
"name": "esdoc-coverage-plugin",
7+
"option": {
8+
"enable": true,
9+
"kind": [
10+
"class",
11+
"method",
12+
"member",
13+
"get",
14+
"set",
15+
"constructor",
16+
"function",
17+
"variable"
18+
]
19+
}
20+
}
21+
]
22+
}

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ lib-cov
1313

1414
# Coverage directory used by tools like istanbul
1515
coverage
16+
docs
1617

1718
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
1819
.grunt

CONTRIBUTING.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@ Generally, we follow the style guidelines as suggested by the official language.
130130
Please run your code through:
131131

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

134135
<a name="creating-a-pull-request"></a>
135136
## Creating a Pull Request

USAGE.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,15 @@ To run the example:
1515
```bash
1616
node examples/example
1717
```
18+
19+
# Documentation
20+
21+
If you would like to auto-generate documentation of the packages, you can do so locally by running:
22+
23+
`./node_modules/.bin/esdoc`
24+
25+
Using the .esdoc.json file, esdoc will create documentation in the docs directory.
26+
27+
## Checking docs coverage
28+
29+
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.

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@
2121
"dependencies": {},
2222
"devDependencies": {
2323
"chai": "^3.5.0",
24+
"esdoc": "^1.0.3",
25+
"esdoc-coverage-plugin": "^1.1.0",
2426
"eslint": "^2.7.0",
2527
"eslint-config-standard": "^5.1.0",
2628
"eslint-plugin-standard": "^1.3.2",

0 commit comments

Comments
 (0)