Skip to content

Commit

Permalink
Minor documentation fixes and review.
Browse files Browse the repository at this point in the history
  • Loading branch information
riccardoporreca committed Mar 27, 2020
1 parent c0c966a commit b95c5d8
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 9 deletions.
2 changes: 2 additions & 0 deletions R/config.R
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#' Gallery site configuration
#'
#' Site configuration for the [gallery_site()] generator.
#'
#' @inheritParams rmarkdown::site_config
Expand Down
7 changes: 6 additions & 1 deletion R/gallery_site_generator.R
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
# rmarkdown/R/render_site.R ----
# https://github.com/rstudio/rmarkdown/blob/947b87259333b43f47b5f59e91dc9a1ea10d1c4d/R/render_site.R

#' Gallery website generator.
#' Gallery website generator
#'
#' Define a custom website generator to be used with [rmarkdown::render_site()].
#' This generates a simple R Markdown website including a gallery of pages with
#' embedded content, based on metadata in JSON format and custom site
#' configuration options.
#'
#' @inheritParams rmarkdown::default_site_generator
#'
Expand Down
5 changes: 2 additions & 3 deletions R/templates.R
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ gallery_div <- function(class, content) {
#' Create the content of a gallery page based on arbitrary page content and
#' gallery configuration.
#'
#'
#' @param ... Unnamed items defining the main content of the page.
#' @param gallery_config The gallery site configuration. Elements
#' `$include_before` and `$include_after` (if present) are included before and
Expand All @@ -43,12 +42,12 @@ gallery_div <- function(class, content) {
#' @examples
#' gallery_content(
#' htmltools::h2("Hello world"),
#' "Welcome to the callery content world",
#' "Welcome to the gallery content world",
#' gallery_config = list(
#' include_before = "before<hr/>",
#' include_after = htmltools::tagList(htmltools::hr(), "after")
#' ),
#' class = "hello-gallery-content"
#' class = "hello-gallery"
#' )
#'
#' @export
Expand Down
4 changes: 2 additions & 2 deletions man/gallery_content.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 5 additions & 2 deletions man/gallery_site.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/gallery_site_config.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit b95c5d8

Please sign in to comment.