Function generate_docs
Source pub fn generate_docs(
json: &str,
mode: ThemeMode,
custom_css: Option<&str>,
favicon: Option<&str>,
) -> Result<String>
Expand description
Generates documentation HTML from an OpenAPI JSON string.
This is the primary entry point for the library. Pass an OpenAPI JSON string,
a ThemeMode, optional custom CSS, and an optional favicon URL.
Returns the generated HTML as a String, or a UIError on failure.