1.0.0 • Published 3 years ago

@dogatana/honkit-plugin-styles-sass v1.0.0

Weekly downloads
2
License
Apache-2.0
Repository
github
Last release
3 years ago

SASS Stylesheets for Honkit

This plugin makes it easy to use SASS custom stylesheets instead of CSS for your book.

Add it to your book.json, with some custom stylesheets:

{
    "plugins": ["@dogatana/styles-sass"],
    "styles": {
        "pdf": "./styles/pdf.sass"
    }
}

Fork of gitbook-plugin-styles-sass

honkit-plugin-styles-sass is a fork of https://github.com/GitbookIO/plugin-styles-sass

Gitbook is now deprecated and node-sass 3.4.1 seems too old to use now.

This plugin aims to be used with Honkit.

Changes from gitbook-plugin-styles-sass

  • update version of dependencies
  • outputStyle of node-sass is expaned by default
  • outputStyle can be specified in book.json
{
    "pluginsConfig": {
        "styles-sass": {
            "outputStyle": "compressed"
        }
    }
}
  • outputStyle must be one of nested, expanded, compact and compressed
  • remove DateTime string from the name of output
  • directory path is preserved as specified in book.json

ex) In the following case, _book/styles/website/sample.css will be stored.

{
    "styles": {
        "website": "styles/website/sample.scss"
    }
}
  • input .scss and .sass files are not copied to _book