render_site (how to hardcode images)
hi everyone: I use render_site to generate my html website but I want to include all dependencies in the html, can you tell me how to achieve it? waiting for your reply, have a good day!
The html_document() has self_contained option - maybe can try it.
Yes, this should work, though it will create a very heavy website. The advantage of a website is to have shared dependencies, with .html in a folder and a common libs path accessed by all .html.
If every HTML is self-contained, each file will be very heavy.
This is not common usage so I don't know if there is side effect, you could try it.
Out of curiosity, why do you want all deps to be included? If you do a website, you will have several html files anyway, so you'll need to deploy a folder. Why not deploy the lib folder with the other files ?