From f95e23deebcbc9084b49f2cf9cf513c066cdfc8e Mon Sep 17 00:00:00 2001 From: Andreas Hocevar Date: Fri, 9 May 2014 10:02:13 -0500 Subject: [PATCH 1/2] Do not hide the first word of returns --- apidoc/template/tmpl/returns.tmpl | 5 ----- 1 file changed, 5 deletions(-) diff --git a/apidoc/template/tmpl/returns.tmpl b/apidoc/template/tmpl/returns.tmpl index e23e5a2c34..b83aa5797a 100644 --- a/apidoc/template/tmpl/returns.tmpl +++ b/apidoc/template/tmpl/returns.tmpl @@ -13,17 +13,12 @@ returns.forEach(function (ret, i) { if (parentReturn !== null && name.indexOf(parentReturn.name + '.') === 0) { ret.name = isNamed ? name.substr(parentReturn.name.length + 1) : name.substr(parentReturn.name.length + 1, startSpacePos - (parentReturn.name.length + 1)); - if (!isNamed) { - ret.description = ret.description.substr(startSpacePos + 1); - } - parentReturn.subReturns = parentReturn.subReturns || []; parentReturn.subReturns.push(ret); returns[i] = null; } else { if (!isNamed) { ret.name = ret.description.substr(0, startSpacePos !== -1 ? startSpacePos : ret.description.length); - ret.description = startSpacePos !== -1 ? ret.description.substr(startSpacePos + 1) : ''; } parentReturn = ret; From 90ffde52f2823a3f45e66ea30b2a13185d718589 Mon Sep 17 00:00:00 2001 From: Andreas Hocevar Date: Fri, 9 May 2014 10:03:17 -0500 Subject: [PATCH 2/2] Make sure that links are clickable Because we set a padding of 50px on anchorable elements to make sure they are not obscured by the header, we need to raise the z-index of links so they are not obscured by these paddings. --- apidoc/template/static/styles/jaguar.css | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/apidoc/template/static/styles/jaguar.css b/apidoc/template/static/styles/jaguar.css index e0c1b9c323..7a332b2631 100644 --- a/apidoc/template/static/styles/jaguar.css +++ b/apidoc/template/static/styles/jaguar.css @@ -17,6 +17,10 @@ body { padding-top: 50px; margin-top: -50px; } +a { + position: relative; + z-index: 1; +} .navigation li { color: #888; }