forc-doc 0.66.6

Build the documentation for the local package and all dependencies. The output is placed in `out/doc` in the same format as the project.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use forc_doc::{self, cli::Command, compile_html, get_doc_dir};
use std::path::Path;

#[test]
fn builds_lib_std_docs() {
    let path = Path::new("./../../sway-lib-std");
    let build_instructions = Command {
        path: Some(path.to_str().unwrap().to_string()),
        ..Default::default()
    };
    println!("Building docs for {:?}", build_instructions.path);
    let res = compile_html(&build_instructions, &get_doc_dir);
    assert!(res.is_ok());
}