mkdocs-macros-utils is a mkdocs-macros-plugin based project that provides macros to extend cards, code blocks, etc, in MkDocs documents.
Project description
mkdocs-macros-utils
mkdocs-macros-utils is mkdocs-macros-plugin 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 poetry
poetry add mkdocs-macros-utils
Config settings
-
Add the plugin to your
mkdocs.ymlplugins: - macros: modules: [mkdocs_macros_utils] markdown_extensions: - attr_list - md_in_html 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
poetry run mkdocs 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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mkdocs_macros_utils-0.0.8.tar.gz.
File metadata
- Download URL: mkdocs_macros_utils-0.0.8.tar.gz
- Upload date:
- Size: 16.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.0 CPython/3.10.12 Linux/5.15.167.4-microsoft-standard-WSL2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
29b140dc1ba21f80ea61d4c373bc0c8c69783f1e2d6b05f0fba9148b066f09ce
|
|
| MD5 |
23cda00318842a852ef3582d1b581cc8
|
|
| BLAKE2b-256 |
863f135b42943d701c168f3b7fb7697129c8ce9493be290f72f52e76855d8ba2
|
File details
Details for the file mkdocs_macros_utils-0.0.8-py3-none-any.whl.
File metadata
- Download URL: mkdocs_macros_utils-0.0.8-py3-none-any.whl
- Upload date:
- Size: 19.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.0 CPython/3.10.12 Linux/5.15.167.4-microsoft-standard-WSL2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7adbf5a7d2702743b56049bfe38404b9ad9f79613fcd9b75160db0af8e9448a8
|
|
| MD5 |
3d4fe3841d9a836a809b02b5f6b87296
|
|
| BLAKE2b-256 |
9b847faf84fb27e9cc788b2e5dce4c836980cf400c02176be1cc9486faaee326
|