Skip to main content

mkdocs-macros-utils is a zensical-based project that provides macros to extend cards, code blocks, etc, in MkDocs documents.

Project description

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.

pages-build-deployment DOCS

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

  1. Add the extension to your mkdocs.yml

    markdown_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
    
  2. 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.

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_macros_utils-0.0.11.tar.gz (2.5 MB view details)

Uploaded Source

Built Distribution

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

mkdocs_macros_utils-0.0.11-py3-none-any.whl (20.0 kB view details)

Uploaded Python 3

File details

Details for the file mkdocs_macros_utils-0.0.11.tar.gz.

File metadata

  • Download URL: mkdocs_macros_utils-0.0.11.tar.gz
  • Upload date:
  • Size: 2.5 MB
  • Tags: Source
  • Uploaded using 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}

File hashes

Hashes for mkdocs_macros_utils-0.0.11.tar.gz
Algorithm Hash digest
SHA256 212f995bf57a601ca79d404feea555b0d76bad083ab083f92eb51b0595009426
MD5 1b36e0013dda37528ad7f323a9b1b44a
BLAKE2b-256 9d4c4890a9930c253f5478875e3bb1878ea5520ff8a05a5580e78117a26bf150

See more details on using hashes here.

File details

Details for the file mkdocs_macros_utils-0.0.11-py3-none-any.whl.

File metadata

  • Download URL: mkdocs_macros_utils-0.0.11-py3-none-any.whl
  • Upload date:
  • Size: 20.0 kB
  • Tags: Python 3
  • Uploaded using 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}

File hashes

Hashes for mkdocs_macros_utils-0.0.11-py3-none-any.whl
Algorithm Hash digest
SHA256 45c629a4165819d557352d21eba33397da45cbd68ae3892431d8278508f74a15
MD5 5127bba79465870715bf476b15271599
BLAKE2b-256 ab63b3a611685e7d3b705977afd53726575db30c2837477ed18d9ba9230acc58

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