Sphinx extension to compile sass to css in running sphinx-build.
Project description
Overview
Sphinx extension to compile sass to css in running sphinx-build.
Install
This is alpha product, and does not yet registered in public PyPI. You can get it from GitHub Releases.
pip install --find-links=https://github.com/attakei-lab/sphinxcontrib-sass/releases sphinxcontrib-sass
Usage
Install from source
Edit conf.py
Set sphinxcontrib.sass into extensions
Configure for sphinxcontrib.sass (see example)
Run sphinx-build
Options
- sass_src_dir
Root directory of SASS source files.
- sass_out_dir
Root directory to output compiled css files.
- sass_targets
File map of sources and outputs
- sass_output_style
Output style to generate css by libsass.
- sass_include_paths
Include path configuration for libsass.
Example
extensions = [
"sphinxcontrib.sass",
]
html_css_files = ["css/custom.css"]
sass_src_dir = "_sass"
sass_out_dir = "_static/css"
sass_targets = {
"custom.scss": "custom.css"
}
License
Apache 2.0. See it.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for sphinxcontrib_sass-0.3.3-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 83275b82e28e45aae3f39c1cc5627c9a006b5843ba16e6066660e2fcf9533933 |
|
MD5 | b9816729e7fd23663883eb399c50f81c |
|
BLAKE2b-256 | f0d237ad9359cb14e0320551ebec235cdf6a36d1ef71bdfa643e32ee1accd512 |