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
pip install 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
File details
Details for the file sphinxcontrib-sass-0.3.4.tar.gz
.
File metadata
- Download URL: sphinxcontrib-sass-0.3.4.tar.gz
- Upload date:
- Size: 7.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.14
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e71b9fd9bb3532001928fb3ca06b6e0d12357ef250c5f2faea8807d126e865e9 |
|
MD5 | f22e95a93977ce9b97f57ed81df2d663 |
|
BLAKE2b-256 | 4814077e31957d1ec3b91b80f6d54905a0f66082c160193070a9ec205be35319 |
File details
Details for the file sphinxcontrib_sass-0.3.4-py2.py3-none-any.whl
.
File metadata
- Download URL: sphinxcontrib_sass-0.3.4-py2.py3-none-any.whl
- Upload date:
- Size: 6.6 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.14
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a0c79a44ae8b8935c02dc340ebe40c9e002c839331201c899dc93708970c355a |
|
MD5 | 32158276f879a104a587be358b67f7be |
|
BLAKE2b-256 | 2e877c2eb08e3ca1d6baae32c0a5e005330fe1cec93a36aa085e714c3b3a3c7d |