Skip to content
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.

Commit

Permalink
revert: feat(ngDocs): add links to source for API
Browse files Browse the repository at this point in the history
This reverts commit 61fb586.
  • Loading branch information
btford committed Jul 11, 2013
1 parent 3b89866 commit 2c07532
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 42 deletions.
29 changes: 0 additions & 29 deletions docs/spec/sourceLinkSpec.js

This file was deleted.

13 changes: 2 additions & 11 deletions docs/src/ngdoc.js
Original file line number Diff line number Diff line change
Expand Up @@ -274,16 +274,7 @@ Doc.prototype = {
dom.h(title(this.name), function() {

notice('deprecated', 'Deprecated API', self.deprecated);
dom.tag('a', {href: 'http://github.com/angular/angular.js/edit/master/' + self.file, class: 'improve-docs btn btn-primary'}, function(dom) {
dom.tag('i', {class:'icon-edit'}, ' ');
dom.text(' Improve this doc');
});
if (self.section === 'api') {
dom.tag('a', {href: 'http://github.com/angular/angular.js/tree/v' + gruntUtil.getVersion().number + '/' + self.file + '#L' + self.line, class: 'view-source btn btn-action'}, function(dom) {
dom.tag('i', {class:'icon-zoom-in'}, ' ');
dom.text(' View source');
});
}
dom.tag('a', {href: 'http://github.com/angular/angular.js/edit/master/' + self.file, class: 'improve-docs btn btn-primary'}, 'Improve this doc');
if (self.ngdoc != 'overview') {
dom.h('Description', self.description, dom.html);
}
Expand All @@ -306,7 +297,7 @@ Doc.prototype = {
//////////////////////////

function notice(name, legend, msg){
if (self[name] === undefined) return;
if (self[name] == undefined) return;
dom.tag('fieldset', {'class':name}, function(dom){
dom.tag('legend', legend);
dom.text(msg);
Expand Down
3 changes: 1 addition & 2 deletions docs/src/templates/css/docs.css
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,8 @@ img.AngularJS-small {
/* Content */
/* =============================== */

.improve-docs, .view-source {
.improve-docs {
float: right;
margin: 0 5px;
}

.hint {
Expand Down

0 comments on commit 2c07532

Please sign in to comment.