From 2cb2f687f8102aed626ad406cd865e1b24f083a7 Mon Sep 17 00:00:00 2001 From: Quddus Chong Date: Fri, 4 Sep 2015 14:45:46 -0700 Subject: [PATCH] docs: Removed navigation heading for Develop > Preview Change-Id: Id6b86346bf5bcb562c167d48f2e8b3b73d94e0de --- .../droiddoc/templates-sdk/assets/js/docs.js | 37 +------------------ .../templates-sdk/components/masthead.cs | 3 -- .../droiddoc/templates-sdk/customizations.cs | 25 ++----------- tools/droiddoc/templates-sdk/docpage.cs | 3 +- 4 files changed, 6 insertions(+), 62 deletions(-) diff --git a/tools/droiddoc/templates-sdk/assets/js/docs.js b/tools/droiddoc/templates-sdk/assets/js/docs.js index d88c0e629..1550b6175 100644 --- a/tools/droiddoc/templates-sdk/assets/js/docs.js +++ b/tools/droiddoc/templates-sdk/assets/js/docs.js @@ -202,8 +202,6 @@ $(document).ready(function() { subNavEl.find("li.google > a").addClass("selected"); } else if ($("body").hasClass("samples")) { subNavEl.find("li.samples > a").addClass("selected"); - } else if ($("body").hasClass("preview")) { - subNavEl.find("li.preview > a").addClass("selected"); } else { parentNavEl.removeClass('has-subnav').addClass("selected"); } @@ -2361,37 +2359,6 @@ function search_changed(e, kd, toroot) } } - // Search for Preview Guides - for (var i=0; i= 0; j--) { - // it matches a tag - if (s.keywords[j].toLowerCase().indexOf(queryStr) == 0) { - matched = true; - s.matched_tag = j + 1; // add 1 to index position - } - } - // Check if query matches the doc title, but only for current language - if (s.lang == currentLang) { - // if query matches the doc title - if (s.title.toLowerCase().indexOf(queryStr) == 0) { - matched = true; - s.matched_title = 1; - } - } - if (matched) { - gDocsMatches[matchedCountDocs] = s; - matchedCountDocs++; - } - } - // Rank/sort all the matched pages rank_autocomplete_doc_results(text, gDocsMatches); } @@ -3747,7 +3714,7 @@ function showSamples() { return $el; } - + function createResponsiveFlowColumn(cardSize) { var cardWidth = parseInt(cardSize.match(/(\d+)/)[1], 10); var column = $('
').addClass('col-' + (cardWidth / 3) + 'of6'); @@ -3788,7 +3755,7 @@ function showSamples() { var cardSize = cardSizes[j++ % cardSizes.length]; cardSize = cardSize.replace(/^\s+|\s+$/,''); - + var column = createResponsiveFlowColumn(cardSize).appendTo(cardParent); // A stack has a third dimension which is the number of stacked items diff --git a/tools/droiddoc/templates-sdk/components/masthead.cs b/tools/droiddoc/templates-sdk/components/masthead.cs index 838ddbe28..fc39cf7df 100644 --- a/tools/droiddoc/templates-sdk/components/masthead.cs +++ b/tools/droiddoc/templates-sdk/components/masthead.cs @@ -230,9 +230,6 @@ Samples -
  • - Preview -
  • diff --git a/tools/droiddoc/templates-sdk/customizations.cs b/tools/droiddoc/templates-sdk/customizations.cs index aaef8edfa..cf9534e0e 100644 --- a/tools/droiddoc/templates-sdk/customizations.cs +++ b/tools/droiddoc/templates-sdk/customizations.cs @@ -10,7 +10,7 @@ def:fullpage() ?>
    -
    @@ -79,23 +79,6 @@ def:googleplay_nav() ?> -
    -
    - -
    -
    - -
    -
    -
    - -
    @@ -297,7 +280,7 @@ def:google_nav() ?>