[go: nahoru, domu]

Skip to content

Generate markdown documentation from SassDoc comments.

License

Notifications You must be signed in to change notification settings

hidoo/sassdoc-to-markdown

 
 

Repository files navigation

@hidoo/sassdoc-to-markdown

Test

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

About

Generate markdown documentation from SassDoc comments.

Resources

License

Stars

Watchers

Forks

Packages

No packages published