Skip to content

jsdoc-template 1.6.1

Install from the command line:
Learn more about npm packages
$ npm install @athombv/jsdoc-template@1.6.1
Install via package.json:
"@athombv/jsdoc-template": "1.6.1"

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/@athombv/jsdoc-template"
  },
  "source": {
    "include": [
      "./README.md",
      "./lib",
      "./index.js"
    ]
  },
  "plugins": [
    "plugins/markdown"
  ],
  "templates": {
    "default": {
      "outputSourceFiles": false
    }
  }
}

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 --destination ./jsdoc/",
    "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 @athombv/jsdoc-template

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.1-npm.tgz

Download activity

  • Total downloads 1,011
  • Last 30 days 6
  • Last week 1
  • Today 0

Recent versions

View all