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

108 lines
4.5KB

  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(
  8. ...,
  9. css = NULL,
  10. fig_width = 10,
  11. fig_height = 7,
  12. fig_retina = 2,
  13. keep_md = FALSE,
  14. dev = "png",
  15. toc = FALSE,
  16. toc_depth = 3,
  17. mathjax = "default",
  18. pandoc_args = NULL,
  19. extra_dependencies = NULL,
  20. self_contained = TRUE
  21. )
  22. }
  23. \arguments{
  24. \item{...}{
  25. Arguments passed on to \code{\link[rmarkdown:html_document_base]{rmarkdown::html_document_base}}
  26. \describe{
  27. \item{\code{smart}}{Produce typographically correct output, converting straight
  28. quotes to curly quotes, \code{---} to em-dashes, \code{--} to en-dashes, and
  29. \code{...} to ellipses.}
  30. \item{\code{theme}}{Visual theme ("default", "cerulean", "cosmo", "cyborg", "darkly",
  31. "flatly", "journal", "lumen", "readable", "sandstone", "simplex", "slate",
  32. "spacelab", "superhero", "united", or "yeti"). Pass \code{NULL} for no
  33. theme (in this case you can use the \code{css} parameter to add your own styles).
  34. If Bootstrap 4+ is used (see \code{bootstrap_version} argument),
  35. a handful of other themes are available ("lux", "minty", "pulse",
  36. "sketchy", and "solar"). Moreover, with Bootstrap 4+, custom
  37. \href{https://getbootstrap.com/docs/4.0/getting-started/theming/}{Bootstrap
  38. themes} are supported via the \code{bs_theme_add_variables()} and
  39. \code{bs_theme_add()} functions from the bootstraplib package
  40. (use these functions from within the document).}
  41. \item{\code{lib_dir}}{Directory to copy dependent HTML libraries (e.g. jquery,
  42. bootstrap, etc.) into. By default this will be the name of the document with
  43. \code{_files} appended to it.}
  44. \item{\code{template}}{Pandoc template to use for rendering. Pass "default" to use
  45. the rmarkdown package default template; pass \code{NULL} to use pandoc's
  46. built-in template; pass a path to use a custom template that you've created.
  47. Note that if you don't use the "default" template then some features of
  48. \code{html_document} won't be available (see the Templates section below for
  49. more details).}
  50. \item{\code{dependency_resolver}}{A dependency resolver}
  51. \item{\code{copy_resources}}{Copy resources}
  52. \item{\code{bootstrap_compatible}}{Bootstrap compatible}
  53. \item{\code{bootstrap_version}}{version of Bootstrap to use (relevant if \code{theme}
  54. is not \code{NULL}). Currently three options are supported: Bootstrap version
  55. 3.x (\code{3}), Bootstrap version 4.x (\code{4}), and Bootstrap version 4.x
  56. with additional JS/CSS to support BS3 style nav, navbar, and other component
  57. styling (\code{"4+3"}). Use this version if you want to upgrade to Bootstrap 4
  58. while maintaining the functionality of a document already written with
  59. Bootstrap 3 in mind.}
  60. }}
  61. \item{mathjax}{Include mathjax. The "default" option uses an https URL from a
  62. MathJax CDN. The "local" option uses a local version of MathJax (which is
  63. copied into the output directory). You can pass an alternate URL or pass
  64. \code{NULL} to exclude MathJax entirely.}
  65. \item{pandoc_args}{Additional command line options to pass to pandoc}
  66. \item{extra_dependencies}{Extra dependencies}
  67. \item{self_contained}{Produce a standalone HTML file with no external
  68. dependencies, using data: URIs to incorporate the contents of linked
  69. scripts, stylesheets, images, and videos. Note that even for self contained
  70. documents MathJax is still loaded externally (this is necessary because of
  71. its size).}
  72. }
  73. \description{
  74. Bulma Document Renderer
  75. }
  76. \section{YAML options}{
  77. You can pass additional options to the underlying template via the \code{bulma}
  78. YAML item. The following options can be specified there.
  79. \itemize{
  80. \item{\code{hero}: Classes applied to the hero containing the title.}
  81. \item{\code{hero_body}: Classes applied to the hero body container.}
  82. \item{\code{hero_button}: Classes applied to the \code{header_links} buttons}
  83. \item{\code{hero_links}: Links that will be displayed under title as buttons.
  84. Formatted as a list, each element having entries for \code{name}, \code{url},
  85. and \code{icon}. Icons use \href{https://fontawesome.com/icons}{Font Awesome};
  86. see \code{\link[=fa_icon]{fa_icon()}} for help constructing the Font Awesome class. The
  87. full Font Awesome class name is required.}
  88. }\preformatted{---
  89. bulma:
  90. hero: ["info"]
  91. hero_button: ["is-secondary", "is-outlined"]
  92. hero_links:
  93. - name: Github
  94. url: https://github.com/
  95. icon: '`r bulma::fa_icon("github")`'
  96. - name: Twitter
  97. url: https://twitter.com
  98. icon: "fab fa-twitter"
  99. ---
  100. }
  101. }