From 7c22c9a45ceb44d5c7b4237b89e4227acd839374 Mon Sep 17 00:00:00 2001 From: "smain@google.com" Date: Fri, 10 Apr 2015 20:38:47 -0700 Subject: skeleton structure for NDK site Change-Id: Id9f490f69231c9ab0e846d0e983969a14c67a497 --- tools/droiddoc/templates-ndk/assets/js/docs.js | 10 ++ .../droiddoc/templates-ndk/components/masthead.cs | 156 ++------------------- tools/droiddoc/templates-ndk/customizations.cs | 60 ++++++-- tools/droiddoc/templates-ndk/docpage.cs | 26 +--- tools/droiddoc/templates-ndk/head_tag.cs | 6 - 5 files changed, 76 insertions(+), 182 deletions(-) diff --git a/tools/droiddoc/templates-ndk/assets/js/docs.js b/tools/droiddoc/templates-ndk/assets/js/docs.js index 7f4be4e..192d219 100644 --- a/tools/droiddoc/templates-ndk/assets/js/docs.js +++ b/tools/droiddoc/templates-ndk/assets/js/docs.js @@ -219,6 +219,16 @@ $(document).ready(function() { $("#nav-x li.google a").addClass("selected"); } else if ($("body").hasClass("samples")) { $("#nav-x li.samples a").addClass("selected"); + } else if (rootDir == "ndk") { + if ($("body").hasClass("guide")) { + $("#nav-x li.guide a").addClass("selected"); + } else if ($("body").hasClass("samples")) { + $("#nav-x li.samples a").addClass("selected"); + } else if ($("body").hasClass("downloads")) { + $("#nav-x li.downloads a").addClass("selected"); + } else if ($("body").hasClass("reference")) { + $("#nav-x li.reference a").addClass("selected"); + } } // highlight Distribute tab diff --git a/tools/droiddoc/templates-ndk/components/masthead.cs b/tools/droiddoc/templates-ndk/components/masthead.cs index 56a0d5f..01d0e55 100644 --- a/tools/droiddoc/templates-ndk/components/masthead.cs +++ b/tools/droiddoc/templates-ndk/components/masthead.cs @@ -65,171 +65,33 @@ Quicknav - + - - + - - -
- -
- - - - - - - - - - - - - - + diff --git a/tools/droiddoc/templates-ndk/customizations.cs b/tools/droiddoc/templates-ndk/customizations.cs index ea16501..0c640de 100644 --- a/tools/droiddoc/templates-ndk/customizations.cs +++ b/tools/droiddoc/templates-ndk/customizations.cs @@ -38,12 +38,12 @@ def:tools_nav() ?> +def:ndk_guides_nav() ?>
+ include:"../../../../frameworks/base/docs/html-ndk/ndk/guides/guides_toc.cs" ?>
@@ -57,12 +57,50 @@ def:ndk2_guides_nav() ?> +def:ndk_reference_nav() ?>
+ include:"../../../../frameworks/base/docs/html-ndk/ndk/reference/reference_toc.cs" ?> + + +
+
+ + + + +
+
+
+ + + +
+
+ + + + +
+
+
+
@@ -573,6 +611,16 @@ def:custom_left_nav() ?> devsite> - guide reference samplesdistribute googleplay essentials users engage monetize disttools storiesaboutdesign trainingcourse" itemscope itemtype="http://schema.org/Article"> downloads" itemscope itemtype="http://schema.org/Article">
- - + + diff --git a/tools/droiddoc/templates-ndk/head_tag.cs b/tools/droiddoc/templates-ndk/head_tag.cs index 9f79f54..d9dca8b 100644 --- a/tools/droiddoc/templates-ndk/head_tag.cs +++ b/tools/droiddoc/templates-ndk/head_tag.cs @@ -40,12 +40,6 @@ if:android.whichdoc != 'online' ?>http: - - - - -