1.0.2 • Published 7 years ago

ub-jsdoc-el-dorado v1.0.2

Weekly downloads
392
License
MIT
Repository
github
Last release
7 years ago

ub-jsdoc

Documentation template theme for JSDoc 3 based on minami theme. Inspired by godoc

ScreenshotMobile

ScreenshotSearch

Live sample is a UnityBase framework documentation

Features

  • Designed for a framework with many modules inside
  • Partial navigation
  • Full Text Search with rank
  • Cross-module navigation using {@link ClassName} instead of {module:ModuleName.ClassName}
  • Links to MDN for a standard built-in objects
  • Click on member name will navigate to source
  • Compact layout on members
  • Responsive design

Uses

Install

$ npm install --save-dev ub-jsdoc

For simple Cross-module navigation replace a js-doc templateHelper.js with templateHelper.js-patched

Usage

Clone repository to your designated jsdoc template directory, then:

$ jsdoc entry-file.js -t path/to/ub-jsdoc

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

Example JSDoc Config

{
    "tags": {
        "allowUnknownTags": true,
        "dictionaries": ["jsdoc"]
    },
    "source": {
        "include": ["lib", "package.json", "README.md"],
        "includePattern": ".js$",
        "excludePattern": "(node_modules/|docs)"
    },
    "plugins": [
        "plugins/markdown",
	"./ub-jsdocs/plugins/sripPFromDescription"
    ],
    "templates": {
        "cleverLinks": true,
        "monospaceLinks": false,

		"buildInURL": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/",
		"buildins": ["array", "arraybuffer", "boolean", "date", "error", "function", "json", "number", "object", "regexp", "string", "null"],
		"smallSourceLink": true, 
		"hideAuthor": true, 
		"stylesheet": "styles/ub-jsdoc.css",
		"googleAnalytics": "yourGAAccount",  
        "default": {
            "outputSourceFiles": true,
			"staticFiles": {
				"include": ["./pathToYourTutorialFolder"],
				"excludePattern": "\\.md$"
			}
		}
    },
    "opts": {
        "destination": "./docs/",
        "encoding": "utf8",
        "private": true,
        "recurse": true,
        "template": "./node_modules/ub-jsdoc",
	"tutorials": "./pathToYourTutorialFolder"
    }
}

License

Licensed under the Apache2 license.

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago