mprivat / mkdocs-snippet-plugin

An mkdocs plugin that injects snippets from a file in a git repository
MIT License
12 stars 3 forks source link

Images are not part of site folder #8

Open fjp opened 2 years ago

fjp commented 2 years ago

Thanks for the plugin, including markdown files with text only works great.

So far I wasn't able to display images correctly. The images are copied to a remote_repo/_gen/path/to/images/ folder inside the mkdocs docs folder but these images don't seem to be included in the site folder after running mkdocs build or mkdocs serve. I also get the following warning:

WARNING - Documentation file 'remote-repo.md' contains a link to 'gen_/path/to/images/image.png' which is not found in the documentation files.

Is there anything else I need to configure? I am using the following versions

mkdocs (1.2.3)
mkdocs-material (8.1.11)
mkdocs-material-extensions (1.0.3)
mkdocs-snippet-plugin (1.0.2)

Is it also possible to use mkdocs build without having to delete the remote_repo/_gen folder first? If I don't delete it, I get:

ERROR - Error building page 'remote-repo.md': [Errno 21] Is a directory: '/home/fjp/git/mkdocs-documentation/site/remote-repo.html'