Skip to content

Commit

Permalink
add typedoc generation for corev1Api
Browse files Browse the repository at this point in the history
  • Loading branch information
kgrubb committed Aug 22, 2019
1 parent 0a0dcbf commit d8ce9e9
Show file tree
Hide file tree
Showing 5 changed files with 155 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,5 @@ examples/package-lock.json
kubernetes-client-node-*.tgz
**/*.swp
.idea/
docs/*
.DS_Store
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,16 @@ npm install
npm run generate
```

## Documentation

Documentation is generated via typedoc:

```
npm run docs
```

To view the generated documentation, open `docs/index.html`

## Formatting

Run `npm run format` or install an editor plugin like https://github.com/prettier/prettier-vscode and https://marketplace.visualstudio.com/items?itemName=EditorConfig.EditorConfig
Expand Down
135 changes: 135 additions & 0 deletions package-lock.json

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

4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@
"generate": "./generate-client.sh",
"watch": "tsc --watch",
"test": "nyc mocha",
"prepare": "npm run build"
"prepare": "npm run build",
"docs": "typedoc src/gen/api/coreV1Api.ts"
},
"nyc": {
"include": [
Expand Down Expand Up @@ -85,6 +86,7 @@
"ts-mockito": "^2.3.1",
"ts-node": "^8.2.0",
"tslint": "^5.17.0",
"typedoc": "^0.15.0",
"typescript": "^3.1.3"
},
"bugs": {
Expand Down
5 changes: 5 additions & 0 deletions typedoc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"mode": "file",
"out": "docs",
"excludeExternals": true
}

0 comments on commit d8ce9e9

Please sign in to comment.