Skip to content

Commit

Permalink
Added a comment with summary of temporary pkgdown directory discussion.
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew0Hill committed Nov 8, 2024
1 parent 8d2b45d commit 20b22b6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/testthat/test-tweak-page.R
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,12 @@ test_that("h1 section headings adjusted to h2 (and so on)", {
})

test_that("slashes not URL encoded during relative path conversion", {

# Since the URL conversion process in tweak_markdown_html() makes calls to
# fs::path_real() (which requires paths to exist), we create a
# temporary pkgdown site directory and populate it with an image file, which
# we can then reference in our test HTML file.

# Create a site
pkg <- local_pkgdown_site()

Expand Down

0 comments on commit 20b22b6

Please sign in to comment.