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, ``)
+ fmt.wprintln(w, `
`)
fmt.wprintln(w, `
`)
fmt.wprintln(w, ``)
- write_link(w, "pkg-overview", "Overview")
+ if overview_docs != "" {
+ write_link(w, "pkg-overview", "Overview")
+ }
write_index(w, "Procedures", pkg_procs[:])
write_index(w, "Procedure Groups", pkg_proc_groups[:])
write_index(w, "Types", pkg_types[:])
diff --git a/tools/odin-html-docs/style.css b/tools/odin-html-docs/style.css
index 1972e99e1..edb94932f 100644
--- a/tools/odin-html-docs/style.css
+++ b/tools/odin-html-docs/style.css
@@ -1,6 +1,6 @@
/* doc directories */
-table.doc-directory {
+table.`directory {
/*border: 1px solid #ccc!important;*/
table-layout: fixed;
border-collapse: collapse;
@@ -78,6 +78,7 @@ pre.doc-code a.code-procedure {
.doc-source a {
text-decoration: none;
color: #666666;
+ font-size: 0.75em;
}
.doc-source a:hover {
text-decoration: underline;