Skip to main content

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

  1. Install from source

  2. Edit conf.py

    • Set sphinxcontrib.sass into extensions

    • Configure for sphinxcontrib.sass (see example)

  3. 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sphinxcontrib_sass-0.3.5.tar.gz (6.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sphinxcontrib_sass-0.3.5-py2.py3-none-any.whl (6.7 kB view details)

Uploaded Python 2Python 3

File details

Details for the file sphinxcontrib_sass-0.3.5.tar.gz.

File metadata

  • Download URL: sphinxcontrib_sass-0.3.5.tar.gz
  • Upload date:
  • Size: 6.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.2

File hashes

Hashes for sphinxcontrib_sass-0.3.5.tar.gz
Algorithm Hash digest
SHA256 96fa04f56507bafcca56be19d0906bf563ff8d6f11d0b875b18c76df38d669ab
MD5 99bdf94c0dcd96480a4421f1e071be57
BLAKE2b-256 1f7e54785a8d8588de6c983ab8cf3157d01b001bda35f1335dd01e36c2903e1f

See more details on using hashes here.

File details

Details for the file sphinxcontrib_sass-0.3.5-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for sphinxcontrib_sass-0.3.5-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 850c83a36ed2d2059562504ccf496ca626c9c0bb89ec642a2d9c42105704bef6
MD5 f91dbf5dd7bf59c6a694ad58f4990fc2
BLAKE2b-256 3fec194f2dbe55b3fe0941b43286c21abb49064d9d023abfb99305c79ad77cad

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page