pub fn convert_json_file(options: &ConversionOptions<'_>) -> Result<()>Expand description
Convert a rustdoc JSON file to markdown.
This is the main entry point for library usage.
§Arguments
options- Configuration for the conversion
§Returns
Returns Ok(()) on success, or an error if the conversion fails.
§Example
use rustdoc_json_to_markdown::{convert_json_file, ConversionOptions};
use std::path::Path;
let options = ConversionOptions {
input_path: Path::new("target/doc/my_crate.json"),
output_dir: Path::new("docs"),
include_private: false,
};
convert_json_file(&options).expect("Conversion failed");