From 85d8beb537a6cf3c050438398d610da03dba3353 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ma=C3=ABlle=20Salmon?= Date: Mon, 20 Sep 2021 08:54:24 +0200 Subject: [PATCH] Add mention of pkgdown_sitrep() in build_search() docs (#1771) --- R/build-search-docs.R | 9 +++++++-- man/build_search.Rd | 10 ++++++++-- 2 files changed, 15 insertions(+), 4 deletions(-) diff --git a/R/build-search-docs.R b/R/build-search-docs.R index 936d5c9b4..462f3192f 100644 --- a/R/build-search-docs.R +++ b/R/build-search-docs.R @@ -75,10 +75,15 @@ url_node <- function(url) { #' search: #' exclude: ['news/index.html'] #' ``` -#' @section Local testing: -#' Search won't work if you simply use pkgdown preview of the static files. +#' @section Debugging and local testing: +#' +#' Locally (as opposed to on GitHub Pages or Netlify for instance), +#' search won't work if you simply use pkgdown preview of the static files. #' You can use `servr::httw("docs")` instead. #' +#' If search is not working, run `pkgdown::pkgdown_sitrep()` to eliminate +#' common issues such as the absence of URL in the pkgdown configuration file +#' of your package. #' #' @inheritParams build_articles #' @export diff --git a/man/build_search.Rd b/man/build_search.Rd index 05d60891e..5836206af 100644 --- a/man/build_search.Rd +++ b/man/build_search.Rd @@ -23,9 +23,15 @@ Below we exclude the changelog from the search index.\if{html}{\out{