
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
mkdocs-image-gallery-plugin
Advanced tools
An MkDocs plugin to generate an image gallery from a folder of images
MKDocs plugin to autogenerate a gallery based on a folder of images
Add this plugin to your mkdocs.yml configuration as follows:
plugins:
- image-gallery:
image_folder: "./assets/images/gallery" # Folder in the docs directory containing images
separate_category_pages: false # Optional: Set to true to create separate pages for each category
youtube_links_file: "youtube-links.yaml" # Optional: Path (relative to docs/) for YouTube links
Add these short codes to any markdown page in your docs to use the image gallery plugin.
Display Preview Gallery
{{gallery_preview}}
Display Full Gallery
{{gallery_html}}
Display Youtube Gallery
{{youtube_gallery}}
Simple.
Render a responsive YouTube video gallery from a YAML file in your docs/
directory.
{{youtube_gallery}}
anywhere in your Markdown.docs/
(default: youtube-links.yaml
).docs/youtube-links.yaml
)- https://www.youtube.com/watch?v=dQw4w9WgXcQ
- https://www.youtube.com/watch?v=ArOS-e2d-cM
Rick Roll:
- https://www.youtube.com/watch?v=dQw4w9WgXcQ
IronMouse:
- https://www.youtube.com/watch?v=ArOS-e2d-cM
The plugin automatically injects the required CSS and JS and copies them into the built site:
assets/stylesheets/image-gallery.css
assets/javascripts/youtube-gallery.js
No extra configuration is needed beyond the plugin config below.
watch
, youtu.be
, embed
, shorts
). Invalid links are skipped.Path (relative to docs_dir
) to the YAML file containing YouTube links. Supports either a flat list of links or a mapping of category names to lists of links.
youtube-links.yaml
Dont forget to add the page that contains your {{gallery_html}}
short code to the main nav config in mkdocs.yml
to have a link in the main navigation
Example:
nav:
- Gallery: gallery.md
The path to the folder containing your gallery images, relative to the docs directory. Each subfolder in this directory will be treated as a separate category.
When set to true
, the plugin will create separate pages for each category instead of displaying all categories on a single page. This is useful for large galleries with many images.
false
Path to your youtube links youtube-links.yaml
.
This plugin requires glightbox
plugin to display clicked images in a lightbox.
pip install mkdocs-glightbox
When using mkdocs serve
with separate_category_pages: true
, the plugin avoids regenerating category pages if they already exist. This prevents endless rebuild loops that could occur when the file watcher detects newly generated files.
Offline plugin causes .html in the gallery urls. This plugin supports both server urls and offline urls.
FAQs
An MkDocs plugin to generate an image gallery from a folder of images
We found that mkdocs-image-gallery-plugin demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.