Build Sphinx documentation for an R package¶
- build_sphinx(path = ".", docs_dir = "docs", output_dir = "_site", builder = "html", include = c("exports", "all"), warnings_as_errors = TRUE, keep_going = TRUE, fresh = FALSE, sphinx_build = Sys.which("sphinx-build"), quiet = FALSE)¶
Render the package’s Rd reference pages and invoke
sphinx-build.- Arguments:
path – Path to an R package source directory.
docs_dir – Sphinx source directory, relative to
pathby default.output_dir – Output directory, relative to
pathby default.builder – Sphinx builder name, usually
"html".include – Passed to
render_sphinx.warnings_as_errors – Pass
-Wto Sphinx.keep_going – Ask Sphinx to report all warnings before failing.
fresh – Ignore the saved Sphinx environment.
sphinx_build – Path to the
sphinx-buildexecutable.quiet – Suppress the render summary.
- Returns:
Invisibly, the normalized output directory.