Replies: 2 comments 3 replies
This comment has been hidden.
This comment has been hidden.
-
Done: https://yihui.org/litedown/#sec:offline output:
html:
options:
offline: true However, it may not be worth using in your case. I did this mainly for people in restricted environments where they can't access external web resources for security reasons. I'm not sure what your motivation of embedding resources is, but personally I prefer using CDN resources so the HTML file is smaller in size and the local directory is cleaner. Note that if your document involves LaTeX math, downloading MathJax or KaTeX means also downloading all their fonts (each of MathJax and KaTeX has about 20
css: ["@default@1.14.3"]
css: ["@default"]
|
Beta Was this translation helpful? Give feedback.
-
Would you consider a function that assist users in downloading the assets used by a litedown document, e.g. something like
download_assets()
.Motivation:
I've a preference for embedding the css/js which generally works great but did bite me on CRAN recently (no internet / cdn access) so I have had to disable the embedding for my vignettes. The longer term solution for me will be to download the assets in to the vignette folder prior to submission. Asking here first before cooking something up for myself.
Beta Was this translation helpful? Give feedback.
All reactions