gadenbuie / cleanrmd

📄✨Clean Class-Less R Markdown HTML Documents
https://pkg.garrickadenbuie.com/cleanrmd
Other
145 stars 5 forks source link

Make theme picker work fully offline #5

Closed gadenbuie closed 4 years ago

gadenbuie commented 4 years ago

Use internal CSS files for the theme picker

gadenbuie commented 4 years ago

To make this work I need to move the theme picker js out of the pandoc template and into it's own file that's loaded via htmltools::htmlDependency() when is.null(theme). That way the JS and the CSS files are in the same directory and the JS can know where the file is hosted to find the CSS files.