Skip to content

Commit ffb4616

Browse files
authored
Merge pull request #19 from ThinkR-open/fix-markdown-time
Increase minimal pandoc version
2 parents 5e0d7f9 + f3e2665 commit ffb4616

File tree

8 files changed

+18
-11
lines changed

8 files changed

+18
-11
lines changed

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package: gitdown
22
Title: Turn Your Git Commit Messages into a HTML Book
3-
Version: 0.1.5
3+
Version: 0.1.6
44
Authors@R: c(
55
person("Sébastien", "Rochette", , "sebastien@thinkr.fr", role = c("aut", "cre"),
66
comment = c(ORCID = "0000-0002-1565-9313")),

NEWS.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
# gitdown 0.1.6
2+
3+
* Ask for Pandoc > 2.0 as for new {rmarkdown}
4+
* Use 'main' branch as default for the repository example
5+
* Fix unit test for new 'rmarkdown' version
6+
* Fix unit test for date-time check due to changing timezone
7+
18
# gitdown 0.1.5
29

310
* Change unit tests

R/get_info_files.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ present_files <- function(repo = ".", path = "R",
175175
#'
176176
#' # Creates vignette
177177
#' repo <- fake_repo(as.package = TRUE)
178-
#' if (rmarkdown::pandoc_available("1.12.3")) {
178+
#' if (rmarkdown::pandoc_available("2.0.0")) {
179179
#' create_vignette_last_modif(repo, path = "R")
180180
#' }
181181

@@ -198,7 +198,7 @@ create_vignette_last_modif <- function(repo = ".", path = "R",
198198
#' @examples
199199
#' # update vignette
200200
#' repo <- fake_repo(as.package = TRUE)
201-
#' if (rmarkdown::pandoc_available("1.12.3")) {
201+
#' if (rmarkdown::pandoc_available("2.0.0")) {
202202
#' update_vignette_last_modif(repo, path = "R")
203203
#' rmarkdown::render(file.path(repo, "vignettes", "modification_files.Rmd"))
204204
#' }

R/git_down.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
#'
2727
#' @examples
2828
#' repo <- fake_repo()
29-
#' if (rmarkdown::pandoc_available("1.12.3")) {
29+
#' if (rmarkdown::pandoc_available("2.0.0")) {
3030
#' res <- git_down(repo, pattern = c("Tickets" = "ticket[[:digit:]]+", "Issues" = "#[[:digit:]]+"),
3131
#' open = FALSE)
3232
#' }
@@ -38,7 +38,7 @@
3838
#' pattern.table <- data.frame(number = c("#2", "#1"),
3939
#' title = c("#2 A second issue to illustrate a blog post",
4040
#' "#1 An example of issue"))
41-
#' if (rmarkdown::pandoc_available("1.12.3")) {
41+
#' if (rmarkdown::pandoc_available("2.0.0")) {
4242
#' res <- git_down(repo, pattern = c("Issues" = "#[[:digit:]]+"),
4343
#' pattern.table = pattern.table, open = FALSE)
4444
#' }

man/create_vignette_last_modif.Rd

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/git_down.Rd

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/testthat/test-get_info_files.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ test_that("present_files error", {
5959
})
6060

6161
# create_vignette_last_modif ----
62-
if (rmarkdown::pandoc_available("1.12.3")) {
62+
if (rmarkdown::pandoc_available("2.0.0")) {
6363
create_vignette_last_modif(repo_pkg)
6464
# browseURL(repo_pkg)
6565

tests/testthat/test-git_down.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
if (rmarkdown::pandoc_available("1.12.3")) {
1+
if (rmarkdown::pandoc_available("2.0.0")) {
22
library(withr)
33

44
repo_input <- tempfile(pattern = "git2r-")

0 commit comments

Comments
 (0)