| ^bulmaRmd\.Rproj$ | |||||
| ^bulma\.Rproj$ | |||||
| ^\.Rproj\.user$ | ^\.Rproj\.user$ |
| Package: bulmaRmd | |||||
| Package: bulma | |||||
| Title: What the Package Does (One Line, Title Case) | Title: What the Package Does (One Line, Title Case) | ||||
| Version: 0.0.0.9000 | Version: 0.0.0.9000 | ||||
| Authors@R: | Authors@R: |
| #' @export | #' @export | ||||
| bulma_document <- function(..., css = NULL, pandoc_args = NULL) { | bulma_document <- function(..., css = NULL, pandoc_args = NULL) { | ||||
| css_files <- c( | css_files <- c( | ||||
| "--css", system.file("bulma", "bulma.0.7.2.min.css", package="bulmaRmd")) | |||||
| "--css", system.file("bulma", "bulma.0.7.2.min.css", package="bulma")) | |||||
| if (!is.null(css)) { | if (!is.null(css)) { | ||||
| for (file in css) { | for (file in css) { | ||||
| css_files, | css_files, | ||||
| pandoc_args, | pandoc_args, | ||||
| "--template", | "--template", | ||||
| system.file("bulma", "bulma.html", package="bulmaRmd") | |||||
| system.file("bulma", "bulma.html", package="bulma") | |||||
| ), | ), | ||||
| ... | ... | ||||
| ) | ) |
| url: https://gerkelab.com | url: https://gerkelab.com | ||||
| bulma: | bulma: | ||||
| hero: ["info", "bold"] | hero: ["info", "bold"] | ||||
| output: bulmaRmd::bulma_document | |||||
| output: bulma::bulma_document | |||||
| --- | --- | ||||
| ```{r setup, include=FALSE} | ```{r setup, include=FALSE} |
| # bulma: | # bulma: | ||||
| # hero: ["dark", "bold"] | # hero: ["dark", "bold"] | ||||
| output: | output: | ||||
| bulmaRmd::bulma_document: default | |||||
| bulma::bulma_document: default | |||||
| # css: custom.css | # css: custom.css | ||||
| html_document_base: | html_document_base: | ||||
| pandoc_args: ["--template", "/Users/4468739/work/bulmaRmd/inst/bulma/bulma-min.html" ] | pandoc_args: ["--template", "/Users/4468739/work/bulmaRmd/inst/bulma/bulma-min.html" ] |