Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

imapflow-jsdoc-template

braintree2573.4.0-imapflow.3

Braintree JSDoc 3 Template

readme

Forked from https://github.com/braintree/jsdoc-template

Braintree JSDoc Template

A clean, responsive documentation template with search and navigation highlighting for JSDoc 3. Forked from github.com/nijikokun/minami.

Braintree JS Doc Template Screenshot

Responsive

Braintree JS Doc Template Screenshot

Uses

Usage

Clone repository to your designated jsdoc template directory, then:

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/jsdoc-template"
}

Example JSDoc Config

{
  "tags": {
    "allowUnknownTags": true,
    "dictionaries": ["jsdoc"]
  },
  "source": {
    "include": ["lib", "package.json", "README.md"],
    "includePattern": ".js$",
    "excludePattern": "(node_modules/|docs)"
  },
  "plugins": ["plugins/markdown"],
  "templates": {
    "referenceTitle": "My SDK Name",
    "disableSort": false,
    "collapse": true,
    "resources": {
      "google": "https://www.google.com/"
    }
  },
  "opts": {
    "destination": "./docs/",
    "encoding": "utf8",
    "private": true,
    "recurse": true,
    "template": "./node_modules/jsdoc-template"
  }
}

Note: referenceTitle and disableSort will affect the output of this theme.

If you would like to enable Algolia DocSearch, you can pass a search object into the templates object.

"templates": {
    "search": {
        "apiKey": "your-api-key",
        "indexName": "Your index name. Defaults to braintree.",
        "hitsPerPage": "Number of Results to show. Defaults to 7.",
    }
}

License

Licensed under the Apache2 license.

changelog

CHANGELOG

v3.4.0 (2020-10-15)

  • Added a postprocess function option to template config options

3.3.0

  • Added support for templates.collapse option. When set to true only the active component's members are expanded.
  • Added templates.resources option that takes an object where the keys are the labels and the values are links to external resources.
  • Minor css bugfixes

3.2.0

  • Fix issue where all elements would be hidden if no excludePattern is included (#16 thanks @mercmobily)
  • Display bullet points in documentation (#17) thanks @mercmobily)
  • Allow disableSort to be included in template to prevent automatic sorting of classes and methods (#15 thanks @mercmobily)

3.1.1

  • Hide hidden modules from members section

3.1.0

  • Add anchor tags to examples
  • Increase max-width of sections