Skip to content

Commit

Permalink
Merge pull request #5414 from roc-lang/clippy-fix
Browse files Browse the repository at this point in the history
clippy fix
  • Loading branch information
Anton-4 committed May 15, 2023
2 parents a0f4436 + 9fd2224 commit 9c6aae9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions crates/docs/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ pub fn generate_docs_html(root_file: PathBuf) {
set
};

// TODO fix: as is, this overrides an existing index.html
// Write index.html for package (/index.html)
/*{
let rendered_package = template_html
Expand Down Expand Up @@ -195,7 +196,8 @@ fn page_title(package_name: &str, module_name: &str) -> String {
format!("<title>{module_name} - {package_name}</title>")
}

fn render_package_index(root_module: &LoadedModule) -> String {
// TODO re-enable with let rendered_package = template_html...
/*fn render_package_index(root_module: &LoadedModule) -> String {
// The list items containing module links
let mut module_list_buf = String::new();
Expand Down Expand Up @@ -226,7 +228,7 @@ fn render_package_index(root_module: &LoadedModule) -> String {
);
index_buf
}
}*/

fn render_module_documentation(
module: &ModuleDocumentation,
Expand Down

0 comments on commit 9c6aae9

Please sign in to comment.