Skip to main content

zensical-macros-utils

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

Add the extension to your config file. If both zensical.toml and mkdocs.yml exist, zensical.toml takes priority.

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

mkdocs.yml / mkdocs.yaml

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

theme:
  name: material
  variant: classic  # omit or set "modern" to use zensical's new design

plugins:
  - search
  - macros:
      modules:
        - zensical_macros_utils

extra:
  debug:
    link_card: false
    gist_codeblock: false
    x_twitter_card: false

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.

Metadata

Release files for zensical-macros-utils 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for zensical-macros-utils 0.2.0
File Size Uploaded Provenance Actions
zensical_macros_utils-0.2.0.tar.gz 476.7 kB Without provenance Details for zensical_macros_utils-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for zensical-macros-utils 0.2.0
File Interpreter ABI Platform Actions
zensical_macros_utils-0.2.0-py3-none-any.whl Python 3 none any Details for zensical_macros_utils-0.2.0-py3-none-any.whl

Total release size: 499.4 kB

Release files / zensical_macros_utils-0.2.0.tar.gz

Download URL zensical_macros_utils-0.2.0.tar.gz
Size 476.7 kB
Tags Source
SHA-256 checksum
How to use checksums
366112b33326de4c6a5c2d953fb712d94dcbd854fec7c783b001ed55bf7929f3
BLAKE2b-256 checksum
How to use checksums
d383e8995999d3e7c7a0e578689cf969470cc410ac86526bad4f7044cce3c5bb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.6 {"installer":{"name":"uv","version":"0.13.6","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 / zensical_macros_utils-0.2.0-py3-none-any.whl

Download URL zensical_macros_utils-0.2.0-py3-none-any.whl
Size 22.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e792eae8e5cd16a85532d63f7105c64811ee66822d54d50e97241e6a37cffa65
BLAKE2b-256 checksum
How to use checksums
ef3d8a35962c40364e26fb25d3c7ca22b5ba00840ad8f0b5e262db0f3651b347
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.6 {"installer":{"name":"uv","version":"0.13.6","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}

Security for zensical-macros-utils 0.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page