Skip to main content

build_docs_bundle

Function build_docs_bundle 

Source
pub fn build_docs_bundle(
    src_dir: &Path,
    out_dir: &Path,
    options: &DocsBuildOptions,
) -> Result<GeneratedSiteReport>
Expand description

Loads all Markdown files beneath src_dir (excluding out_dir) and builds a complete static docs site.

§Arguments

  • &Path - Source project or Markdown directory.
  • &Path - Output static site directory.
  • &DocsBuildOptions - Site title, base URL, clean URL, asset copy, and optional dev HMR configuration.

§Returns

  • io::Result<GeneratedSiteReport> - Summary of generated artifacts or I/O error.