Skip to main content

MkDocs plugin to insert videos in documentation.

Project description

MkDocs IZSAM Video

This plugin is based on the Mikalai Lisitsa idea, please visit the page of the project at https://pypi.org/project/mkdocs-video/.

The plugin allows you to embed videos on the documentation pages using a simple Markdown syntax.

Unlike the Mikalai Lisitsa it embeds video not in an <iframe> but in a <video> and it is no possibile to define style in the config file, you can do separately in the CSS of your theme. For the moment YouTube or third parties videos embed are not allowed.

Installation

Install the package with pip:

$ pip install mkdocs-izsam-video

Enable the plugin in the mkdocs.yml file:

plugins:
    - mkdocs-izsam-video

See how to use MkDocs Plugins

Usage

To add a video to the final documentation page, you need to use the Markdown syntax for images with a specific name (hereinafter marker).

See how to use Markdown syntax

Example:

content folder structure

├── content
|   ├── ...
│   ├── video.md
│       └── videos
│           └── your-video.mp4
└── mkdocs.yml

video.md

Use relative paths for videos stored together with your content

# Video example

Lorem ipsum dolor sit amet

![type:video-tag](./videos/your-video.mp4)

Configuration

Marker

By default, the string type:video-tag is used as a marker in the Markdown syntax.

You can change this value by adding the following lines to your mkdocs.yml:

plugins:
  - mkdocs-izsam-video:
      mark: "your-marker"

Now you can use this marker in the Markdown syntax:

![your-marker](./videos/your-video.mp4)

License

The MIT License (MIT)

Copyright (c) 2021 Alessandro De Luca

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Change log

[1.0.1] - 2022-04-28

Read me changes

  • Typos and sentences correction

[1.0] - 2022-02-02

First release

  • modified base plugin mkdocs-video to use HTML5 video tag

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

mkdocs-izsam-video-1.0.1.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mkdocs_izsam_video-1.0.1-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

Details for the file mkdocs-izsam-video-1.0.1.tar.gz.

File metadata

  • Download URL: mkdocs-izsam-video-1.0.1.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.6.0 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.10

File hashes

Hashes for mkdocs-izsam-video-1.0.1.tar.gz
Algorithm Hash digest
SHA256 1b261b1d45d9c74b87877d6bf946a1258f40e6d5097e42f229ebff40323b18e5
MD5 822d0db40c59db3c5f1c52b1002ceec5
BLAKE2b-256 d001e552b587915443e4c5c6d28e230e505f73166dff00c0a33ee2a4903af0d9

See more details on using hashes here.

File details

Details for the file mkdocs_izsam_video-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: mkdocs_izsam_video-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 4.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.6.0 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.10

File hashes

Hashes for mkdocs_izsam_video-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7430b85be41fc335e46f19723b829488f40849f032e28cd58ed96c2700f7413c
MD5 897693c2614929c0f92c2143dfb1e985
BLAKE2b-256 26d88e1648dd30ed8200835902c44cf57493f7b0748d8b0fef8aa36faaa5e8c3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page