Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Like JSDoc, but for Sass files.
Currently only work for .scss
files.
Also, inline comments are not parsed (//
).
/**
* Adds `$value` at `$index` in `$list`.
*
* @author Hugo Giraudel
*
* @ignore Documentation: http://sassylists.com/documentation/#insert-nth
*
* @requires is-true
*
* @param {List} $list - list to update
* @param {Number} $index - index to add
* @param {*} $value - value to add
*
* @throws List index $index is not a number for `insert-nth`.
* @throws List index $index must be a non-zero integer for `insert-nth`.
*
* @return {List | Null}
*/
@function insert-nth($list, $index, $value) {
// ...
}
/**
* Defines whether the lib should support legacy browsers (e.g. `IE 8`).
*
* @since 1.3.37
*
* @todo Nothing. It's awesome.
*
* @link https://github.com/SassDoc/sassdoc SassDoc
*
* @type Bool
*/
$legacy-support: true !global;
npm install -g sassdoc
See grunt-sassdoc.
sassdoc <src> <dest> [options]
Arguments:
<src>
Path to your Sass folder.<dest>
Path to the destination folder.Options:
-h, --help
: Bring help.--version
: Show version.-v, --verbose
: Run in verbose mode.-c, --config
: Path to JSON file containing variables to be passed
to the view. --no-update-notifier
: Do not run the update notifier check.npm install sassdoc --save
var sassdoc = require('sassdoc');
sassdoc.parse(__dirname + '/sass').then(function (items) {
console.log(items);
})
var config = {
"display": {
"access": ["public", "private"],
"alias": false,
"watermark": true
},
"package": "./package.json"
}
var sassdoc = require('sassdoc');
sassdoc.documentize(source, dest, config);
See Wiki.
With the -c
or --config
flag, you can set the path to a JSON file
containing variables to be passed to the view so the latter is a little
more customized than the default documentation.
Default path leads to view/view.json
. You can update this file or make
your own.
Allowed variables:
{
"display": {
"access": ["public", "private"],
"alias": false,
"watermark": true
},
"package": "./package.json"
}
Array
) display.access
: access levels that should be displayedBoolean
) display.alias
: enable/disable display of alias itemsBoolean
) display.watermark
: mention to SassDoc in footer (be cool,
leave it!)String|Object
) package
: path to a .json file (ideally your
package.json
) or directly an objectThe package object (either direct or required) should ideally contain:
title
: human name of your projectname
: package name of your project (in case title
is not defined)version
: your project's versionlicense
: your project's licensehomepage
: URL to your project's homepagedescription
: description of your projectWith huge contributions from:
FAQs
Release the docs!
The npm package sassdoc receives a total of 7,660 weekly downloads. As such, sassdoc popularity was classified as popular.
We found that sassdoc demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 open source maintainers 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.
Security News
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.