diff --git a/docs/site/components/docs/docs-directives.js b/docs/site/components/docs/docs-directives.js index 0295fb30f33..3b66fe7dcc0 100644 --- a/docs/site/components/docs/docs-directives.js +++ b/docs/site/components/docs/docs-directives.js @@ -9,4 +9,18 @@ angular.module('gcloud.docs') }, true); } }; + }) + + .directive('docsCodeLink', function($compile) { + 'use strict'; + + var GITHUB_BASE = 'https://github.com/GoogleCloudPlatform/gcloud-node/blob/'; + + return { + template: '' + + '(code on GitHub)' + + '' + }; }); diff --git a/docs/site/components/docs/docs.html b/docs/site/components/docs/docs.html index 5b94f3dd272..c16b4a41d6f 100644 --- a/docs/site/components/docs/docs.html +++ b/docs/site/components/docs/docs.html @@ -120,6 +120,7 @@

ACLs

ng-hide="singleMethod && method.name !== singleMethod">

{{method.name}} +

class="permalink" ng-href="{{activeUrl + '?method=' + method.name}}"># {{method.name}} +

Parameters

@@ -147,8 +149,6 @@

Returns

Example

-
diff --git a/docs/site/css/main.css b/docs/site/css/main.css index 9332ef5880f..1444b34a997 100755 --- a/docs/site/css/main.css +++ b/docs/site/css/main.css @@ -732,7 +732,8 @@ ul { background: #F8F8F8; } -.view-code-link { +.view-code-link > a { + font-size: 80%; color: #888; }