forked from googleapis/google-cloud-node
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: add language switcher directive + add Ruby
fixes googleapis#557 fixes googleapis#558
- Loading branch information
1 parent
8b3f0cf
commit 989d6ff
Showing
6 changed files
with
42 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
docs/site/components/language-switcher/language-switcher-directive.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
angular | ||
.module('gcloud.language-switcher', []) | ||
.directive('languageSwitcher', function() { | ||
'use strict'; | ||
|
||
return { | ||
templateUrl: 'site/components/language-switcher/language-switcher.html', | ||
transclude: true, | ||
|
||
controller: function($scope) { | ||
$scope.showNavDropdown = false; | ||
} | ||
}; | ||
}); |
23 changes: 23 additions & 0 deletions
23
docs/site/components/language-switcher/language-switcher.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<nav class="main-nav" ng-class="{ open: showNavDropdown }"> | ||
<div class="nav-current" ng-click="showNavDropdown = !showNavDropdown">Node.js</div> | ||
<ul class="menu"> | ||
<li> | ||
<a href="#" title="gcloud-node Documentation"> | ||
<img src="site/img/icon-lang-nodejs-white.svg" alt="gcloud-node" class="menu-icon"> | ||
Node.js | ||
</a> | ||
</li> | ||
<li> | ||
<a href="https://googlecloudplatform.github.io/gcloud-python" title="gcloud-python Documentation"> | ||
<img src="site/img/icon-lang-python.svg" alt="gcloud-python" class="menu-icon"> | ||
Pythons | ||
</a> | ||
</li> | ||
<li> | ||
<a href="https://googlecloudplatform.github.io/gcloud-ruby" title="gcloud-ruby Documentation"> | ||
<img src="site/img/icon-lang-ruby.svg" alt="gcloud-ruby" class="menu-icon"> | ||
Ruby | ||
</a> | ||
</li> | ||
</ul> | ||
</nav> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters