mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 13:59:08 +00:00
fmt
This commit is contained in:
parent
e627a58b67
commit
ae7c421cac
1 changed files with 1 additions and 7 deletions
|
@ -21,7 +21,6 @@ const BUILD_DIR: &str = "./generated-docs";
|
||||||
const LINK_SVG: &str = include_str!("./static/link.svg");
|
const LINK_SVG: &str = include_str!("./static/link.svg");
|
||||||
|
|
||||||
pub fn generate_docs_html(root_file: PathBuf) {
|
pub fn generate_docs_html(root_file: PathBuf) {
|
||||||
|
|
||||||
let build_dir = Path::new(BUILD_DIR);
|
let build_dir = Path::new(BUILD_DIR);
|
||||||
let loaded_module = load_module_for_docs(root_file);
|
let loaded_module = load_module_for_docs(root_file);
|
||||||
|
|
||||||
|
@ -237,12 +236,7 @@ fn render_module_documentation(
|
||||||
push_html(&mut buf, "h2", vec![("class", "module-name")], {
|
push_html(&mut buf, "h2", vec![("class", "module-name")], {
|
||||||
let mut link_buf = String::new();
|
let mut link_buf = String::new();
|
||||||
|
|
||||||
push_html(
|
push_html(&mut link_buf, "a", vec![("href", "/#")], module_name);
|
||||||
&mut link_buf,
|
|
||||||
"a",
|
|
||||||
vec![("href", "/#")],
|
|
||||||
module_name,
|
|
||||||
);
|
|
||||||
|
|
||||||
link_buf
|
link_buf
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue