mirror of
https://github.com/FuelLabs/sway.git
synced 2025-08-11 22:29:29 +00:00

## Description Closes https://github.com/FuelLabs/sway/issues/5789 ## Checklist - [x] I have linked to any relevant issues. - [ ] I have commented my code, particularly in hard-to-understand areas. - [ ] I have updated the documentation where relevant (API docs, the reference, and the Sway book). - [ ] If my change requires substantial documentation changes, I have [requested support from the DevRel team](https://github.com/FuelLabs/devrel-requests/issues/new/choose) - [ ] I have added tests that prove my fix is effective or that my feature works. - [ ] I have added (or requested a maintainer to add) the necessary `Breaking*` or `New Feature` labels where relevant. - [ ] I have done my best to ensure that my PR adheres to [the Fuel Labs Code Review Standards](https://github.com/FuelLabs/rfcs/blob/master/text/code-standards/external-contributors.md). - [ ] I have requested a review from the relevant team or maintainers. --------- Co-authored-by: Cameron Carstens <bitzoic.eth@gmail.com> Co-authored-by: Joshua Batty <joshpbatty@gmail.com> Co-authored-by: Kaya Gökalp <kaya.gokalp@fuel.sh>
14 lines
457 B
Rust
14 lines
457 B
Rust
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());
|
|
}
|