clean-jsdoc-theme
A beautifully crafted theme/template for JSDoc 3. We have built this theme/template to bring the best user experience. This theme/template looks and feels like a premium theme/template. This is a fully mobile responsive theme and also fully customizable theme (for more look below in feature section).
We give extra care on every part of this theme/template, like instead of using a simple search mechanism we have used one of the most advance search technology Fuse.js.
Although, we have given extra care on every part, we know that there might be some part that we didn't cover in our documentation or there might be some bug in our code or there might some feature missing. Feel free to raise issues, we have a very proactive community ready to solve issues as soon as possible.
Live demo: https://ankdev.me/clean-jsdoc-theme/index.html
Demo screen
Install
Note you must have npm
installed on your machine.
On your command line type
npm install clean-jsdoc-theme
Usage
Clone repository to your designated jsdoc template directory, then
jsdoc entry-file.js -t path/to/clean-jsdoc-theme
Node.js Dependency
In your projects package.json file add a generate script
"script": {
"generate-docs": "node_modules/.bin/jsdoc --configure .jsdoc.json --verbose"
}
In your jsdoc.json
file, add a template option.
"opts": {
"template": "node_modules/clean-jsdoc-theme"
}
Example JSDoc Config
{
"source": {
"include": ["lib", "package.json", "README.md"],
"includePattern": ".js$",
"excludePattern": "(node_modules/|docs)"
},
"plugins": [
"plugins/markdown"
],
"opts": {
"encoding": "utf8",
"readme": "./README.md",
"destination": "docs/",
"recurse": true,
"verbose": true,
"template": "./node_modules/clean-jsdoc-theme"
}
}
Features
We believe in giving freedom to the developer, that's why we have given many option to
the developer to customize this theme according to there needs.
You can pass an object called theme_opts
under opts
for more options like:
"opts":{
"theme_opts":{
"title": "clean-jsdoc-theme",
"filter": false,
"menu": [
{
"title": "Website",
"link": "https://ankdev.me/clean-jsdoc-theme/index.html",
"target": "_blank",
"class": "some-class",
"id": "some-id"
},
{
"title": "Github",
"link": "https://github.com/ankitskvmdam/clean-jsdoc-theme/",
"target": "_blank",
"class": "some-class",
"id": "some-id"
}
]
"meta": [
"<meta name=\"author\" content=\"Ankit Kumar\">",
"<meta name=\"description\" content=\"Best Clean and minimal JSDoc 3 Template / Theme\">"
],
"create_style": "nav{background: yellow}" +
".my-custom-class{ filter: brightness(10) grayscale(100%)}",
"add_style_path": ["../custom.css"],
"add_scripts": "function foo(){console.log('foo')}",
"add_script_path": ["../custom.js"],
"footer": "This is footer",
}
}
Developing
git clone https://github.com/ankitskvmdam/clean-jsdoc-theme.git
cd clean-jsdoc-theme
npm install
npm run test
npm run test
will generate files in output folder.
Contact
If you like our work, then give us a star. This will act as a driving force to add new feature more frequently.
Mail us at: hello@ankdev.me
License
Licensed under the MIT license.