On Windows Dropbox folders, pkgdown::build_site() / build_article() often
fail in xml2::write_html() with "Invalid argument" / "Error closing file"
when writing directly into docs/. This helper builds into a local temp
directory, then copies the result into docs/.
Usage
build_docs(pkg = NULL, ...)
Value
Invisibly, the path to docs/.
Arguments
pkg
Package root. Default: find_package_root() via
options(DesignLibrary.root=...) or the current working directory.