Skip to content

A clean, responsive documentation template with search and navigation highlighting for JSDoc 3

License

Notifications You must be signed in to change notification settings

Parellin-Technologies-LLC/jsdoc-template

This branch is 1 commit ahead of, 11 commits behind braintree/jsdoc-template:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

aa0c327 · Aug 20, 2018

History

69 Commits
Aug 20, 2018
Jan 30, 2018
Aug 20, 2018
Aug 20, 2018
Nov 1, 2016
Aug 20, 2018
Aug 20, 2018
Aug 20, 2018
Feb 9, 2017
Jan 30, 2018
Nov 1, 2016
Jan 30, 2018
Jan 30, 2018
Jan 31, 2018

Repository files navigation

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

About

A clean, responsive documentation template with search and navigation highlighting for JSDoc 3

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 54.2%
  • CSS 45.8%