New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

gulp-sassdoc

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gulp-sassdoc

SassDoc gulp task

  • 1.0.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
5
decreased by-37.5%
Maintainers
1
Weekly downloads
 
Created
Source

gulp-sassdoc npm version Build Status: Linux

SassDoc Gulp task.

This is a Gulp friendly plugin, not using streams.
Its goal is to make SassDoc integration in your Gulp workflow easier.

Getting Started

If you haven't used gulp before, be sure to check out the Getting Started guide, as it explains how to create a Gulpfile as well as install and use Gulp plugins. Once you're familiar with that process, install this plugin with this command:

npm install --save-dev gulp-sassdoc

Documentation

See the Gulpfile in this repo for a full example.

SassDoc task

Run this task with the gulp sassdoc command.

Options

Any specified option will be passed through directly to SassDoc, thus you can specify any option that SassDoc supports. See the SassDoc documentation for a list of supported options.

verbose

Type: Boolean
Default: false

Whether to enable SassDoc own logger or not.

config

Type: String
Default: null

Path to a view configuration file.

display.access

Type: Array
Default: ['public', 'private']

Access levels that should be displayed.

display.alias

Type: Boolean
Default: false

Enable/disable display of alias items.

display.watermark

Type: Boolean
Default: true

Enable/disable display of SassDoc watermark in footer.

package

Type: String | Object
Default: null

Pass your project informations to the generated view. Either a path to your package.json or an object.

Following keys will be looked for: title name version license homepage description

theme

Type: String
Default: 'default'
Since: sassdoc@1.2.0

Name of a custom theme, either a published package or a local one. Check the doc for more infos.

groups

Type: Object
Default: { 'undefined': 'Ungrouped' }
Since: sassdoc@1.2.0

Give friendly names to your groups, if any. Check the doc for more infos.

basePath

Type: String
Default: null
Since: sassdoc@1.2.0

An URL or a path which will be transformed in a link to the source file. Check the doc for more infos.

Heads up: If a config file is passed and found, its options will prevail over defaults. Additional options passed to the Gulp task, will complement it but not override it. You should really manage your options in one place.

Config examples

var gulp = require('gulp');
var sassdoc = require('gulp-sassdoc');


// Bare minimum example, using defaults.
gulp.task('sassdoc', function () {
  return gulp
    .src('path/to/sass')
    .pipe(sassdoc({
      dest: 'path/to/docs'
    }));
});


// Example with external view configuration file.
gulp.task('sassdoc', function () {
  return gulp
    .src('path/to/sass')
    .pipe(sassdoc({
      dest: 'path/to/docs',
      config: 'path/to/view.json'
    }));
});


// Example with passed in options.
// Tip: you don't need to pass every options,
// just override the one you need.
gulp.task('sassdoc', function () {
  var options = {
      dest: 'test/docs',
      verbose: true,
      display: {
        access: ['public', 'private'],
        alias: true,
        watermark: true
      },
      groups: {
        'undefined': 'Ungrouped',
        'foo': 'Foo group',
        'bar': 'Bar group'
      },
      package: './package.json',
      theme: 'default',
      basePath: 'https://github.com/SassDoc/sassdoc'
    };

    return gulp
      .src('test/fixture')
      .pipe(sassdoc(options));
});

Authors

Pascal Duez

Licence

gulp-sassdoc is unlicensed.

Keywords

FAQs

Package last updated on 11 Aug 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc