https://github.com/agility/agility-jsdoc-template
Agility JSDoc 3 Template
https://github.com/agility/agility-jsdoc-template
Last synced: about 1 year ago
JSON representation
Agility JSDoc 3 Template
- Host: GitHub
- URL: https://github.com/agility/agility-jsdoc-template
- Owner: agility
- License: other
- Created: 2019-03-11T17:11:27.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-07-16T15:35:40.000Z (almost 7 years ago)
- Last Synced: 2025-03-16T19:18:52.262Z (about 1 year ago)
- Language: JavaScript
- Size: 579 KB
- Stars: 0
- Watchers: 6
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://agility.visualstudio.com/Agility CMS/_build/latest?definitionId=56&branchName=master)
# Agility JsDoc Template
A clean, responsive documentation template theme for JSDoc 3. This has been customized for use with Agility.
[Live Demo](https://agilitydocs.netlify.com/agility-content-fetch-js-sdk/)
## Install
```bash
$ npm install --save-dev agility-jsdoc-template
```
## Usage
Clone repository to your designated `jsdoc` template directory, then:
```bash
$ jsdoc entry-file.js -t path/to/agility-jsdoc-template
```
### Node.js Dependency
In your projects `package.json` file add a generate script:
```json
"script": {
"generate-docs": "node_modules/.bin/jsdoc --configure .jsdoc.json --verbose"
}
```
In your `.jsdoc.json` file, add a template option.
```json
"opts": {
"template": "node_modules/agility-jsdoc-template"
}
```
### Example JSDoc Config
```json
{
"source": {
"include": ["src", "README.md", "package.json"],
"includePattern": ".js$",
"excludePattern": "(node_modules/|docs)"
},
"plugins": [
"plugins/markdown"
],
"recurse": 10,
"templates": {
"cleverLinks": false,
"monospaceLinks": true,
"useLongnameInNav": true,
"showInheritedInNav": true
},
"tags": {
"allowUnknownTags": true,
"dictionaries": ["jsdoc"]
},
"source-type": "module",
"opts": {
"destination": "./docs/",
"encoding": "utf8",
"private": false,
"recurse": true,
"template": "./node_modules/agility-jsdoc-template"
}
}
```
Specifying a number for useLongnameInNav it will be the max number of path elements to show in nav (starting from Class).
## License
Licensed under the Apache2 license.