Product
Introducing SSO
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
gulp-styledocco-individual
Advanced tools
Readme
Gulp plugin for StyleDocco and supports incremental building.
SytleDocco is a great documentation tool for CSS/Less/Sass and so on. And now, this tool does not support incremental building. Because generated docuents have navigations to each others. So we can not generate documents incrementally.
But we can generate documents individually, and then we can do incremental building.
For example:
StyleDocco (not individual):
path/to/file.css
-> path/to/docs/file.html
path/to/sub/file.css
-> path/to/docs/sub-file.html
StyleDocco (individual):
path/to/file.css
-> path/to/docs/file.css/file.html
path/to/sub/file.css
-> path/to/docs/sub/file.css/file.html
var gulp = require('gulp');
var styledocco = require('gulp-styledocco-individual').styledoccoIndividual;
gulp.task('docs', () => {
return gulp.src('css/**/*.css')
.pipe(styledocco({ out: 'docs' }));
});
And this plugin pass through got files when processing is done. So, you can write:
var gulp = require('gulp');
var styledocco = require('gulp-styledocco-individual').styledoccoIndividual;
var autoprefixer = require('gulp-autoprefixer');
gulp.task('docs', () => {
return gulp.src('css/**/*.css')
.pipe(styledocco({ out: 'docs' }))
.pipe(autoprefixer())
.pipe(gulp.dest('built'));
});
See Using ES6 with gulp.
import gulp from 'gulp';
import {styledoccoIndividual} from 'gulp-styledocco-individual';
gulp.task('docs', () => {
return gulp.src('css/**/*.css')
.pipe(styledoccoIndividual({ out: 'docs' }));
});
$ npm install --save-dev gulp-styledocco-individual
Option Name | Type | Optional | Default |
---|---|---|---|
out | string | yes | 'docs' |
name | string | yes | name property of package.json or '' |
includes | string[] | yes | None |
verbose | boolean | yes | false |
noMinify | boolean | yes | false |
preprocessor | string | yes | None |
styledocco | string | yes | ./node_modules/.bin/styledocco |
out
An output directory. It can be a relative path from the cwd.
name
A name of the generated document. It will be used as the document page title.
includes
Included files for the preview in the generated documentation. It can be a relative path from the cwd.
verbose
Show log messages when generating the documentation.
noMinify
Disable minificating CSS/JavaScript in the generated documentation.
preprocessor
A file path for the CSS preprocessor such as '~/bin/lessc'
.
It can be a relative path from the cwd.
styledocco
A file path for the StyleDocco command such as '~/bin/styledocco'
.
It can be a relative path from the cwd.
guessDocumentPath(filePath, basePath [, options])
Returns a file path to the doc. This function is useful for incremental building.
filePath
Type: string
File path to document.
basePath
Type: string
Base path of the filePath. Typically, it should be vinyl.base.
options
Type: { out: string | undefined | null }
or undefined
or null
Options for gulp-styledocco-individual.
Type: string
File path to the doc.
MIT
FAQs
Gulp plugin for styledocco that supports incremental building
The npm package gulp-styledocco-individual receives a total of 3 weekly downloads. As such, gulp-styledocco-individual popularity was classified as not popular.
We found that gulp-styledocco-individual demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Product
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.