Skip to main content

MkDocs plugin for inlining svg-href img tags

Project description

NOTE: this project is still WIP!

mkdocs-inline-svg-plugin

PyPI - Version PyPI - Python Version


Table of Contents

Installation

pip install mkdocs-inline-svg-plugin

License

mkdocs-inline-svg-plugin is distributed under the terms of the MIT license.

Usage

If you want to inline SVGs, that were put in img tags by the kroki plugin:

mkdocs.yml:

plugins:
  - kroki:
      FencePrefix: ''
      HttpMethod: 'POST'
      DownloadImages: true
  - inline-svg:
      alt_name: Kroki

Configuration

Config value What for
alt_name default: *, that does not check the img alt property
include_assets default: False, looks for url(..), downloads the contents to asset_dir and replaces the url
asset_dir default: assets/
patch_style default: False, this feature is EXPERIMENTAL and not yet finished, needs an additional CSS

Test

Serve documentation:

hatch run docs:serve

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_inline_svg_plugin-0.1.5.tar.gz (10.2 kB view details)

Uploaded Source

Built Distribution

mkdocs_inline_svg_plugin-0.1.5-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

File details

Details for the file mkdocs_inline_svg_plugin-0.1.5.tar.gz.

File metadata

File hashes

Hashes for mkdocs_inline_svg_plugin-0.1.5.tar.gz
Algorithm Hash digest
SHA256 1e04315cdff0d7e112e4329a0fa084044ae0eac0d3f8ba940defabd3fe4fbcff
MD5 4d67dedfda1cf6849e8ea90ff92181cc
BLAKE2b-256 157fc11f7e9232d9c756f510be4e73aa78dde63eefee911d77d4d155a0380e0c

See more details on using hashes here.

File details

Details for the file mkdocs_inline_svg_plugin-0.1.5-py3-none-any.whl.

File metadata

File hashes

Hashes for mkdocs_inline_svg_plugin-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 6688c178e8015bbcaadac5d83b942202d7922df83989799c2cbcd73bebbf8a2f
MD5 039c7031993ee23587381bf6ecc190aa
BLAKE2b-256 75afaf5752463c3c589860c5a019d1640bd4c2a463673f6347ba3ba420de3edf

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page