Merge pull request #5920 from roc-lang/output-flag

Add --output flag
This commit is contained in:
Anton-4 2023-10-23 16:48:07 +02:00 committed by GitHub
commit 54180cc7a8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
24 changed files with 184 additions and 248 deletions

View file

@ -17,12 +17,9 @@ use roc_region::all::Region;
use std::fs;
use std::path::{Path, PathBuf};
const BUILD_DIR: &str = "./generated-docs";
const LINK_SVG: &str = include_str!("./static/link.svg");
pub fn generate_docs_html(root_file: PathBuf) {
let build_dir = Path::new(BUILD_DIR);
pub fn generate_docs_html(root_file: PathBuf, build_dir: &Path) {
let loaded_module = load_module_for_docs(root_file);
// TODO get these from the platform's source file rather than hardcoding them!