@hidoo/sassdoc-to-markdown
v1.0.0
Published
Generate markdown documentation from SassDoc comments.
Downloads
15
Readme
@hidoo/sassdoc-to-markdown
Generate markdown documentation from SassDoc comments.
Installation
npm install @hidoo/sassdoc-to-markdown
Usage
Usage
$ sassdoc2md <src> [dest]
Options
--markdown, -m markdown that inject document
--section, -s section that inject to markdown (default: API)
Customize Options
--type-order order of context type (default: variable,placeholder,function,mixin)
--template file path of custom handlebars template
--partials glob pattern of handlebars partials (ex. path/to/partial/*.hbs)
--helpers glob pattern of handlebars helpers (ex. path/to/helpers/*.js)
Supported SassDoc Options
--exclude
--autofill
--verbose, -v
--strict
--debug
Examples
$ sassdoc2md ./src/scss/*.scss
$ sassdoc2md ./src/scss/*.scss -m ./src/README.md -s API
$ sassdoc2md ./src/scss/*.scss ./dest/README.md
$ sassdoc2md ./src/scss/*.scss ./dest/README.md -m ./src/README.md -s API
via Node API
import sassdoc2md from '@hidoo/sassdoc-to-markdown';
const markdown = await sassdoc2md('./src/scss/*.scss');
console.log(markdown);
Test
pnpm test
License
MIT