-
Notifications
You must be signed in to change notification settings - Fork 336
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error when re-building site when package man pages have aliases starting with [<-
#2582
Comments
* Only message if sitemap changed * Simplify generation * Escape file names. Fixes #2582.
Thanks for the reprex. So useful! |
Hmmm, #2583 suggests that the problem is actually the file names, since windows can't even write them. |
> xml2::url_escape("[<-.bm_bitmap.html")
[1] "%5B%3C-.bm_bitmap.html" |
|
Yeah maybe skipping creation makes sense? Also makes me wonder how redirects should be correctly encoded in the sitemap. |
Besides x <- numeric(1L)
class(x) <- "awkward"
g <- function(e1, e2) { "problematic alias?" }
`/.awkward` <- g
x / x
`+.awkward` <- g
x + x
`&.awkward` <- g
x & x
`<.awkward` <- g
x < x
`>.awkward` <- g
x > x |
I'd suggest we just copy what roxygen2 does: https://github.com/r-lib/roxygen2/blob/main/R/utils.R#L12-L62 |
https://developers.google.com/search/docs/crawling-indexing/sitemaps/build-sitemap suggests that the sitemap should include canonical urls, so we shouldn't include redirects there at all. |
* Only message if sitemap changed * Simplify generation * Exclude redirects from sitemap. * Exclude invalid filenames from alias redirects Fixes #2582
* Only message if sitemap changed * Simplify generation * Exclude redirects from sitemap. * Exclude invalid filenames from alias redirects Fixes r-lib#2582
[<-
?pkgdown::build_site()
but it will occur if you callpkgdown::build_site()
a second time without deleting the site beforehand:The text was updated successfully, but these errors were encountered: