0.3.0 • Published 7 years ago

spacedoc-sass v0.3.0

Weekly downloads
8
License
MIT
Repository
github
Last release
7 years ago

spacedoc-sass

SassDoc adapter for Spacedoc

Travis npm

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

License

MIT © Geoff Kimball