Generate reference nav to _book.yaml for devsite builds.

Change-Id: Iea0e1031b0d757664b8994096010dd92b98ca883
This commit is contained in:
Dirk Dougherty 2016-04-29 16:13:06 -07:00
parent cdb27514f9
commit ba8230849d
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 ?>