Skip to main content

mkdocs-plugin-inline-svg

Reads SVG images referenced from Markdown and replaces them with the SVG file content

Since the SVG is included as part of the plain-text input to MkDocs, this means the default MkDocs search supports searching SVG text, and hyperlinks are also fully functional.

Usage

Install the package with pip:

pip install mkdocs-plugin-inline-svg

Enable the plugin in your mkdocs.yml:

plugins:
    - search
    - inline-svg

Note: If you have no plugins entry in your config file yet, you'll likely also want to add the search plugin. MkDocs enables it by default if there is no plugins entry set, but now you have to enable it explicitly.

More information about plugins in the MkDocs documentation

Options

You can filter with the extension to select files to be inline. Useful to mix regular and inlined svgs.:

plugins:
    - search
    - inline-svg:
        extension: ".inline.svg"

Build

pip install build
python -m build

Credits

Forked from Craig Roberts / mkdocs-plugin-inline-svg

I am not really a Python programmer, so I have borrowed plugin setup / utils / inspiration from:

Metadata

Release files for mkdocs-plugin-inline-ext-svg 0.1.2

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

Source distribution (sdist)

Source distribution for mkdocs-plugin-inline-ext-svg 0.1.2
File Size Uploaded
mkdocs_plugin_inline_ext_svg-0.1.2.tar.gz 3.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for mkdocs-plugin-inline-ext-svg 0.1.2
File Interpreter ABI Platform
mkdocs_plugin_inline_ext_svg-0.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 7.4 kB

Release files / mkdocs_plugin_inline_ext_svg-0.1.2.tar.gz

Download URL mkdocs_plugin_inline_ext_svg-0.1.2.tar.gz
Size 3.4 kB
Tags Source
SHA-256 checksum
How to use checksums
711202927735827214a8f57044b3e095b25be8296180b4e323f9e6c12dcea8cc
BLAKE2b-256 checksum
How to use checksums
24f9bb7c0f1c37c8978f411a9ac5ab2d073290d1142547a497589427fad01fa6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.7

Release files / mkdocs_plugin_inline_ext_svg-0.1.2-py3-none-any.whl

Download URL mkdocs_plugin_inline_ext_svg-0.1.2-py3-none-any.whl
Size 4.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
22edba52650ee617681d921074a2f3999dc8ef9e1cecd6aeb4e7a68cdc7e191d
BLAKE2b-256 checksum
How to use checksums
0a76b02d675142ae806afd56beb07131637135b2ab70ec537bb4f677d4237315
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.7

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files

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