Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

89 lines
3.7KB

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