MkDocs plugin for embedding H5P files in Markdown using h5p-standalone.
Project description
mkdocs-h5p
Embed H5P packages in MkDocs Markdown using tunapanda/h5p-standalone.
The plugin extracts each referenced .h5p file during mkdocs build and
injects the standalone H5P player into the generated page.
Installation
pip install -e .
Enable the plugin in mkdocs.yml:
plugins:
- search
- h5p
Markdown Usage
Use the image-like syntax with h5p as the alt text:

You can also use the explicit shortcode form:
{{ h5p("activities/example.h5p") }}
Paths are resolved relative to the Markdown file first, then relative to
docs_dir.
Configuration
plugins:
- h5p:
h5p_dir: assets/h5p
player_url: https://cdn.jsdelivr.net/npm/h5p-standalone@3.8.0/dist
frame: true
full_screen: true
export: false
embed: false
copyright: false
player_options:
icon: true
player_url points to the dist directory for h5p-standalone. By default it
uses jsDelivr with version 3.8.0 pinned. For offline sites, download the
h5p-standalone dist files into your MkDocs docs folder and set player_url
to that local URL.
Notes
Some H5P exports do not include every required library. The standalone player
can only run content when the .h5p package includes the libraries it needs.
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
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_h5p-0.1.0.tar.gz.
File metadata
- Download URL: mkdocs_h5p-0.1.0.tar.gz
- Upload date:
- Size: 5.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c524576ab91b0825042e55bb073dc34ba2fd2f05c76ec55d02952f2bb2dd2b57
|
|
| MD5 |
5e40f54e1dcefc70bfd62e4291263094
|
|
| BLAKE2b-256 |
f94d469bffb1348aedf229fc057e98de77aba806e7476933f55af443a7148c7e
|
File details
Details for the file mkdocs_h5p-0.1.0-py3-none-any.whl.
File metadata
- Download URL: mkdocs_h5p-0.1.0-py3-none-any.whl
- Upload date:
- Size: 5.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1a01c0c6920e71f94568ccf83215003d03c4544d33cadcc5a0c1764f344ade79
|
|
| MD5 |
3959d60b2d7f227b8f402fa1d1116d70
|
|
| BLAKE2b-256 |
84690d1453e2758fac172d9826e358474d7763969b38dc0cc6bf8007b16f9656
|