From f35b5691f303af32a69ec8bfa15d9bc718df4a6b Mon Sep 17 00:00:00 2001 From: Alan Donovan Date: Thu, 27 Mar 2014 15:30:14 -0400 Subject: [PATCH] go.tools/godoc: fix two regressions caused by -analysis CL. - Add missing methodset.html template file. - Suppress initial display of package callgraph. Client-side JS will make it visible if there is data. LGTM=bgarcia R=crawshaw, bgarcia CC=golang-codereviews https://golang.org/cl/81550043 --- godoc/static/godocs.js | 2 + godoc/static/methodset.html | 9 + godoc/static/package.html | 2 +- godoc/static/static.go | 834 ++++++++++++++++++------------------ 4 files changed, 430 insertions(+), 417 deletions(-) create mode 100644 godoc/static/methodset.html diff --git a/godoc/static/godocs.js b/godoc/static/godocs.js index be30420c..232f1170 100644 --- a/godoc/static/godocs.js +++ b/godoc/static/godocs.js @@ -448,6 +448,8 @@ function setupCallgraphs() { if (document.CALLGRAPH == null) { return } + document.getElementById("pkg-callgraph").style.display = "block"; + var treeviews = document.getElementsByClassName("treeview"); for (var i in treeviews) { var tree = treeviews[i]; diff --git a/godoc/static/methodset.html b/godoc/static/methodset.html new file mode 100644 index 00000000..2a09c68d --- /dev/null +++ b/godoc/static/methodset.html @@ -0,0 +1,9 @@ + diff --git a/godoc/static/package.html b/godoc/static/package.html index 4aa2c746..875ebbce 100644 --- a/godoc/static/package.html +++ b/godoc/static/package.html @@ -111,7 +111,7 @@ -
+