Skip to main content

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.

Metadata

Release files for mkdocs-extra-sass-mathshim 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mkdocs-extra-sass-mathshim 0.1.1
File Size Uploaded
mkdocs_extra_sass_mathshim-0.1.1.tar.gz 7.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for mkdocs-extra-sass-mathshim 0.1.1
File Interpreter ABI Platform
mkdocs_extra_sass_mathshim-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 15.1 kB

Release files / mkdocs_extra_sass_mathshim-0.1.1.tar.gz

Download URL mkdocs_extra_sass_mathshim-0.1.1.tar.gz
Size 7.1 kB
Tags Source
SHA-256 checksum
How to use checksums
3388c22e2fa59381ff3c38a408cd77e3670537b33e72b0509ce30cba53d18daa
BLAKE2b-256 checksum
How to use checksums
42d6e11922711479cb61e8ef8beeee0a0fb4be6ba09374b9689b93a04efd42b4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via pdm/2.22.3 CPython/3.10.6 Linux/5.15.0-125-generic

Release files / mkdocs_extra_sass_mathshim-0.1.1-py3-none-any.whl

Download URL mkdocs_extra_sass_mathshim-0.1.1-py3-none-any.whl
Size 8.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2c14fba39b1a9c2740429e46d4771dbf389d1333ac17df9aa106bade66150dfb
BLAKE2b-256 checksum
How to use checksums
ce9b810838a78c973cae08e485d0fcab13a9ec1a288785d0509d6133ce5e08d5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via pdm/2.22.3 CPython/3.10.6 Linux/5.15.0-125-generic

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page