mkdocs-extra-sass-mathshim
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
-
Install the package with pip:
pip install mkdocs-extra-sass-mathshim
-
Enable the plugin in your
mkdocs.yml:plugins: - extra-sass
Note: If you have no
pluginsentry in your config file yet, you'll likely also want to add thesearchplugin. MkDocs enables it by default if there is nopluginsentry set, but now you have to enable it explicitly. -
Create an
extra_sassdirectory in your working directory (usually the same directory asmkdocs.yml), and create an entry point file named eitherstyle.css.sassorstyle.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)
| File | Size | Uploaded | |
|---|---|---|---|
| mkdocs_extra_sass_mathshim-0.1.1.tar.gz | 7.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| 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
|