enable --root-dir for roc docs

This commit is contained in:
Luke Boswell 2025-01-08 13:43:42 +11:00
parent 8540aa1a14
commit 9c527f890f
No known key found for this signature in database
GPG key ID: F6DB3C9DB47377B0
4 changed files with 57 additions and 20 deletions

View file

@ -19,10 +19,10 @@ fn main() -> io::Result<()> {
)
.get_matches();
// Populate roc_files
generate_docs_html(
matches.get_one::<PathBuf>(ROC_FILE).unwrap().to_owned(),
&PathBuf::from("./generated-docs"),
std::env::var("ROC_DOCS_URL_ROOT").ok(),
);
Ok(())