OSDN Git Service

Adding excludeFromSuggestions, wear preview project path, and android wear/tv/auto...
authorAmanda Kassay <akassay@google.com>
Wed, 5 Oct 2016 21:32:49 +0000 (17:32 -0400)
committerAmanda Kassay <akassay@google.com>
Wed, 5 Oct 2016 22:31:22 +0000 (22:31 +0000)
b/31771704 b/31903798 b/31773716

Staged:
https://android-dot-devsite.googleplex.com/about/versions/nougat/index.html
https://android-dot-devsite.googleplex.com/index.html
https://android-dot-devsite.googleplex.com/wear/preview/index.html

Change-Id: Idf9893f9d108c26038ead06c84de771e21b89f37

tools/droiddoc/templates-sdk/head_tag.cs

index 0c5bb78..dd67aa5 100644 (file)
@@ -126,8 +126,13 @@ if:devsite ?>
         elif:stories ?>/stories<?cs
         elif:analyze ?>/analyze<?cs
         else ?><?cs /if ?><?cs
-      elif:(about||versions||wear||tv||auto) ?>/about<?cs
-      elif:wearpreview ?>/wear<?cs
+      elif:(about||versions||wear||tv||auto) ?><?cs
+        if:versions ?>/about/versions<?cs
+        elif:wear ?>/wear<?cs
+        elif:tv ?>/tv<?cs
+        elif:auto ?>/auto<?cs
+        else ?>/about<?cs /if ?><?cs
+      elif:wearpreview ?>/wear/preview<?cs
       elif:work ?>/work<?cs
       elif:preview ?>/preview<?cs
       elif:design ?>/design<?cs /if ?>/_project.yaml" /><?cs
@@ -150,6 +155,9 @@ if:devsite ?>
       if:page.image ?>
   <meta name="image_path" value='<?cs var:page.image ?>' /><?cs
       /if ?><?cs
+      if:excludeFromSuggestions ?>
+  <meta name="hide_from_search_suggest" value="true" /><?cs
+      /if ?><?cs
 /if ?><?cs # END if/else devsite ?><?cs
 
   if:!devsite ?>