Merge "Generate reference nav to _book.yaml for devsite builds." into mnc-mr-docs

am: dc55c97296

* commit 'dc55c97296b0cc7d50d56013d417444c9b012ce2':
  Generate reference nav to _book.yaml for devsite builds.

Change-Id: Id90b7d082e780530943f2a9e25f42edbc634658d
This commit is contained in:
Dirk Dougherty 2016-04-29 23:49:43 +00:00 committed by android-build-merger
commit 16c30a64a6
1 changed files with 14 additions and 0 deletions

View File

@ -0,0 +1,14 @@
<?cs
# print out the yaml nav for the reference docs, only printing the title,
path, and status_text (API level) for each package.
?>
reference:<?cs
each:page = docs.pages?><?cs
if:page.type == "package"?>
- title: <?cs var:page.label ?>
path: <?cs var:page.link ?>
status_text: apilevel-<?cs var:page.apilevel ?><?cs
/if?><?cs
/each ?>