Skip to content

Commit 6bc5b9d

Browse files
committed
Merge pull request #543 from stephenplusplus/spp--docs-sidebar-consistency
docs: sidebar links should stay consistent across doc pages
2 parents a81418a + 5807392 commit 6bc5b9d

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
angular
22
.module('gcloud.subpage', ['gcloud.header'])
3-
.directive('subpage', function($parse, $location) {
3+
.directive('subpage', function($location, getLinks) {
44
'use strict';
55

66
return {
77
transclude: true,
88
templateUrl: 'site/components/subpage/subpage.html',
99
link: function($scope, elem, attrs) {
1010
$scope.title = attrs.title;
11-
$scope.links = $parse(attrs.links)();
11+
$scope.links = getLinks('master');
1212
$scope.headerTemplateUrl = attrs.headerTemplateurl;
1313

1414
if (attrs.isActiveUrl) {

docs/site/components/subpage/subpage.html

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,6 @@ <h1 class="logo">
5151
</ul>
5252

5353
<ul class="page-sections external-links">
54-
<li>
55-
<a href="#/docs" title="Documentation" ng-if="!isActiveUrl('/docs')">
56-
Documentation
57-
</a>
58-
</li>
5954
<li>
6055
<a href="#/authorization" ng-class="{ current: isActiveUrl('/authorization') }" title="Authorization">
6156
Authorization

0 commit comments

Comments
 (0)