Skip to main content

A fork of mkdocs-extra-sass-plugin with math function shims for non-Dart Sass.

Project description

mkdocs-extra-sass-mathshim

PyPI version PyPI downloads


This plugin adds stylesheets to your MkDocs site from Sass/SCSS and includes shims for math functions—such as math.round() and math.div()—so you can use modern module syntax while using non‑Dart Sass (i.e. LibSass).

Features

  • Uses LibSass with libsass-python.
  • Provides math function shims to translate calls like math.round() to the older, supported equivalents.

How to use

Installation

  1. Install the package with pip:

    pip install mkdocs-extra-sass-mathshim
    
  2. Enable the plugin in your mkdocs.yml:

    plugins:
      - extra-sass
    

    Note: If you have no plugins entry in your config file yet, you'll likely also want to add the search plugin. MkDocs enables it by default if there is no plugins entry set, but now you have to enable it explicitly.

  3. Create an extra_sass directory in your working directory (usually the same directory as mkdocs.yml), and create an entry point file named either style.css.sass or style.css.scss:

    (top)
    ├── docs
    │   ...snip...
    │   └── index.md
    ├── extra_sass
    │   ...snip...
    │   └── style.css.scss  # Compiler entry point file.
    └── mkdocs.yml
    

More information about MkDocs plugins is available in the MkDocs documentation.

Contributing

Every contribution is appreciated—whether you're reporting a bug, asking a question, or submitting a pull request. Please report bugs or request features via Github issues.
If you want to contribute code, please read the Contribution Guidelines.

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

mkdocs_extra_sass_mathshim-0.1.0.tar.gz (4.9 kB view details)

Uploaded Source

Built Distribution

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

mkdocs_extra_sass_mathshim-0.1.0-py3-none-any.whl (5.9 kB view details)

Uploaded Python 3

File details

Details for the file mkdocs_extra_sass_mathshim-0.1.0.tar.gz.

File metadata

  • Download URL: mkdocs_extra_sass_mathshim-0.1.0.tar.gz
  • Upload date:
  • Size: 4.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: pdm/2.22.3 CPython/3.10.6 Linux/5.15.0-125-generic

File hashes

Hashes for mkdocs_extra_sass_mathshim-0.1.0.tar.gz
Algorithm Hash digest
SHA256 c83eafb29e3ec8aa3c7ed4c8d9b43f4e5bb10a9a18d8770731830a0b480df528
MD5 54b1eeed5755fe6f3f1d71418913d5c7
BLAKE2b-256 3b08fbacf301f629c5919df18f2f63b38fac5c2c2f70205c63ca957a77fbebc3

See more details on using hashes here.

File details

Details for the file mkdocs_extra_sass_mathshim-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for mkdocs_extra_sass_mathshim-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5633157c5d62d9cee162fd4e9d0b688eb99144c17e5cd811aee564b5eeebd103
MD5 9b5e86aa8f633ce124718b7ca1e2143e
BLAKE2b-256 f3e94844b9c49c4e6dce0ec3638dbbd2c9b080e157f62d1611806e84829a3ac2

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