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

Package detail

jsdoc-fresh

googleapis38.2kApache-2.03.0.0

Fresh JSDoc 3 Template

readme

Fresh JSDoc Template

NPM Version Build Status semantic-release

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

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-fresh"
}

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

3.0.0 (2023-08-10)

⚠ BREAKING CHANGES

  • upgrade to Node 14

Miscellaneous Chores

2.0.2 (2023-04-27)

Bug Fixes

  • deps: Replace taffydb with @jsdoc/salty (#117) (27447a5)

2.0.1 (2022-08-23)

Bug Fixes

2.0.0 (2022-05-18)

⚠ BREAKING CHANGES

  • update library to use Node 12 (#108)

Build System

1.1.1 (2021-08-11)

Bug Fixes

  • build: migrate to using main branch (#83) (9474adb)

1.1.0 (2021-06-03)

Features

  • add gcf-owl-bot[bot] to ignoreAuthors (#64) (a8cff54)
  • display deprecation messages better (#68) (def7b82)

1.0.5 (2020-10-30)

Bug Fixes

  • docs: fix the sample in README.md (#50) (ac6c1a9)

1.0.4 (2020-07-09)

Bug Fixes

1.0.3 (2020-05-20)

Bug Fixes