New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

jsdoc-docset

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jsdoc-docset

Generate a docSet compatible with the dash app from within a jsDoc template

latest
Source
npmnpm
Version
0.3.0
Version published
Maintainers
1
Created
Source

jsdoc-docset

Helpers to generate a docSet compatible with the dash application from within a jsDoc template. Requires jsDoc v3.4+

Usage

The docSet can be created from the jsdoc template publish function.

// ...
var helper = require('jsdoc/util/templateHelper');
var jsdocDocSet = require('jsdoc-docset');
// ...
exports.publish = function(taffyData, opts, tutorials) {

  // ... template logic

  return jsdocDocSet.createDocSet({
    templateHelper: helper,
    docletHelper: docletHelper,
    opts: opts
  });
};

The docletHelper can be either an object with a getCategory method that returns all members generated by jsDoc parser for a specific category. It can also be an instance of a docletHelper as defined in the upcoming new jsdoc template: jsdoc-baseline.

Implementation Example: jsdoc-dash-template

DocSet Entries Extractor as a standalone

DocSets's TOC are based on a set of entries. This library provides a class to extract them from jsdoc.

var DocSetEntries = require('jsdoc-docset').Entries;
var entries = new DocSetEntries({
  templateHelper: templateHelper,
  docletHelper: docletHelper
}).getEntries();

View Helpers

dashAnchor helper

If you want to use your docSet within the dash application, you may want to add "dash anchors" to your html documentation to provide a better navigation. Members of the page will be displayed in the left sidebar. The dashAnchor helper can be used from inside your templates to generate those anchors.

Keywords

jsdoc3

FAQs

Package last updated on 10 Dec 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts