Skip to main content

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

Project description

zensical-macros-utils

zensical-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 zensical-macros-utils

# For pip
pip install zensical-macros-utils

# For uv
uv add zensical-macros-utils

Config settings

  1. Add the extension to your zensical.toml

    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",
    ]
    
    [project.plugins.macros]
    modules = ["zensical_macros_utils"]
    
    [project.extra.debug]
    link_card = false
    gist_codeblock = false
    x_twitter_card = false
    
  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

zensical_macros_utils-0.1.0.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.

zensical_macros_utils-0.1.0-py3-none-any.whl (19.8 kB view details)

Uploaded Python 3

File details

Details for the file zensical_macros_utils-0.1.0.tar.gz.

File metadata

  • Download URL: zensical_macros_utils-0.1.0.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 zensical_macros_utils-0.1.0.tar.gz
Algorithm Hash digest
SHA256 bbf637126197ad201aa9d3b45979070f936a639dc87a01823ddeb6283c1e52d8
MD5 cf08d50255f9d5577ff2cf4a42e3354b
BLAKE2b-256 9438f052869bb2bf54e210f335571ab87ea1f058898496b8b9b26a01386f63f0

See more details on using hashes here.

File details

Details for the file zensical_macros_utils-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: zensical_macros_utils-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 19.8 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 zensical_macros_utils-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 32fe0b15ce1b944e19f6992c4c277c04f999455749592831f30d82b32b8fe021
MD5 f4ffdc160fafb2c627dc17be683c6d14
BLAKE2b-256 269b8487f974b0a39f08040f7cdaa59e256d3eabf800326143a53e608432c7a8

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