A clean and streamlined JSDoc 3 template (extended from Minami).
See the template in action here and here.
- Minami JSDoc theme
- The Taffy Database library
- Montserrat & Helvetica Neue
$ npm install --save-dev boxy-jsdoc-template
Clone repository to your designated jsdoc
template directory, then:
$ jsdoc entry-file.js -t path/to/boxy-jsdoc-template
npm i boxy-jsdoc-template -D
In your projects package.json
file, add a generate script:
"script": {
"doc": "jsdoc -c .jsdocrc"
}
In your .jsdocrc
file, add a template option.
"opts": {
"template": "node_modules/boxy-jsdoc-template"
}
{
"tags": {
"allowUnknownTags": true,
"dictionaries": ["jsdoc"]
},
"source": {
"include": ["lib", "package.json", "README.md"],
"includePattern": ".js$",
"excludePattern": "(node_modules/|docs)"
},
"plugins": [
"plugins/markdown"
],
"templates": {
"cleverLinks": false,
"monospaceLinks": true,
"useLongnameInNav": false
},
"opts": {
"destination": "./docs/",
"encoding": "utf8",
"private": true,
"recurse": true,
"template": "./node_modules/boxy-jsdoc-template"
}
}
Specifying a number for useLongnameInNav it will be the max number of path elements to show in nav (starting from Class).
- Bring back README list-item bullets
- Properly style deprecated method/function params
- Update 'description' padding
- Fix issue where generation date in footer is wrong
- Update styles
- Support @copyright and @license in global objects
- Update padding in 'exception' section
- Update properties output
- Update params output
- Remove unneeded CSS
- Update header info section
- Move copyright tag to header info section
- Move license tag to header info section
- Update styles for
<pre>
tags. - Make anchor text bold
- Add bg color to
<pre>
tags - Add 'break-word' CSS to
<h1>
tags - Decrease header sizes
- For mobile nav, fix issue with hover state line-height
- Update JSDoc link to open in _blank window
- Update 'properties' layout template
- Remove
<table>
and rewrite completely to update the view - Improve mobile UI
- Improve mobile UX
- Update HTML to validate against W3C standards
- Removed errors and ignored warnings
- Improve source code view.
- Update mobile nav UI
- Add logic to hide mobile nav on list item click
- Remove unused ionicons css
- Move all scripts to bottom of body tag
- Update js
- Add list of members to nav panel
- Add Members/Methods labels
- Update home/readme styles
- Remove unused static fonts
- Improve mobile layout
- Add author and license info to header.
- Update generation date format
- Remove extra whitespace in param defaults
- Move source link to bottom of output stack.
- Big layout redesign changes
- Refactor param output
- Add more obvious deprecation view
Thanks to the author of the Minami theme and its contributors. Their theme and README served as a great base to build from.
Licensed under the Apache2 license.