Skip to content

Commit e0b0406

Browse files
Merge pull request #354 from ryanseys/link-to-python
Add a dropdown and link to python docs
2 parents c7be478 + 653a756 commit e0b0406

3 files changed

Lines changed: 34 additions & 1 deletion

File tree

docs/site/components/subpage/subpage-directive.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ angular
1616
} else {
1717
$scope.isActiveUrl = function (url) {
1818
return $location.path() === url.replace('#', '');
19-
}
19+
};
2020
}
2121
}
2222
};

docs/site/components/subpage/subpage.html

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,23 @@ <h1 class="logo">
66
<span class="gcloud">gcloud</span>
77
</a>
88
</h1>
9+
<nav class="main-nav" ng-class="{ open: showNavDropdown }">
10+
<div class="nav-current" ng-click="showNavDropdown = !showNavDropdown">Node.js</div>
11+
<ul class="menu">
12+
<li>
13+
<a href="#" title="Node.js docs page">
14+
<img src="site/img/icon-lang-nodejs-white.svg" alt="Node.js icon" class="menu-icon">
15+
Node.js
16+
</a>
17+
</li>
18+
<li>
19+
<a href="https://googlecloudplatform.github.io/gcloud-python" title="Python docs page">
20+
<img src="site/img/icon-lang-python.svg" alt="Python icon" class="menu-icon">
21+
Python
22+
</a>
23+
</li>
24+
</ul>
25+
</nav>
926
</header>
1027

1128
<header ng-if="headerTemplateUrl" ng-include="headerTemplateUrl"></header>
Lines changed: 16 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)