Skip to content
jsdoc-template / 1.6.0

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

Homey JSDoc Template

How to use this template

  1. Install as a dev dependency
$ npm i --save-dev @athombv/jsdoc-template
  1. 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"
  ]
}

Recommended NPM Scripts

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
  1. 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"
  }
}

How to make updates to template

  1. Clone this repository

  2. 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

Configuration

Simple analytics

To add an alternative cname host for Simple Analytics add the following rule to jsdoc.json or jsdocrc.json

{
  "opts": {
    "simpleAnalyticsHost": "your-host.extension"
  }
}

Customization

Batches / images / videos

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

Details


Assets

  • jsdoc-template-1.6.0-npm.tgz

Download activity

  • Total downloads 10
  • Last 30 days 0
  • Last week 0
  • Today 0

Recent versions

View all