An open API service indexing awesome lists of open source software.

https://github.com/smeijer/latodoc

jsDoc3 Theme
https://github.com/smeijer/latodoc

Last synced: about 1 month ago
JSON representation

jsDoc3 Theme

Awesome Lists containing this project

README

        

# LatoDoc

A clean, responsive documentation template theme for JSDoc 3.

![Lato Screenshot](http://puu.sh/fNzGh/1759187a44.png)

## Uses

- [the Taffy Database library](http://taffydb.com/)
- [Underscore Template library](http://documentcloud.github.com/underscore/#template)
- [Lato](https://www.google.com/fonts/specimen/Lato)
- [Source Code Pro](https://www.google.com/fonts/specimen/Source+Code+Pro)

## Install

```bash
$ npm install --save-dev smeijer/latodoc
```

## Usage

Clone repository to your designated `jsdoc` template directory, then:

```bash
$ jsdoc entry-file.js -t path/to/latodoc
```

### Node.js Dependency

In your projects `package.json` file add a generate script:

```json
"script": {
"generate-docs": "node_modules/.bin/jsdoc --configure .jsdoc.json --verbose"
}
```

In your `.jsdoc.json` file, add a template option.

```json
"opts": {
"template": "node_modules/latodoc"
}
```

### Example JSDoc Config

```json
{
"tags": {
"allowUnknownTags": true,
"dictionaries": ["jsdoc"]
},
"source": {
"include": ["lib", "package.json", "README.md"],
"includePattern": "\\.js$",
"excludePattern": "(node_modules/|docs)"
},
"plugins": [
"plugins/markdown"
],
"templates": {
"cleverLinks": true,
"monospaceLinks": true
},
"opts": {
"destination": "./docs/",
"encoding": "utf8",
"private": true,
"recurse": true,
"template": "./node_modules/latodoc"
}
}
```

## License

Licensed under the MIT license.