summaryrefslogtreecommitdiff
path: root/numpy/doc/html/epydoc.js
diff options
context:
space:
mode:
authorTravis Oliphant <oliphant@enthought.com>2007-12-28 07:29:22 +0000
committerTravis Oliphant <oliphant@enthought.com>2007-12-28 07:29:22 +0000
commitefbe398a9e374ea4e00391cf3c8b9fc365f5e9eb (patch)
tree9786e0cd1d91e52b5a1372bbe9dc966ba2c66a46 /numpy/doc/html/epydoc.js
parentf499d58f88982c853e6125c13a9cb469f563d410 (diff)
downloadnumpy-efbe398a9e374ea4e00391cf3c8b9fc365f5e9eb.tar.gz
Improve the documentation style for human-readability in plain-text
Diffstat (limited to 'numpy/doc/html/epydoc.js')
-rw-r--r--numpy/doc/html/epydoc.js17
1 files changed, 15 insertions, 2 deletions
diff --git a/numpy/doc/html/epydoc.js b/numpy/doc/html/epydoc.js
index b5b2ddc40..e787dbcf4 100644
--- a/numpy/doc/html/epydoc.js
+++ b/numpy/doc/html/epydoc.js
@@ -17,8 +17,11 @@ function toggle_private() {
if (elts[i].className == "private") {
elts[i].style.display = ((cmd && cmd.substr(0,4)=="hide")?"none":"block");
}
+ else if (elts[i].className == "public") {
+ elts[i].style.display = ((cmd && cmd.substr(0,4)=="hide")?"block":"none");
+ }
}
- // Update all table rowss containing private objects. Note, we
+ // Update all table rows containing private objects. Note, we
// use "" instead of "block" becaue IE & firefox disagree on what
// this should be (block vs table-row), and "" just gives the
// default for both browsers.
@@ -33,7 +36,7 @@ function toggle_private() {
for(var i=0; i<elts.length; i++) {
if (elts[i].className == "private") {
elts[i].style.display = ((cmd && cmd.substr(0,4)=="hide")?
- "none":"list-item");
+ "none":"");
}
}
// Update all list items containing private objects.
@@ -46,6 +49,16 @@ function toggle_private() {
// Set a cookie to remember the current option.
document.cookie = "EpydocPrivate="+cmd;
}
+function show_private() {
+ var elts = document.getElementsByTagName("a");
+ for(var i=0; i<elts.length; i++) {
+ if (elts[i].className == "privatelink") {
+ cmd = elts[i].innerHTML;
+ if (cmd && cmd.substr(0,4)=="show")
+ toggle_private();
+ }
+ }
+ }
function getCookie(name) {
var dc = document.cookie;
var prefix = name + "=";