You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I found that when mkslides is running, not all static assets are copied to the built runtime environment, such as images or other files in the docs directory, and static assets configured in the mkslides.yml are not processed, so that there are files missing at runtime. For example:
I don't know if this is the original design. If don't copy all of them, you will need to handle the association judgment in many places separately, but there is a great risk of missing some files, such as the example above, and all tags with src attributes in HTML, which will be very troublesome to judge.
Here's how I'm handling it now, when running via static HTML slideshow files, I will manually configure any static asset files that aren't copied to the runtime environment to a relative directory outside of docs. But when running via livereload, how do I configure these offline static assets?
For the processing rules of static assets, I suggest that it is possible to design all files under docs (except .md files) to be copied to the built directory at one time? In this way, there is no need to judge one by one, whether running via static files or livereload, there will be no problem.
all files under docs (except .md files) to be copied to the built directory at one time?
I've tested it and mkdocs seems to do something similar. However I must also check for collisions between generated and copied files. Probably something like this:
Copy necessary reveal.js and highlight.js files
Copy everything except .md files: check for unwanted overwrites
Process all .md files, check for unwanted overwrites for the generated html files and check that they have what they need
Yes, mkdocs is to copy all files under docs (except .md files) to the built directory.
If there are files with the same name or conflicting files in the docs directory and the built directory, mkdocs' rule is that the conflicting files are not copied, the generated html files have a higher priority.
Hello, I found that when mkslides is running, not all static assets are copied to the built runtime environment, such as images or other files in the docs directory, and static assets configured in the
mkslides.yml
are not processed, so that there are files missing at runtime. For example:I don't know if this is the original design. If don't copy all of them, you will need to handle the association judgment in many places separately, but there is a great risk of missing some files, such as the example above, and all tags with
src
attributes in HTML, which will be very troublesome to judge.Here's how I'm handling it now, when running via static HTML slideshow files, I will manually configure any static asset files that aren't copied to the runtime environment to a relative directory outside of
docs
. But when running via livereload, how do I configure these offline static assets?For the processing rules of static assets, I suggest that it is possible to design all files under
docs
(except.md
files) to be copied to the built directory at one time? In this way, there is no need to judge one by one, whether running via static files or livereload, there will be no problem.This is a minimal reproduction:
test-mkslides.zip
The text was updated successfully, but these errors were encountered: