Skip to content

Commit

Permalink
Fix googleapis#563 - Add breadcrumbs to the header.
Browse files Browse the repository at this point in the history
  • Loading branch information
jgeewax committed May 12, 2015
1 parent c1f135f commit aedfe86
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/site/components/docs/docs.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script id="docs-header.html" type="text/ng-template">
<header header title="Node.js">
<header header title="{{pageTitle}}">
<div class="row row--right">
<div class="col margin-vertical">
<a href="https://github.com/GoogleCloudPlatform/gcloud-node/issues/new"
Expand Down
17 changes: 16 additions & 1 deletion docs/site/components/docs/docs.js
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,22 @@ angular
});
}

$scope.pageTitle = 'Node.js';
// Set the page title (used in the header).
var title;
if ($routeParams.class) {
title = $routeParams.module + ' » ' + $routeParams.class;
} else {
title = $routeParams.module || 'Node.js';
}
// Capitalize words.
if (title) {
title = title.replace(/(?:^|\s)\S/g, function(a) {
return a.toUpperCase();
});
}


$scope.pageTitle = title;
$scope.showReference = true;
$scope.activeUrl = '#' + $location.path();
$scope.singleMethod = methods.singleMethod;
Expand Down

0 comments on commit aedfe86

Please sign in to comment.