Build a JSON file encompassing all HTML pages, for use by the search script.
build_search(pkg = ".", override = list())
Path to package.
An optional named list used to temporarily override
You can exclude some paths from the search index. Below we exclude the changelog from the search index.
search: exclude: ['news/index.html']
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
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.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.