Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #563 - Add breadcrumbs to the header. #585

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
11 changes: 10 additions & 1 deletion docs/site/components/docs/docs.js
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,16 @@ angular
});
}

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

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