% Generated by roxygen2: do not edit by hand % Please edit documentation in R/bulma_document.R \name{bulma_document} \alias{bulma_document} \title{Bulma Document Renderer} \usage{ bulma_document(..., css = NULL, fig_width = 10, fig_height = 7, fig_retina = 2, keep_md = FALSE, dev = "png", toc = FALSE, toc_depth = 3, mathjax = "default", pandoc_args = NULL, extra_dependencies = NULL) } \arguments{ \item{...}{Ignored} \item{mathjax}{Include mathjax. The "default" option uses an https URL from a MathJax CDN. The "local" option uses a local version of MathJax (which is copied into the output directory). You can pass an alternate URL or pass \code{NULL} to exclude MathJax entirely.} \item{pandoc_args}{Additional command line options to pass to pandoc} \item{extra_dependencies}{Extra dependencies} \item{...}{Arguments passed on to \code{rmarkdown::html_document_base} \describe{ \item{smart}{Produce typographically correct output, converting straight quotes to curly quotes, --- to em-dashes, -- to en-dashes, and ... to ellipses.} \item{theme}{Visual theme ("default", "cerulean", "journal", "flatly", "darkly", "readable", "spacelab", "united", "cosmo", "lumen", "paper", "sandstone", "simplex", or "yeti"). Pass \code{NULL} for no theme (in this case you can use the \code{css} parameter to add your own styles).} \item{self_contained}{Produce a standalone HTML file with no external dependencies, using data: URIs to incorporate the contents of linked scripts, stylesheets, images, and videos. Note that even for self contained documents MathJax is still loaded externally (this is necessary because of its size).} \item{lib_dir}{Directory to copy dependent HTML libraries (e.g. jquery, bootstrap, etc.) into. By default this will be the name of the document with \code{_files} appended to it.} \item{mathjax}{Include mathjax. The "default" option uses an https URL from a MathJax CDN. The "local" option uses a local version of MathJax (which is copied into the output directory). You can pass an alternate URL or pass \code{NULL} to exclude MathJax entirely.} \item{pandoc_args}{Additional command line options to pass to pandoc} \item{template}{Pandoc template to use for rendering. Pass "default" to use the rmarkdown package default template; pass \code{NULL} to use pandoc's built-in template; pass a path to use a custom template that you've created. Note that if you don't use the "default" template then some features of \code{html_document} won't be available (see the Templates section below for more details).} \item{dependency_resolver}{A dependency resolver} \item{copy_resources}{Copy resources} \item{extra_dependencies}{Extra dependencies} \item{bootstrap_compatible}{Bootstrap compatible} }} } \description{ Bulma Document Renderer } \section{YAML options}{ You can pass additional options to the underlying template via the \code{bulma} YAML item. The following options can be specified there. \itemize{ \item{\code{hero}: Classes applied to the hero containing the title.} \item{\code{hero_body}: Classes applied to the hero body container.} \item{\code{hero_button}: Classes applied to the \code{header_links} buttons} \item{\code{hero_links}: Links that will be displayed under title as buttons. Formatted as a list, each element having entries for \code{name}, \code{url}, and \code{icon}. Icons use \href{https://fontawesome.com/icons}{Font Awesome}; see \code{\link[=fa_icon]{fa_icon()}} for help constructing the Font Awesome class. The full Font Awesome class name is required.} }\preformatted{--- bulma: hero: ["info"] hero_button: ["is-secondary", "is-outlined"] hero_links: - name: Github url: https://github.com/ icon: '`r bulma::fa_icon("github")`' - name: Twitter url: https://twitter.com icon: "fab fa-twitter" --- } }