Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

77 lines
3.3KB

  1. % Generated by roxygen2: do not edit by hand
  2. % Please edit documentation in R/bulma_document.R
  3. \name{bulma_document}
  4. \alias{bulma_document}
  5. \title{Bulma Document Renderer}
  6. \usage{
  7. bulma_document(..., css = NULL, fig_width = 10, fig_height = 7,
  8. fig_retina = 2, keep_md = FALSE, dev = "png", toc = FALSE,
  9. toc_depth = 3, pandoc_args = NULL, extra_dependencies = NULL)
  10. }
  11. \arguments{
  12. \item{...}{Arguments passed on to \code{rmarkdown::html_document_base}
  13. \describe{
  14. \item{smart}{Produce typographically correct output, converting straight
  15. quotes to curly quotes, --- to em-dashes, -- to en-dashes, and ... to
  16. ellipses.}
  17. \item{theme}{Visual theme ("default", "cerulean", "journal", "flatly",
  18. "darkly", "readable", "spacelab", "united", "cosmo", "lumen", "paper",
  19. "sandstone", "simplex", or "yeti"). Pass \code{NULL} for no theme (in this
  20. case you can use the \code{css} parameter to add your own styles).}
  21. \item{self_contained}{Produce a standalone HTML file with no external
  22. dependencies, using data: URIs to incorporate the contents of linked
  23. scripts, stylesheets, images, and videos. Note that even for self contained
  24. documents MathJax is still loaded externally (this is necessary because of
  25. its size).}
  26. \item{lib_dir}{Directory to copy dependent HTML libraries (e.g. jquery,
  27. bootstrap, etc.) into. By default this will be the name of the document with
  28. \code{_files} appended to it.}
  29. \item{mathjax}{Include mathjax. The "default" option uses an https URL from a
  30. MathJax CDN. The "local" option uses a local version of MathJax (which is
  31. copied into the output directory). You can pass an alternate URL or pass
  32. \code{NULL} to exclude MathJax entirely.}
  33. \item{pandoc_args}{Additional command line options to pass to pandoc}
  34. \item{template}{Pandoc template to use for rendering. Pass "default" to use
  35. the rmarkdown package default template; pass \code{NULL} to use pandoc's
  36. built-in template; pass a path to use a custom template that you've created.
  37. Note that if you don't use the "default" template then some features of
  38. \code{html_document} won't be available (see the Templates section below for
  39. more details).}
  40. \item{dependency_resolver}{A dependency resolver}
  41. \item{copy_resources}{Copy resources}
  42. \item{extra_dependencies}{Extra dependencies}
  43. \item{bootstrap_compatible}{Bootstrap compatible}
  44. }}
  45. }
  46. \description{
  47. Bulma Document Renderer
  48. }
  49. \section{YAML options}{
  50. You can pass additional options to the underlying template via the \code{bulma}
  51. YAML item. The following options can be specified there.
  52. \itemize{
  53. \item{\code{hero}: Classes applied to the hero containing the title.}
  54. \item{\code{hero_body}: Classes applied to the hero body container.}
  55. \item{\code{hero_button}: Classes applied to the \code{header_links} buttons}
  56. \item{\code{hero_links}: Links that will be displayed under title as buttons.
  57. Formatted as a list, each element having entries for \code{name}, \code{url},
  58. and \code{icon}. Icons use \href{https://fontawesome.com/icons}{Font Awesome};
  59. see \code{\link[=fa_icon]{fa_icon()}} for help constructing the Font Awesome class. The
  60. full Font Awesome class name is required.}
  61. }\preformatted{---
  62. bulma:
  63. hero: ["info"]
  64. hero_button: ["is-secondary", "is-outlined"]
  65. hero_links:
  66. - name: Github
  67. url: https://github.com/
  68. icon: '`r bulma::fa_icon("github")`'
  69. - name: Twitter
  70. url: https://twitter.com
  71. icon: "fab fa-twitter"
  72. ---
  73. }
  74. }