Skip to content

ocrest/ember-cli-sassdoc

Repository files navigation

ember-cli-sassdoc

SassDoc for ember-cli applications. Provides ember sassdoc command and ember-cli middleware for serving compiled SassDoc assets.

Installation

ember install ember-cli-sassdoc

Usage

In order to generate documentation for you Sass files, run this command inside the project root directory:

ember sassdoc

You can then access the generated documentation at http://localhost:4200/sassdoc route.

If you want to change the name of this route, set the ENV.sassDocRoute property in your config/environment.js configuration file. Also, you can change the path to directory with SassDoc assets being served, using the ENV.sassDocDir property.

The list of supported options of the ember sassdoc command:

ember sassdoc <options...>
  Generate documentation for Sass files
  --source (String) (Default: ./app/styles)
    aliases: -src <value>
  --exclude (String) (Default: [])
    aliases: -e <value>
  --dest (String) (Default: ./sassdoc)
    aliases: -dst <value>
  --package (String) (Default: ./package.json)
    aliases: -pkg <value>
  --theme (String) (Default: default)
    aliases: -t <value>
  --autofill (String) (Default: ["requires", "throws", "content"])
    aliases: -af <value>
  --groups (String) (Default: {"undefined": "general"})
    aliases: -g <value>
  --verbose (Boolean) (Default: false)
    aliases: -v
  --config (String) (Default: .sassdocrc)
    aliases: -c <value>

You can also override default options with the SassDoc configuration file (--config or -c option used only for config name other than .sassdocrc).

About

Include SassDoc into an ember-cli app

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published