grunt-sassdoc
Advanced tools
Comparing version 0.1.4 to 0.1.5
{ | ||
"name": "grunt-sassdoc", | ||
"title": "grunt-sassdoc", | ||
"version": "0.1.4", | ||
"version": "0.1.5", | ||
"description": "SassDoc grunt task", | ||
@@ -48,4 +48,4 @@ "keywords": [ | ||
"scripts": { | ||
"test": "grunt test" | ||
"test": "grunt test_config && grunt test_options" | ||
} | ||
} |
@@ -62,3 +62,3 @@ # grunt-sassdoc [![npm version](http://img.shields.io/npm/v/grunt-sassdoc.svg?style=flat)](https://www.npmjs.org/package/grunt-sassdoc) [![Build Status: Linux](http://img.shields.io/travis/pascalduez/grunt-sassdoc.svg?style=flat)](https://travis-ci.org/pascalduez/grunt-sassdoc.svg?branch=master) | ||
Type: `String | false` | ||
Default: `false` | ||
Default: `null` | ||
@@ -90,9 +90,10 @@ Whether to display project version next to the page title. | ||
```js | ||
// Example with external view configuration file. | ||
grunt.initConfig({ | ||
sassdoc: { | ||
default: { | ||
src: 'sass', | ||
dest: 'docs', | ||
src: 'path/to/sass', | ||
dest: 'path/todocs', | ||
options: { | ||
config: 'test/view.json' | ||
config: 'path/to/view.json' | ||
} | ||
@@ -105,9 +106,11 @@ } | ||
```js | ||
// Example with passed in options. | ||
grunt.initConfig({ | ||
sassdoc: { | ||
default: { | ||
src: 'sass', | ||
dest: 'docs', | ||
src: 'path/to/sass', | ||
dest: 'path/to/docs', | ||
options: { | ||
title: 'My cool project' | ||
version: 'v1.5.0' | ||
display_access: ['public'], | ||
@@ -114,0 +117,0 @@ display_alias: true |
@@ -40,11 +40,6 @@ /* | ||
// Try to fetch some custom config from package, | ||
var pkg = grunt.file.readJSON('package.json'); | ||
var title = pkg ? pkg.title || pkg.name : 'SassDoc'; | ||
var version = pkg ? 'v' + pkg.version : false; | ||
var options = this.options({ | ||
config: null, | ||
title: title, | ||
version: version, | ||
title: 'SassDoc', | ||
version: null, | ||
display_access: ['public', 'private'], | ||
@@ -51,0 +46,0 @@ display_alias: false |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
7298
129
66