Skip to main content

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

Project description

zensical-macros-utils

zensical-macros-utils is a zensical-based project that provides macros to extend cards, code blocks, etc, in Zensical 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.1.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.1-py3-none-any.whl (19.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: zensical_macros_utils-0.1.1.tar.gz
  • Upload date:
  • Size: 2.5 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.17 {"installer":{"name":"uv","version":"0.11.17","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.1.tar.gz
Algorithm Hash digest
SHA256 356818699a59b09136de1253f58a7d9486f99bd6bba2e9639a6b9fc993bbbeac
MD5 195510f3ec374e79928b78e4b8d5410d
BLAKE2b-256 fbf27a032a00d9921090fcda830f2a5e02af323ff8f4bc6de9dd1c7e80e399ae

See more details on using hashes here.

File details

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

File metadata

  • Download URL: zensical_macros_utils-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 19.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.17 {"installer":{"name":"uv","version":"0.11.17","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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5af01f76dccfd4768a55ba67bba10382ddd938ca24937ab9d4ed8f72aa9da942
MD5 8dd22f8600a277b14fd2c24a5c5eed07
BLAKE2b-256 7db47042d2387a977d11ffbb40a055035a8bf93ec1852c2d944c813ce0a5741d

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