mirror of
https://github.com/roc-lang/roc.git
synced 2025-07-22 22:15:02 +00:00
Add --output CLI flag for roc docs
This commit is contained in:
parent
77d2136d00
commit
a96752a65a
4 changed files with 18 additions and 8 deletions
|
@ -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!
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue