From 3c74e04e6bb48ca4d965e692a331718f2affba2d Mon Sep 17 00:00:00 2001 From: Stephen Sawchuk Date: Wed, 24 Jun 2015 15:09:14 -0400 Subject: [PATCH] docs: use hambuger for navigation --- .../language-switcher-directive.js | 5 +- .../language-switcher/language-switcher.html | 74 +++++++++- docs/site/components/subpage/subpage.html | 8 +- docs/site/css/main.css | 134 ++++++++++++------ 4 files changed, 167 insertions(+), 54 deletions(-) diff --git a/docs/site/components/language-switcher/language-switcher-directive.js b/docs/site/components/language-switcher/language-switcher-directive.js index 0b2a3d68b7c..3a704d8dda9 100644 --- a/docs/site/components/language-switcher/language-switcher-directive.js +++ b/docs/site/components/language-switcher/language-switcher-directive.js @@ -1,13 +1,14 @@ angular .module('gcloud.language-switcher', []) - .directive('languageSwitcher', function() { + .directive('languageSwitcher', function($parse) { 'use strict'; return { templateUrl: 'site/components/language-switcher/language-switcher.html', transclude: true, - controller: function($scope) { + link: function($scope, elem, attrs) { + $scope.extraLinks = $parse(attrs.extraLinks)($scope); $scope.showNavDropdown = false; } }; diff --git a/docs/site/components/language-switcher/language-switcher.html b/docs/site/components/language-switcher/language-switcher.html index f20fd90b448..9dfb1238312 100644 --- a/docs/site/components/language-switcher/language-switcher.html +++ b/docs/site/components/language-switcher/language-switcher.html @@ -1,6 +1,78 @@