mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 22:09:09 +00:00
Code Review Changes
This commit is contained in:
parent
cc70413e05
commit
97f68974a9
3 changed files with 21 additions and 4 deletions
|
@ -18,6 +18,8 @@ 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);
|
||||
let loaded_module = load_module_for_docs(root_file);
|
||||
|
@ -154,7 +156,7 @@ fn render_module_documentation(
|
|||
let href = format!("#{name}");
|
||||
let mut content = String::new();
|
||||
|
||||
push_html(&mut content, "a", vec![("href", href.as_str())], "🔗");
|
||||
push_html(&mut content, "a", vec![("href", href.as_str())], LINK_SVG);
|
||||
push_html(&mut content, "strong", vec![], name);
|
||||
|
||||
for type_var in &doc_def.type_vars {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue