Path to a video file from non_index.md¶
File structure¶
├── mkdocs_video
│ ├── images
│ │ └── video.mp4
│ ├── index.md
│ └── non_index.md
From non_index.md
, both paths to video.mp4 don’t works¶
<video src="images/video.mp4" controls title="Title" width="540"></video>
<video width="540" controls>
<source src="images/video.mp4" type="video/mp4">
</video>
From non_index.md
, extra ../
is required to the path¶
<video src="../images/video.mp4" controls title="Title" width="540"></video>
<video width="540" controls>
<source src="../images/video.mp4" type="video/mp4">
</video>
See Path to a video file from index.md
Last update:
January 23, 2024