jsdoc-template 1.6.0
Install from the command line:
Learn more about npm packages
$ npm install @athombv/jsdoc-template@1.6.0
Install via package.json:
"@athombv/jsdoc-template": "1.6.0"
About this version
- Install as a dev dependency
$ npm i --save-dev @athombv/jsdoc-template
- Add to
./docs/jsdoc.json
:
{
"opts": {
"mainpagetitle": "Your Project Name",
"template": "./node_modules/homey-jsdoc-template"
},
"source": {
"include": [
"./README.md",
"./lib",
"./index.js"
]
},
"plugins": [
"plugins/markdown"
]
}
This is the recommended approach of integrating this template in your project, additional to the steps above.
$ npm i --save-dev concurrently jsdoc jsdoc-ts-utils serve watch
- Add scripts to
package.json
{
"scripts": {
"serve": "concurrently \"serve build/\" \"npm run jsdoc:watch\"",
"build": "npm ci; npm run jsdoc:clean; npm run jsdoc;",
"jsdoc": "jsdoc --configure ./docs/jsdoc.json;",
"jsdoc:clean": "rm -rf ./build",
"jsdoc:watch": "watch \"npm run jsdoc:clean && npm run jsdoc\" ./lib docs"
}
}
-
Clone this repository
-
Link this repository to your current project by:
npm link homey-jsdoc-template
note: you have to relink the repository each time after you run npm install
To add an alternative cname host for Simple Analytics add the following rule to jsdoc.json
or jsdocrc.json
{
"opts": {
"simpleAnalyticsHost": "your-host.extension"
}
}
If you want to add batches a.o elements like images/ video in top of the readme.md it will break the large intro paragraph. Wrap your intro elements in <header>
tags to avoid this.
Example
readme.md
<header>
# Your heading
batches/images/etc
</header>
My first large paragraph