MkDocs plugin providing media galleries with shortcodes
Project description
MKDOCS Media Galleries
MkDocs plugin for that adds image and YouTube galleries with shortcodes.
Install
pip install mkdocs-media-gallery-plugin
Configure (mkdocs.yml)
site_name: Demo
plugins:
- search
- media-gallery:
images_path: images # relative to docs_dir
youtube_links_path: youtube-links.yaml # relative to docs_dir
generate_category_pages: true # auto-generate one page per category
theme:
name: material
Shortcodes in Markdown
{{ gallery_preview }}: Shows preview tiles for each category (folder under images_path){{ gallery_full category="cats" }}: Shows full gallery for the given category{{ youtube_gallery }}: Renders YouTube gallery from YAML (optionallycategory="...")
YouTube data (docs/youtube-links.yaml)
# Either flat list
- https://www.youtube.com/shorts/HgLzykU5wc8
- HgLzykU5wc8
# Or categorized
# music:
# - https://www.youtube.com/shorts/HgLzykU5wc8
# talks:
# - HgLzykU5wc8
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mkdocs_media_gallery_plugin-1.0.0.dev35.tar.gz.
File metadata
- Download URL: mkdocs_media_gallery_plugin-1.0.0.dev35.tar.gz
- Upload date:
- Size: 10.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ef0e1ee81b7641ee58fc5e505dbf20952b7c61020c7f78c4f6adfb47ccd42653
|
|
| MD5 |
f15c9a78870250391ac246482b0cb15e
|
|
| BLAKE2b-256 |
e42a8604d48c599f835fb73159c53239302545c09e5c77a27affdba9728351df
|
File details
Details for the file mkdocs_media_gallery_plugin-1.0.0.dev35-py3-none-any.whl.
File metadata
- Download URL: mkdocs_media_gallery_plugin-1.0.0.dev35-py3-none-any.whl
- Upload date:
- Size: 12.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
79aeb87a96ffaa504def3561d78d20160cbdb723e8f14c5b5ef7697522f942be
|
|
| MD5 |
a0b6915b23ef00a071f21c3f68c9f3ad
|
|
| BLAKE2b-256 |
90acb1d5b27e5f8d889c9754edd064fbf11f67abd3cf1762992d605e1c6c7d9e
|