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.4.tar.gz (10.1 kB view hashes)

Uploaded Source

Built Distribution

mkdocs_inline_svg_plugin-0.1.4-py3-none-any.whl (6.8 kB view hashes)

Uploaded Python 3

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