- Continuous Integration maintenance, based on simplified GitHub Actions workflows with special handling for macOS (#31).
- Continuous Integration maintenance, based on GitHub Actions only, now including code coverage and
pkgdown
, formerly done via Travis CI (#28).
- A function
site_path()
, constructing paths relative to the site source directory, is now available when evaluating{{...}}
expressions based on page-specific metadata and at rendering time (#25).
- The provided templates now support
title
field values that would require quoting or escaping (#23).
include_before
andinclude_after
in thegallery
site configuration now define the path to a file with the included content (#14). The old inline content definition is still supported but triggers a deprecation warning.- A new field
order_by
in thegallery
site configuration allows specifying a set of fields the metadata should be ordered by (#15). - A new metadata field
page_name
is included for each page, containing the name of the corresponding element in the metadata list eventually used for the resulting HTML page (#15). - Icons for the gallery navigation bar menu are now supported in the metadata, and specified as a new field
menu_icon
or by defining themenu_entry
field with two componentstext
andicon
(#16).
- The
gallery_site()
generator now works with an empty list of metadata (#20).
- The
gallery_site()
generator now works whenrmarkdown::render_site()
is called with any path to a directory containing the website sources (#11).
- Fix handling of missing
type_field
in thegallery
site configuration (#10).
- Metadata in YAML format are now also supported (#2).
- Custom page types are now supported as an alternative to the
template
field of the metadata. Page types are defined and mapped to actual templates in thegallery
site configuration, using new fieldstype_field
andtype_template
(#4). - Default values for unspecified fields in the metadata can now be defined using the new
defaults
field in thegallery
site configuration (#3).
- Updated package README to cover new features and point to branch
develop
for using the development version. - Extended test coverage for new as well as existing utilities.
- The package provides the
gallery_site
website generator to be used withrmarkdown::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. - Three templates are provided for including different content in gallery pages:
embed-url
(embed an external page given its URL),embed-html
(include raw HTML for embedding arbitrary content),embed-script
(generate embedded content by including JavaScript code). - Custom templates are supported and can be defined with the help of the provided
gallery_content()
function. - Usage and behavior extensively described in the package README.