diff options
author | Scott Main <smain@google.com> | 2013-10-30 16:27:38 -0700 |
---|---|---|
committer | Scott Main <smain@google.com> | 2013-10-30 23:33:57 +0000 |
commit | f1435b73bd373cad0bcd06f38f458f8706e07162 (patch) | |
tree | 76cbbee5695c598328d6db6809d90140170608ae /tools/droiddoc | |
parent | 70557ee5fc71cc6b61c3a84ea28e97bd40573779 (diff) | |
download | build-f1435b73bd373cad0bcd06f38f458f8706e07162.zip build-f1435b73bd373cad0bcd06f38f458f8706e07162.tar.gz build-f1435b73bd373cad0bcd06f38f458f8706e07162.tar.bz2 |
remove the dummy sidenav from samples before populating the real list.
Also make the line numbers hidden before they get moved to avoid
some jankyness during load.
Change-Id: I11c3df6d6c7a9a2e74be938b0f0ec704e71eb8d4
(cherry picked from commit 36ea7a3d74c68d62a5d081401b887e848370f6d8)
Diffstat (limited to 'tools/droiddoc')
-rw-r--r-- | tools/droiddoc/templates-sdk/assets/css/default.css | 3 | ||||
-rw-r--r-- | tools/droiddoc/templates-sdk/assets/js/docs.js | 6 |
2 files changed, 9 insertions, 0 deletions
diff --git a/tools/droiddoc/templates-sdk/assets/css/default.css b/tools/droiddoc/templates-sdk/assets/css/default.css index 8eadac0..ba1cbac 100644 --- a/tools/droiddoc/templates-sdk/assets/css/default.css +++ b/tools/droiddoc/templates-sdk/assets/css/default.css @@ -2507,6 +2507,9 @@ pre#codesample-block { background:transparent; border:none; } +pre#codesample-block a.number { + display:none; +} pre#codesample-block .code-line:hover { background:#e7e7e7; } diff --git a/tools/droiddoc/templates-sdk/assets/js/docs.js b/tools/droiddoc/templates-sdk/assets/js/docs.js index f249a04..12221eb 100644 --- a/tools/droiddoc/templates-sdk/assets/js/docs.js +++ b/tools/droiddoc/templates-sdk/assets/js/docs.js @@ -2802,6 +2802,12 @@ function init_default_samples_navtree(toroot) { $.getScript(toRoot + 'samples_navtree_data.js', function(data, textStatus, jqxhr) { // when the file is loaded, initialize the tree if(jqxhr.status === 200) { + // hack to remove the "about the samples" link then put it back in + // after we nuke the list to remove the dummy static list of samples + var $firstLi = $("#nav.samples-nav > li:first-child").clone(); + $("#nav.samples-nav").empty(); + $("#nav.samples-nav").append($firstLi); + init_google_navtree2("nav.samples-nav", SAMPLES_NAVTREE_DATA); highlightSidenav(); resizeNav(); |