spacedoc-sass
v0.3.0
Published
SassDoc adapter for Spacedoc
Downloads
2
Maintainers
Readme
spacedoc-sass
SassDoc adapter for Spacedoc
Parses data from .scss
files documented with SassDoc. For use with Spacedoc, a documentation generator.
npm install spacedoc-sass
Contents
Usage
spacedoc-sass
requires a working Spacedoc setup. Add sass
to your Spacedoc config like so:
Spacedoc.config({
adapters: ['sass']
});
Or in spacedoc.yml
in your project root:
adapters:
- sass
In pages that require Sass documentation, add sass
to the list of docs
in the page's Front Matter. The value of sass
can be:
- A single file
- A glob of files
- An array with either of those things
---
title: Button
docs:
sass: scss/components/\_button.scss
---
Support
spacedoc-sass
supports all SassDoc types, which includes:
variable
function
mixin
placeholder
The plugin supports these annotations:
@access
@content
@deprecated
@example
@output
@parameter
,@property
@return
@since
@throw
@todo
@type
Other Adapters
spacedoc-js
: JSDoc adapter
License
MIT © Geoff Kimball