mkdocs-macros-utils
Deprecated: This package is no longer maintained. Please migrate to zensical-macros-utils instead.
mkdocs-macros-utils is a zensical-based project that provides macros to extend cards, code blocks, etc, in MkDocs documents.
Features
- Link Card: Create link cards with images and descriptions, etc
- Gist Code Block: Embed and syntax-highlight code from GitHub Gists
- X/Twitter Card: Embed tweets with proper styling and dark mode support
Usage
Install mkdocs-macros-utils
# For pip
pip install mkdocs-macros-utils
# For uv
uv add mkdocs-macros-utils
Config settings
-
Add the extension to your
mkdocs.ymlmarkdown_extensions: - zensical.extensions.macros: modules: [mkdocs_macros_utils] extra: debug: link_card: false # Set to true for debug logging gist_codeblock: false x_twitter_card: false extra_css: - stylesheets/macros-utils/link-card.css - stylesheets/macros-utils/gist-cb.css - stylesheets/macros-utils/x-twitter-link-card.css extra_javascript: - javascripts/macros-utils/x-twitter-widget.js
-
Start the development server
uv run zensical serve
The plugin will automatically create the required directories and copy CSS/JS files during the build process.
Documentation
For detailed usage and examples, please see the documentation.
License
MIT License - see the LICENSE file for details.
Release files for mkdocs-macros-utils 0.0.11
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_macros_utils-0.0.11.tar.gz | 2.5 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| mkdocs_macros_utils-0.0.11-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 2.6 MB
Release files / mkdocs_macros_utils-0.0.11.tar.gz
| Download URL | mkdocs_macros_utils-0.0.11.tar.gz |
|---|---|
| Size | 2.5 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
212f995bf57a601ca79d404feea555b0d76bad083ab083f92eb51b0595009426
|
|
BLAKE2b-256 checksum How to use checksums |
9d4c4890a9930c253f5478875e3bb1878ea5520ff8a05a5580e78117a26bf150
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.15 {"installer":{"name":"uv","version":"0.11.15","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / mkdocs_macros_utils-0.0.11-py3-none-any.whl
| Download URL | mkdocs_macros_utils-0.0.11-py3-none-any.whl |
|---|---|
| Size | 20.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
45c629a4165819d557352d21eba33397da45cbd68ae3892431d8278508f74a15
|
|
BLAKE2b-256 checksum How to use checksums |
ab63b3a611685e7d3b705977afd53726575db30c2837477ed18d9ba9230acc58
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.15 {"installer":{"name":"uv","version":"0.11.15","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|