Skip to main content

mkdocs-allscreenshots-og-screenshot

MkDocs plugin that automatically generates dynamic OpenGraph images for every page using Allscreenshots.

Each page gets a unique og:image meta tag pointing to a live screenshot of that page.

Installation

pip install mkdocs-allscreenshots-og-screenshot

Or install locally:

pip install -e .

Usage

Add the plugin to your mkdocs.yml:

site_url: https://yourdomain.com

plugins:
  - search
  - allscreenshots-og-screenshot

This will add the following meta tag to each page:

<meta property="og:image" content="https://og.allscreenshots.com?url=https%3A%2F%2Fyourdomain.com%2Fyour-page%2F" />

Configuration

plugins:
  - allscreenshots-og-screenshot:
      screenshot_base_url: https://og.allscreenshots.com  # default
      site_url: https://yourdomain.com  # optional, falls back to site_url in mkdocs.yml
Option Default Description
screenshot_base_url https://og.allscreenshots.com Base URL for the screenshot API
site_url - Override the site URL (uses site_url from mkdocs.yml by default)

License

MIT

Metadata

Release files for mkdocs-allscreenshots-og-screenshot 0.1.1

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-allscreenshots-og-screenshot 0.1.1
File Size Uploaded
mkdocs_allscreenshots_og_screenshot-0.1.1.tar.gz 2.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for mkdocs-allscreenshots-og-screenshot 0.1.1
File Interpreter ABI Platform
mkdocs_allscreenshots_og_screenshot-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 5.4 kB

Release files / mkdocs_allscreenshots_og_screenshot-0.1.1.tar.gz

Download URL mkdocs_allscreenshots_og_screenshot-0.1.1.tar.gz
Size 2.3 kB
Tags Source
SHA-256 checksum
How to use checksums
b38000ae697eab07dcc90bfa1f6f3d8c957cd8075315fbd51e8729aaab328d81
BLAKE2b-256 checksum
How to use checksums
753ff4332040423e091bbafcc1e7c0a8cbde20e1c862b6d2ae751006bf603a7b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.11

Release files / mkdocs_allscreenshots_og_screenshot-0.1.1-py3-none-any.whl

Download URL mkdocs_allscreenshots_og_screenshot-0.1.1-py3-none-any.whl
Size 3.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
57cf53e8a57f9f2a920297a3ce785ad0ea8ef27d8937c9d954b03112b6260903
BLAKE2b-256 checksum
How to use checksums
c7abbac753ae72cc7151d2050c981408e79452c4793f18da5b727d8f9e3341f3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.11

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1.0

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