diff --git a/tools/odin-html-docs/odin_html_docs_main.odin b/tools/odin-html-docs/odin_html_docs_main.odin index a6b5f428e..a2d516812 100644 --- a/tools/odin-html-docs/odin_html_docs_main.odin +++ b/tools/odin-html-docs/odin_html_docs_main.odin @@ -818,56 +818,60 @@ write_docs :: proc(w: io.Writer, pkg: ^doc.Pkg, docs: string) { } write_pkg :: proc(w: io.Writer, path: string, pkg: ^doc.Pkg) { - - fmt.wprintln(w, `
`) defer fmt.wprintln(w, `
`) + fmt.wprintln(w, `
`) + { // breadcrumbs - fmt.wprintln(w, ``) + if !is_curr && short_path in pkgs_to_use { + fmt.wprintf(w, `%s`, url, dir) + } else { + io.write_string(w, dir) + } + io.write_string(w, "\n") + } } - fmt.wprintln(w, `
`) fmt.wprintf(w, "

package core:%s

\n", path) fmt.wprintln(w, "

Documentation

") - docs := strings.trim_space(str(pkg.docs)) - if docs != "" { + overview_docs := strings.trim_space(str(pkg.docs)) + if overview_docs != "" { fmt.wprintln(w, "

Overview

") fmt.wprintln(w, "
") defer fmt.wprintln(w, "
") - write_docs(w, pkg, docs) + write_docs(w, pkg, overview_docs) } - fmt.wprintln(w, "

Index

") - fmt.wprintln(w, `
`) + fmt.wprintln(w, `

Index

`) + fmt.wprintln(w, `
`) + // fmt.wprintln(w, `

Index

`) + // fmt.wprintln(w, `
`) pkg_procs: [dynamic]^doc.Entity pkg_proc_groups: [dynamic]^doc.Entity pkg_types: [dynamic]^doc.Entity @@ -1126,10 +1130,12 @@ write_pkg :: proc(w: io.Writer, path: string, pkg: ^doc.Pkg) { } - fmt.wprintln(w, `