From b530bd12be3159ea9847744c7d76331ca7bc2673 Mon Sep 17 00:00:00 2001 From: Ryan Seys Date: Fri, 1 May 2015 13:43:56 -0400 Subject: [PATCH] Add links to GitHub --- docs/site/components/docs/docs.html | 2 ++ docs/site/components/docs/docs.js | 5 ++++- docs/site/css/main.css | 4 ++++ 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/docs/site/components/docs/docs.html b/docs/site/components/docs/docs.html index 6be7fb5ac4c..5b94f3dd272 100644 --- a/docs/site/components/docs/docs.html +++ b/docs/site/components/docs/docs.html @@ -147,6 +147,8 @@

Returns

Example

+
diff --git a/docs/site/components/docs/docs.js b/docs/site/components/docs/docs.js index a58bdc54ce6..2de5a16a872 100644 --- a/docs/site/components/docs/docs.js +++ b/docs/site/components/docs/docs.js @@ -135,7 +135,7 @@ angular if (alias && alias.string.indexOf('module:') !== 0) { alias = alias.string; } else { - alias = false + alias = false; } return { @@ -149,6 +149,8 @@ angular }), description: $sce.trustAsHtml( formatHtml(detectLinks(detectModules(obj.description.full)))), + lineNum: obj.codeStart, + lineNumLink: obj.codeStart ? '#L' + obj.codeStart : '', params: obj.tags.filter(function(tag) { return tag.type === 'param'; }) @@ -334,6 +336,7 @@ angular $scope.activeUrl = '#' + $location.path(); $scope.singleMethod = methods.singleMethod; $scope.module = $routeParams.module; + $scope.class = $routeParams.class || 'index'; $scope.methods = methods; $scope.version = $routeParams.version; $scope.versions = versions; diff --git a/docs/site/css/main.css b/docs/site/css/main.css index 0337db8d969..9332ef5880f 100755 --- a/docs/site/css/main.css +++ b/docs/site/css/main.css @@ -732,6 +732,10 @@ ul { background: #F8F8F8; } +.view-code-link { + color: #888; +} + /* Page Title */