UNPKG

1.69 kBMarkdownView Raw
1# Minami
2
3A clean, responsive documentation template theme for JSDoc 3.
4
5![Minami Screenshot](http://i.imgur.com/rPCIFqT.png)
6
7
8## Uses
9
10- [the Taffy Database library](http://taffydb.com/)
11- [Underscore Template library](http://underscorejs.org/#template)
12- [Montserrat](https://fonts.google.com/specimen/Montserrat) & Helvetica Neue
13
14
15## Install
16
17```bash
18$ npm install --save-dev minami
19```
20
21
22## Usage
23
24Clone repository to your designated `jsdoc` template directory, then:
25
26```bash
27$ jsdoc entry-file.js -t path/to/minami
28```
29
30
31### Node.js Dependency
32
33In your projects `package.json` file add a generate script:
34
35```json
36"script": {
37 "generate-docs": "node_modules/.bin/jsdoc --configure .jsdoc.json --verbose"
38}
39```
40
41In your `.jsdoc.json` file, add a template option.
42
43```json
44"opts": {
45 "template": "node_modules/minami"
46}
47```
48
49
50### Example JSDoc Config
51
52```json
53{
54 "tags": {
55 "allowUnknownTags": true,
56 "dictionaries": ["jsdoc"]
57 },
58 "source": {
59 "include": ["lib", "package.json", "README.md"],
60 "includePattern": ".js$",
61 "excludePattern": "(node_modules/|docs)"
62 },
63 "plugins": [
64 "plugins/markdown"
65 ],
66 "templates": {
67 "cleverLinks": false,
68 "monospaceLinks": true,
69 "useLongnameInNav": false,
70 "showInheritedInNav": true
71 },
72 "opts": {
73 "destination": "./docs/",
74 "encoding": "utf8",
75 "private": true,
76 "recurse": true,
77 "template": "./node_modules/minami"
78 }
79}
80```
81
82Specifying a number for useLongnameInNav it will be the max number of path elements to show in nav (starting from Class).
83
84
85## License
86
87Licensed under the Apache2 license.