forked from openkylin/platform_build
add the 'reference only' header design as a condition to the normal templates.
also add override for implementation to the to-root link path. bug: 27667787 Change-Id: I79892ddb7c5053d5325afcd50016c726b34e1361
This commit is contained in:
parent
8111146ea3
commit
9a12a2f82f
|
@ -140,7 +140,7 @@
|
||||||
</nav>
|
</nav>
|
||||||
<!-- end NDK navigation-->
|
<!-- end NDK navigation-->
|
||||||
<?cs else ?>
|
<?cs else ?>
|
||||||
<!-- Navigation-->
|
<!-- Standard DAC Navigation-->
|
||||||
<nav class="dac-nav">
|
<nav class="dac-nav">
|
||||||
<div class="dac-nav-dimmer" data-dac-toggle-nav></div>
|
<div class="dac-nav-dimmer" data-dac-toggle-nav></div>
|
||||||
|
|
||||||
|
@ -151,8 +151,32 @@
|
||||||
srcset="<?cs var:toroot ?>assets/images/android_logo@2x.png 2x"
|
srcset="<?cs var:toroot ?>assets/images/android_logo@2x.png 2x"
|
||||||
width="32" height="36" alt="Android" /> Developers
|
width="32" height="36" alt="Android" /> Developers
|
||||||
</a>
|
</a>
|
||||||
|
</li><?cs
|
||||||
|
#
|
||||||
|
# For the reference only docs, include just one tab
|
||||||
|
#
|
||||||
|
?><?cs if:referenceonly ?>
|
||||||
|
<li class="dac-nav-item develop">
|
||||||
|
<a class="dac-nav-link has-subnav" href="<?cs var:toroot ?>reference/packages.html" zh-tw-lang="參考資源"
|
||||||
|
zh-cn-lang="参考" ru-lang="Справочник" ko-lang="참조문서" ja-lang="リファレンス"
|
||||||
|
es-lang="Referencia">API Reference!!</a>
|
||||||
|
<div class="dac-nav-secondary develop">
|
||||||
|
<h1 style="font-size: 20px; line-height: 24px; margin: 20px; color:#444"
|
||||||
|
><?cs
|
||||||
|
if:sdk.preview
|
||||||
|
?>Android <?cs var:sdk.codename ?>
|
||||||
|
Preview <?cs var:sdk.preview.version ?><?cs
|
||||||
|
else
|
||||||
|
?>Android <?cs var:sdk.version ?>
|
||||||
|
r<?cs var:sdk.rel.id ?><?cs
|
||||||
|
/if ?></h1>
|
||||||
|
</div>
|
||||||
</li>
|
</li>
|
||||||
<li class="dac-nav-item home">
|
<?cs else ?><?cs
|
||||||
|
#
|
||||||
|
# End reference only docs, now the online DAC tabs...
|
||||||
|
#
|
||||||
|
?><li class="dac-nav-item home">
|
||||||
<a class="dac-nav-link dac-visible-mobile-block" href="<?cs var:toroot ?>index.html">Home</a>
|
<a class="dac-nav-link dac-visible-mobile-block" href="<?cs var:toroot ?>index.html">Home</a>
|
||||||
<ul class="dac-nav-secondary about">
|
<ul class="dac-nav-secondary about">
|
||||||
<li class="dac-nav-item about">
|
<li class="dac-nav-item about">
|
||||||
|
@ -262,7 +286,12 @@
|
||||||
<a class="dac-nav-link" href="<?cs var:toroot ?>distribute/stories/index.html">Stories</a>
|
<a class="dac-nav-link" href="<?cs var:toroot ?>distribute/stories/index.html">Stories</a>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li><?cs
|
||||||
|
/if ?><?cs
|
||||||
|
#
|
||||||
|
# End if/else reference only docs
|
||||||
|
#
|
||||||
|
?>
|
||||||
</ul>
|
</ul>
|
||||||
</nav>
|
</nav>
|
||||||
<!-- end navigation-->
|
<!-- end navigation-->
|
||||||
|
|
|
@ -33,4 +33,12 @@
|
||||||
<?cs set:count = count + #1 ?>
|
<?cs set:count = count + #1 ?>
|
||||||
<?cs /each ?>
|
<?cs /each ?>
|
||||||
</table>
|
</table>
|
||||||
<?cs /def ?>
|
<?cs /def ?>
|
||||||
|
|
||||||
|
<?cs def:doc_root_override() ?><?cs
|
||||||
|
if:referenceonly
|
||||||
|
?>https://developer.android.com/<?cs
|
||||||
|
else ?><?cs
|
||||||
|
var:toroot ?><?cs
|
||||||
|
/if ?><?cs
|
||||||
|
/def ?>
|
Loading…
Reference in New Issue