Skip to content

Commit

Permalink
Merge pull request #19 from ThinkR-open/fix-markdown-time
Browse files Browse the repository at this point in the history
Increase minimal pandoc version
  • Loading branch information
statnmap authored Mar 5, 2022
2 parents 5e0d7f9 + f3e2665 commit ffb4616
Show file tree
Hide file tree
Showing 8 changed files with 18 additions and 11 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: gitdown
Title: Turn Your Git Commit Messages into a HTML Book
Version: 0.1.5
Version: 0.1.6
Authors@R: c(
person("Sébastien", "Rochette", , "[email protected]", role = c("aut", "cre"),
comment = c(ORCID = "0000-0002-1565-9313")),
Expand Down
7 changes: 7 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# gitdown 0.1.6

* Ask for Pandoc > 2.0 as for new {rmarkdown}
* Use 'main' branch as default for the repository example
* Fix unit test for new 'rmarkdown' version
* Fix unit test for date-time check due to changing timezone

# gitdown 0.1.5

* Change unit tests
Expand Down
4 changes: 2 additions & 2 deletions R/get_info_files.R
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ present_files <- function(repo = ".", path = "R",
#'
#' # Creates vignette
#' repo <- fake_repo(as.package = TRUE)
#' if (rmarkdown::pandoc_available("1.12.3")) {
#' if (rmarkdown::pandoc_available("2.0.0")) {
#' create_vignette_last_modif(repo, path = "R")
#' }

Expand All @@ -198,7 +198,7 @@ create_vignette_last_modif <- function(repo = ".", path = "R",
#' @examples
#' # update vignette
#' repo <- fake_repo(as.package = TRUE)
#' if (rmarkdown::pandoc_available("1.12.3")) {
#' if (rmarkdown::pandoc_available("2.0.0")) {
#' update_vignette_last_modif(repo, path = "R")
#' rmarkdown::render(file.path(repo, "vignettes", "modification_files.Rmd"))
#' }
Expand Down
4 changes: 2 additions & 2 deletions R/git_down.R
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
#'
#' @examples
#' repo <- fake_repo()
#' if (rmarkdown::pandoc_available("1.12.3")) {
#' if (rmarkdown::pandoc_available("2.0.0")) {
#' res <- git_down(repo, pattern = c("Tickets" = "ticket[[:digit:]]+", "Issues" = "#[[:digit:]]+"),
#' open = FALSE)
#' }
Expand All @@ -38,7 +38,7 @@
#' pattern.table <- data.frame(number = c("#2", "#1"),
#' title = c("#2 A second issue to illustrate a blog post",
#' "#1 An example of issue"))
#' if (rmarkdown::pandoc_available("1.12.3")) {
#' if (rmarkdown::pandoc_available("2.0.0")) {
#' res <- git_down(repo, pattern = c("Issues" = "#[[:digit:]]+"),
#' pattern.table = pattern.table, open = FALSE)
#' }
Expand Down
4 changes: 2 additions & 2 deletions man/create_vignette_last_modif.Rd

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

4 changes: 2 additions & 2 deletions man/git_down.Rd

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

2 changes: 1 addition & 1 deletion tests/testthat/test-get_info_files.R
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ test_that("present_files error", {
})

# create_vignette_last_modif ----
if (rmarkdown::pandoc_available("1.12.3")) {
if (rmarkdown::pandoc_available("2.0.0")) {
create_vignette_last_modif(repo_pkg)
# browseURL(repo_pkg)

Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test-git_down.R
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
if (rmarkdown::pandoc_available("1.12.3")) {
if (rmarkdown::pandoc_available("2.0.0")) {
library(withr)

repo_input <- tempfile(pattern = "git2r-")
Expand Down

0 comments on commit ffb4616

Please sign in to comment.