pub fn docs() -> Result<()>Expand description
Generates and watches documentation for the current project.
This function runs cargo doc in watch mode, automatically rebuilding
the documentation whenever changes are detected in the source code.
This is particularly useful during development.
ยงErrors
Returns an anyhow::Error if the cargo watch or cargo doc commands fail to execute.
The error will contain additional context about what went wrong to aid in debugging.