Merge "Generate reference nav to _book.yaml for devsite builds." into mnc-mr-docs am: dc55c97296 am: 16c30a64a6
am: f1929d419b
* commit 'f1929d419b5ac003d50e4a2efc18bbeadf81245b':
Generate reference nav to _book.yaml for devsite builds.
Change-Id: Ifda2c3062588bfb8205e59dfcc3d909a62334ddc
diff --git a/tools/droiddoc/templates-sdk-dev/yaml_navtree.cs b/tools/droiddoc/templates-sdk-dev/yaml_navtree.cs
new file mode 100644
index 0000000..b4a6406
--- /dev/null
+++ b/tools/droiddoc/templates-sdk-dev/yaml_navtree.cs
@@ -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 ?>