From 017276d72d9db1f8de9b867a77def98cb5fbada6 Mon Sep 17 00:00:00 2001 From: Ian Lyttle Date: Sun, 25 Feb 2018 09:35:26 -0600 Subject: [PATCH 1/6] adds host to formals of install_theme() and new_site() --- R/hugo.R | 10 ++++++++-- man/hugo_cmd.Rd | 5 ++++- man/install_theme.Rd | 6 +++++- 3 files changed, 17 insertions(+), 4 deletions(-) diff --git a/R/hugo.R b/R/hugo.R index 253b634a..9571925a 100644 --- a/R/hugo.R +++ b/R/hugo.R @@ -83,6 +83,8 @@ change_config = function(name, value) { #' @param theme_example Whether to copy the example in the \file{exampleSite} #' directory if it exists in the theme. Not all themes provide example sites. #' @param serve Whether to start a local server to serve the site. +#' @param host Where to find the theme. Defaults to \code{github.com}; specify +#' if you wish to use an instance of GitHub Enterprise. #' @references The full list of Hugo commands: \url{https://gohugo.io/commands}, #' and themes: \url{http://themes.gohugo.io}. #' @export @@ -92,7 +94,8 @@ change_config = function(name, value) { #' if (interactive()) new_site() new_site = function( dir = '.', install_hugo = TRUE, format = 'toml', sample = TRUE, - theme = 'yihui/hugo-lithium-theme', theme_example = TRUE, serve = interactive() + theme = 'yihui/hugo-lithium-theme', theme_example = TRUE, serve = interactive(), + host = 'github.com' ) { files = grep('[.]Rproj$', list.files(dir), invert = TRUE, value = TRUE) files = setdiff(files, c('LICENSE', 'README', 'README.md')) @@ -135,7 +138,10 @@ new_site = function( #' @param update_config Whether to update the \code{theme} option in the site #' configurations. #' @export -install_theme = function(theme, theme_example = FALSE, update_config = TRUE, force = FALSE) { +install_theme = function( + theme, theme_example = FALSE, update_config = TRUE, force = FALSE, + host = 'github.com' +) { r = '^([^/]+/[^/@]+)(@.+)?$' if (!is.character(theme) || length(theme) != 1 || !grepl(r, theme)) { warning("'theme' must be a character string of the form 'user/repo' or 'user/repo@branch'") diff --git a/man/hugo_cmd.Rd b/man/hugo_cmd.Rd index 774cf54b..5a71ff5c 100644 --- a/man/hugo_cmd.Rd +++ b/man/hugo_cmd.Rd @@ -19,7 +19,7 @@ hugo_build(local = FALSE) new_site(dir = ".", install_hugo = TRUE, format = "toml", sample = TRUE, theme = "yihui/hugo-lithium-theme", theme_example = TRUE, - serve = interactive()) + serve = interactive(), host = "github.com") new_content(path, kind = "default", open = interactive()) @@ -67,6 +67,9 @@ directory if it exists in the theme. Not all themes provide example sites.} \item{serve}{Whether to start a local server to serve the site.} +\item{host}{Where to find the theme. Defaults to \code{github.com}; specify +if you wish to use an instance of GitHub Enterprise.} + \item{path}{The path to the new file under the \file{content} directory.} \item{kind}{The content type to create.} diff --git a/man/install_theme.Rd b/man/install_theme.Rd index cda112a7..9a8f8504 100644 --- a/man/install_theme.Rd +++ b/man/install_theme.Rd @@ -4,7 +4,8 @@ \alias{install_theme} \title{Install a Hugo theme from Github} \usage{ -install_theme(theme, theme_example = FALSE, update_config = TRUE, force = FALSE) +install_theme(theme, theme_example = FALSE, update_config = TRUE, force = FALSE, + host = "github.com") } \arguments{ \item{theme}{A Hugo theme on Github (a chararacter string of the form @@ -23,6 +24,9 @@ configurations.} have made changes to this existing theme, your changes will be lost when \code{force = TRUE}! Please consider backing up the theme by renaming it before you try \code{force = TRUE}.} + +\item{host}{Where to find the theme. Defaults to \code{github.com}; specify +if you wish to use an instance of GitHub Enterprise.} } \description{ Download the specified theme from Github and install to the \file{themes} From e212f3b5883b85a5824aa199daf3bb3c341d8715 Mon Sep 17 00:00:00 2001 From: Ian Lyttle Date: Sun, 25 Feb 2018 10:21:57 -0600 Subject: [PATCH 2/6] changes `host` to `hostname` --- R/hugo.R | 6 +++--- man/hugo_cmd.Rd | 4 ++-- man/install_theme.Rd | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/R/hugo.R b/R/hugo.R index 9571925a..aaa6318f 100644 --- a/R/hugo.R +++ b/R/hugo.R @@ -83,7 +83,7 @@ change_config = function(name, value) { #' @param theme_example Whether to copy the example in the \file{exampleSite} #' directory if it exists in the theme. Not all themes provide example sites. #' @param serve Whether to start a local server to serve the site. -#' @param host Where to find the theme. Defaults to \code{github.com}; specify +#' @param hostname Where to find the theme. Defaults to \code{github.com}; specify #' if you wish to use an instance of GitHub Enterprise. #' @references The full list of Hugo commands: \url{https://gohugo.io/commands}, #' and themes: \url{http://themes.gohugo.io}. @@ -95,7 +95,7 @@ change_config = function(name, value) { new_site = function( dir = '.', install_hugo = TRUE, format = 'toml', sample = TRUE, theme = 'yihui/hugo-lithium-theme', theme_example = TRUE, serve = interactive(), - host = 'github.com' + hostname = 'github.com' ) { files = grep('[.]Rproj$', list.files(dir), invert = TRUE, value = TRUE) files = setdiff(files, c('LICENSE', 'README', 'README.md')) @@ -140,7 +140,7 @@ new_site = function( #' @export install_theme = function( theme, theme_example = FALSE, update_config = TRUE, force = FALSE, - host = 'github.com' + hostname = 'github.com' ) { r = '^([^/]+/[^/@]+)(@.+)?$' if (!is.character(theme) || length(theme) != 1 || !grepl(r, theme)) { diff --git a/man/hugo_cmd.Rd b/man/hugo_cmd.Rd index 5a71ff5c..bdddc6f9 100644 --- a/man/hugo_cmd.Rd +++ b/man/hugo_cmd.Rd @@ -19,7 +19,7 @@ hugo_build(local = FALSE) new_site(dir = ".", install_hugo = TRUE, format = "toml", sample = TRUE, theme = "yihui/hugo-lithium-theme", theme_example = TRUE, - serve = interactive(), host = "github.com") + serve = interactive(), hostname = "github.com") new_content(path, kind = "default", open = interactive()) @@ -67,7 +67,7 @@ directory if it exists in the theme. Not all themes provide example sites.} \item{serve}{Whether to start a local server to serve the site.} -\item{host}{Where to find the theme. Defaults to \code{github.com}; specify +\item{hostname}{Where to find the theme. Defaults to \code{github.com}; specify if you wish to use an instance of GitHub Enterprise.} \item{path}{The path to the new file under the \file{content} directory.} diff --git a/man/install_theme.Rd b/man/install_theme.Rd index 9a8f8504..08112be0 100644 --- a/man/install_theme.Rd +++ b/man/install_theme.Rd @@ -5,7 +5,7 @@ \title{Install a Hugo theme from Github} \usage{ install_theme(theme, theme_example = FALSE, update_config = TRUE, force = FALSE, - host = "github.com") + hostname = "github.com") } \arguments{ \item{theme}{A Hugo theme on Github (a chararacter string of the form @@ -25,7 +25,7 @@ have made changes to this existing theme, your changes will be lost when \code{force = TRUE}! Please consider backing up the theme by renaming it before you try \code{force = TRUE}.} -\item{host}{Where to find the theme. Defaults to \code{github.com}; specify +\item{hostname}{Where to find the theme. Defaults to \code{github.com}; specify if you wish to use an instance of GitHub Enterprise.} } \description{ From 6b338f74a991a81d61b0c9290051a54819d34837 Mon Sep 17 00:00:00 2001 From: Ian Lyttle Date: Sun, 25 Feb 2018 10:26:43 -0600 Subject: [PATCH 3/6] adds hostname functionality --- R/hugo.R | 7 +++---- man/find_yaml.Rd | 4 ++-- man/html_page.Rd | 4 ++-- man/hugo_cmd.Rd | 20 ++++++++++---------- man/install_hugo.Rd | 3 ++- man/install_theme.Rd | 4 ++-- man/shortcode.Rd | 8 ++++---- 7 files changed, 25 insertions(+), 25 deletions(-) diff --git a/R/hugo.R b/R/hugo.R index aaa6318f..8480c54f 100644 --- a/R/hugo.R +++ b/R/hugo.R @@ -111,7 +111,7 @@ new_site = function( # remove Hugo's default archetype (I think draft: true is a confusing default) unlink(file.path('archetypes', 'default.md')) if (is.character(theme) && length(theme) == 1 && !is.na(theme)) - install_theme(theme, theme_example) + install_theme(theme, theme_example, hostname = hostname) if (sample) { d = file.path('content', 'blog') @@ -152,10 +152,9 @@ install_theme = function( theme = gsub(r, '\\1', theme) dir_create('themes') in_dir('themes', { + url = sprintf('https://%s/%s/archive/%s.zip', hostname, theme, branch) zipfile = sprintf('%s.zip', basename(theme)) - download2( - sprintf('https://github.com/%s/archive/%s.zip', theme, branch), zipfile, mode = 'wb' - ) + download2(url, zipfile, mode = 'wb') files = utils::unzip(zipfile) zipdir = dirname(files) zipdir = zipdir[which.min(nchar(zipdir))] diff --git a/man/find_yaml.Rd b/man/find_yaml.Rd index 7394380c..9ad9f729 100644 --- a/man/find_yaml.Rd +++ b/man/find_yaml.Rd @@ -39,8 +39,8 @@ categories. } \examples{ library(blogdown) -find_tags(c("time-series", "support vector machine")) -find_categories("Statistics") +find_tags(c('time-series', 'support vector machine')) +find_categories('Statistics') count_yaml(sort_by_count = FALSE) } diff --git a/man/html_page.Rd b/man/html_page.Rd index 68f8b069..731fd0ac 100644 --- a/man/html_page.Rd +++ b/man/html_page.Rd @@ -4,8 +4,8 @@ \alias{html_page} \title{An R Markdown output format for \pkg{blogdown} web pages} \usage{ -html_page(..., number_sections = FALSE, self_contained = FALSE, highlight = NULL, - template = NULL, post_processor = NULL) +html_page(..., number_sections = FALSE, self_contained = FALSE, + highlight = NULL, template = NULL, post_processor = NULL) } \arguments{ \item{..., number_sections, self_contained, highlight, template}{Arguments passed diff --git a/man/hugo_cmd.Rd b/man/hugo_cmd.Rd index bdddc6f9..84f6e9b9 100644 --- a/man/hugo_cmd.Rd +++ b/man/hugo_cmd.Rd @@ -17,20 +17,20 @@ hugo_version() hugo_build(local = FALSE) -new_site(dir = ".", install_hugo = TRUE, format = "toml", - sample = TRUE, theme = "yihui/hugo-lithium-theme", theme_example = TRUE, - serve = interactive(), hostname = "github.com") +new_site(dir = ".", install_hugo = TRUE, format = "toml", sample = TRUE, + theme = "yihui/hugo-lithium-theme", theme_example = TRUE, + serve = interactive(), hostname = "github.com") new_content(path, kind = "default", open = interactive()) -new_post(title, kind = "default", open = interactive(), - author = getOption("blogdown.author"), categories = NULL, - tags = NULL, date = Sys.Date(), file = NULL, slug = NULL, - title_case = getOption("blogdown.title_case"), subdir = getOption("blogdown.subdir", - "post"), ext = getOption("blogdown.ext", ".md")) +new_post(title, kind = "default", open = interactive(), + author = getOption("blogdown.author"), categories = NULL, tags = NULL, + date = Sys.Date(), file = NULL, slug = NULL, + title_case = getOption("blogdown.title_case"), + subdir = getOption("blogdown.subdir", "post"), + ext = getOption("blogdown.ext", ".md")) -hugo_convert(to = c("YAML", "TOML", "JSON"), unsafe = FALSE, - ...) +hugo_convert(to = c("YAML", "TOML", "JSON"), unsafe = FALSE, ...) hugo_server(host, port) } diff --git a/man/install_hugo.Rd b/man/install_hugo.Rd index afee7a7b..ab90b21e 100644 --- a/man/install_hugo.Rd +++ b/man/install_hugo.Rd @@ -5,7 +5,8 @@ \alias{update_hugo} \title{Install Hugo} \usage{ -install_hugo(version = "latest", use_brew = Sys.which("brew") != "", force = FALSE) +install_hugo(version = "latest", use_brew = Sys.which("brew") != "", + force = FALSE) update_hugo() } diff --git a/man/install_theme.Rd b/man/install_theme.Rd index 08112be0..0a196f28 100644 --- a/man/install_theme.Rd +++ b/man/install_theme.Rd @@ -4,8 +4,8 @@ \alias{install_theme} \title{Install a Hugo theme from Github} \usage{ -install_theme(theme, theme_example = FALSE, update_config = TRUE, force = FALSE, - hostname = "github.com") +install_theme(theme, theme_example = FALSE, update_config = TRUE, + force = FALSE, hostname = "github.com") } \arguments{ \item{theme}{A Hugo theme on Github (a chararacter string of the form diff --git a/man/shortcode.Rd b/man/shortcode.Rd index 90ba61b2..df91c270 100644 --- a/man/shortcode.Rd +++ b/man/shortcode.Rd @@ -46,11 +46,11 @@ shortcodes, and there is no need to call these R functions. \examples{ library(blogdown) -shortcode("tweet", "1234567") -shortcode("figure", src = "/images/foo.png", alt = "A nice figure") -shortcode("highlight", "bash", .content = "echo hello world;") +shortcode('tweet', '1234567') +shortcode('figure', src='/images/foo.png', alt='A nice figure') +shortcode('highlight', 'bash', .content = 'echo hello world;') -shortcode_html("myshortcode", .content = "My shortcode.") +shortcode_html('myshortcode', .content='My shortcode.') } \references{ \url{https://gohugo.io/extras/shortcodes/} From d3e211b5a487bee126b0751d121a430056bd5a35 Mon Sep 17 00:00:00 2001 From: Ian Lyttle Date: Sun, 25 Feb 2018 15:14:24 -0600 Subject: [PATCH 4/6] rebuilds Rd files --- man/find_yaml.Rd | 4 ++-- man/html_page.Rd | 4 ++-- man/hugo_cmd.Rd | 20 ++++++++++---------- man/install_hugo.Rd | 3 +-- man/install_theme.Rd | 4 ++-- man/shortcode.Rd | 8 ++++---- 6 files changed, 21 insertions(+), 22 deletions(-) diff --git a/man/find_yaml.Rd b/man/find_yaml.Rd index 9ad9f729..7394380c 100644 --- a/man/find_yaml.Rd +++ b/man/find_yaml.Rd @@ -39,8 +39,8 @@ categories. } \examples{ library(blogdown) -find_tags(c('time-series', 'support vector machine')) -find_categories('Statistics') +find_tags(c("time-series", "support vector machine")) +find_categories("Statistics") count_yaml(sort_by_count = FALSE) } diff --git a/man/html_page.Rd b/man/html_page.Rd index 731fd0ac..68f8b069 100644 --- a/man/html_page.Rd +++ b/man/html_page.Rd @@ -4,8 +4,8 @@ \alias{html_page} \title{An R Markdown output format for \pkg{blogdown} web pages} \usage{ -html_page(..., number_sections = FALSE, self_contained = FALSE, - highlight = NULL, template = NULL, post_processor = NULL) +html_page(..., number_sections = FALSE, self_contained = FALSE, highlight = NULL, + template = NULL, post_processor = NULL) } \arguments{ \item{..., number_sections, self_contained, highlight, template}{Arguments passed diff --git a/man/hugo_cmd.Rd b/man/hugo_cmd.Rd index 84f6e9b9..bdddc6f9 100644 --- a/man/hugo_cmd.Rd +++ b/man/hugo_cmd.Rd @@ -17,20 +17,20 @@ hugo_version() hugo_build(local = FALSE) -new_site(dir = ".", install_hugo = TRUE, format = "toml", sample = TRUE, - theme = "yihui/hugo-lithium-theme", theme_example = TRUE, - serve = interactive(), hostname = "github.com") +new_site(dir = ".", install_hugo = TRUE, format = "toml", + sample = TRUE, theme = "yihui/hugo-lithium-theme", theme_example = TRUE, + serve = interactive(), hostname = "github.com") new_content(path, kind = "default", open = interactive()) -new_post(title, kind = "default", open = interactive(), - author = getOption("blogdown.author"), categories = NULL, tags = NULL, - date = Sys.Date(), file = NULL, slug = NULL, - title_case = getOption("blogdown.title_case"), - subdir = getOption("blogdown.subdir", "post"), - ext = getOption("blogdown.ext", ".md")) +new_post(title, kind = "default", open = interactive(), + author = getOption("blogdown.author"), categories = NULL, + tags = NULL, date = Sys.Date(), file = NULL, slug = NULL, + title_case = getOption("blogdown.title_case"), subdir = getOption("blogdown.subdir", + "post"), ext = getOption("blogdown.ext", ".md")) -hugo_convert(to = c("YAML", "TOML", "JSON"), unsafe = FALSE, ...) +hugo_convert(to = c("YAML", "TOML", "JSON"), unsafe = FALSE, + ...) hugo_server(host, port) } diff --git a/man/install_hugo.Rd b/man/install_hugo.Rd index ab90b21e..afee7a7b 100644 --- a/man/install_hugo.Rd +++ b/man/install_hugo.Rd @@ -5,8 +5,7 @@ \alias{update_hugo} \title{Install Hugo} \usage{ -install_hugo(version = "latest", use_brew = Sys.which("brew") != "", - force = FALSE) +install_hugo(version = "latest", use_brew = Sys.which("brew") != "", force = FALSE) update_hugo() } diff --git a/man/install_theme.Rd b/man/install_theme.Rd index 0a196f28..08112be0 100644 --- a/man/install_theme.Rd +++ b/man/install_theme.Rd @@ -4,8 +4,8 @@ \alias{install_theme} \title{Install a Hugo theme from Github} \usage{ -install_theme(theme, theme_example = FALSE, update_config = TRUE, - force = FALSE, hostname = "github.com") +install_theme(theme, theme_example = FALSE, update_config = TRUE, force = FALSE, + hostname = "github.com") } \arguments{ \item{theme}{A Hugo theme on Github (a chararacter string of the form diff --git a/man/shortcode.Rd b/man/shortcode.Rd index df91c270..90ba61b2 100644 --- a/man/shortcode.Rd +++ b/man/shortcode.Rd @@ -46,11 +46,11 @@ shortcodes, and there is no need to call these R functions. \examples{ library(blogdown) -shortcode('tweet', '1234567') -shortcode('figure', src='/images/foo.png', alt='A nice figure') -shortcode('highlight', 'bash', .content = 'echo hello world;') +shortcode("tweet", "1234567") +shortcode("figure", src = "/images/foo.png", alt = "A nice figure") +shortcode("highlight", "bash", .content = "echo hello world;") -shortcode_html('myshortcode', .content='My shortcode.') +shortcode_html("myshortcode", .content = "My shortcode.") } \references{ \url{https://gohugo.io/extras/shortcodes/} From 7332861f5443a28a659d5929e3476186fe49cbc5 Mon Sep 17 00:00:00 2001 From: Ian Lyttle Date: Sun, 25 Feb 2018 15:21:05 -0600 Subject: [PATCH 5/6] moves hostname next to theme in formals --- R/hugo.R | 11 +++++------ man/hugo_cmd.Rd | 10 +++++----- man/install_theme.Rd | 10 +++++----- 3 files changed, 15 insertions(+), 16 deletions(-) diff --git a/R/hugo.R b/R/hugo.R index 8480c54f..ad27d48e 100644 --- a/R/hugo.R +++ b/R/hugo.R @@ -80,11 +80,11 @@ change_config = function(name, value) { #' after \code{@@}, i.e. \code{theme} can be of the form #' \code{user/repo@@branch}). If \code{theme = NA}, no themes will be #' installed, and you have to manually install a theme. +#' @param hostname Where to find the theme. Defaults to \code{github.com}; specify +#' if you wish to use an instance of GitHub Enterprise. #' @param theme_example Whether to copy the example in the \file{exampleSite} #' directory if it exists in the theme. Not all themes provide example sites. #' @param serve Whether to start a local server to serve the site. -#' @param hostname Where to find the theme. Defaults to \code{github.com}; specify -#' if you wish to use an instance of GitHub Enterprise. #' @references The full list of Hugo commands: \url{https://gohugo.io/commands}, #' and themes: \url{http://themes.gohugo.io}. #' @export @@ -94,8 +94,8 @@ change_config = function(name, value) { #' if (interactive()) new_site() new_site = function( dir = '.', install_hugo = TRUE, format = 'toml', sample = TRUE, - theme = 'yihui/hugo-lithium-theme', theme_example = TRUE, serve = interactive(), - hostname = 'github.com' + theme = 'yihui/hugo-lithium-theme', hostname = 'github.com', theme_example = TRUE, + serve = interactive() ) { files = grep('[.]Rproj$', list.files(dir), invert = TRUE, value = TRUE) files = setdiff(files, c('LICENSE', 'README', 'README.md')) @@ -139,8 +139,7 @@ new_site = function( #' configurations. #' @export install_theme = function( - theme, theme_example = FALSE, update_config = TRUE, force = FALSE, - hostname = 'github.com' + theme, hostname = 'github.com', theme_example = FALSE, update_config = TRUE, force = FALSE ) { r = '^([^/]+/[^/@]+)(@.+)?$' if (!is.character(theme) || length(theme) != 1 || !grepl(r, theme)) { diff --git a/man/hugo_cmd.Rd b/man/hugo_cmd.Rd index bdddc6f9..21c2e28f 100644 --- a/man/hugo_cmd.Rd +++ b/man/hugo_cmd.Rd @@ -18,8 +18,8 @@ hugo_version() hugo_build(local = FALSE) new_site(dir = ".", install_hugo = TRUE, format = "toml", - sample = TRUE, theme = "yihui/hugo-lithium-theme", theme_example = TRUE, - serve = interactive(), hostname = "github.com") + sample = TRUE, theme = "yihui/hugo-lithium-theme", hostname = "github.com", + theme_example = TRUE, serve = interactive()) new_content(path, kind = "default", open = interactive()) @@ -62,14 +62,14 @@ after \code{@}, i.e. \code{theme} can be of the form \code{user/repo@branch}). If \code{theme = NA}, no themes will be installed, and you have to manually install a theme.} +\item{hostname}{Where to find the theme. Defaults to \code{github.com}; specify +if you wish to use an instance of GitHub Enterprise.} + \item{theme_example}{Whether to copy the example in the \file{exampleSite} directory if it exists in the theme. Not all themes provide example sites.} \item{serve}{Whether to start a local server to serve the site.} -\item{hostname}{Where to find the theme. Defaults to \code{github.com}; specify -if you wish to use an instance of GitHub Enterprise.} - \item{path}{The path to the new file under the \file{content} directory.} \item{kind}{The content type to create.} diff --git a/man/install_theme.Rd b/man/install_theme.Rd index 08112be0..a6236601 100644 --- a/man/install_theme.Rd +++ b/man/install_theme.Rd @@ -4,8 +4,8 @@ \alias{install_theme} \title{Install a Hugo theme from Github} \usage{ -install_theme(theme, theme_example = FALSE, update_config = TRUE, force = FALSE, - hostname = "github.com") +install_theme(theme, hostname = "github.com", theme_example = FALSE, + update_config = TRUE, force = FALSE) } \arguments{ \item{theme}{A Hugo theme on Github (a chararacter string of the form @@ -14,6 +14,9 @@ after \code{@}, i.e. \code{theme} can be of the form \code{user/repo@branch}). If \code{theme = NA}, no themes will be installed, and you have to manually install a theme.} +\item{hostname}{Where to find the theme. Defaults to \code{github.com}; specify +if you wish to use an instance of GitHub Enterprise.} + \item{theme_example}{Whether to copy the example in the \file{exampleSite} directory if it exists in the theme. Not all themes provide example sites.} @@ -24,9 +27,6 @@ configurations.} have made changes to this existing theme, your changes will be lost when \code{force = TRUE}! Please consider backing up the theme by renaming it before you try \code{force = TRUE}.} - -\item{hostname}{Where to find the theme. Defaults to \code{github.com}; specify -if you wish to use an instance of GitHub Enterprise.} } \description{ Download the specified theme from Github and install to the \file{themes} From 0f4f2df5a0f8cf5f3669e13076163f89ae5b89ff Mon Sep 17 00:00:00 2001 From: Ian Lyttle Date: Sun, 25 Feb 2018 21:49:04 -0600 Subject: [PATCH 6/6] adds @ijlyttle to contributors adds bullet point to NEWS.md (corrects typo in previous bullet) --- DESCRIPTION | 1 + NEWS.md | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/DESCRIPTION b/DESCRIPTION index 7c336301..a0d7b109 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -7,6 +7,7 @@ Authors@R: c( person("Beilei", "Bian", role = "ctb"), person("Forest", "Fang", role = "ctb"), person("Hiroaki", "Yutani", role = "ctb"), + person("Ian", "Lyttle", role = "ctb"), person("JJ", "Allaire", role = "ctb"), person("Kevin", "Ushey", role = "ctb"), person(family = "RStudio Inc", role = "cph"), diff --git a/NEWS.md b/NEWS.md index 15f04472..266f00a3 100644 --- a/NEWS.md +++ b/NEWS.md @@ -2,7 +2,9 @@ ## NEW FEATURES -- Added a `title_case` argument to the `new_post()` function; if \code{TRUE}, the post title will be converted to title case. See `?blogdown::new_post` for details. +- Added a `title_case` argument to the `new_post()` function; if `TRUE`, the post title will be converted to title case. See `?blogdown::new_post` for details. + +- Added a `hostname` argument to `install_theme()` and `new_site()`, as a complement to the `theme` argument. The default `hostname` is `'github.com'`; if you have access to GitHub Enterprise, you can use this to specify it instead (thanks, @ijlyttle, #264). # CHANGES IN blogdown VERSION 0.5