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

Commit 2c07532

Browse files
committed
revert: feat(ngDocs): add links to source for API
This reverts commit 61fb586.
1 parent 3b89866 commit 2c07532

File tree

3 files changed

+3
-42
lines changed

3 files changed

+3
-42
lines changed

docs/spec/sourceLinkSpec.js

-29
This file was deleted.

docs/src/ngdoc.js

+2-11
Original file line numberDiff line numberDiff line change
@@ -274,16 +274,7 @@ Doc.prototype = {
274274
dom.h(title(this.name), function() {
275275

276276
notice('deprecated', 'Deprecated API', self.deprecated);
277-
dom.tag('a', {href: 'http://github.com/angular/angular.js/edit/master/' + self.file, class: 'improve-docs btn btn-primary'}, function(dom) {
278-
dom.tag('i', {class:'icon-edit'}, ' ');
279-
dom.text(' Improve this doc');
280-
});
281-
if (self.section === 'api') {
282-
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) {
283-
dom.tag('i', {class:'icon-zoom-in'}, ' ');
284-
dom.text(' View source');
285-
});
286-
}
277+
dom.tag('a', {href: 'http://github.com/angular/angular.js/edit/master/' + self.file, class: 'improve-docs btn btn-primary'}, 'Improve this doc');
287278
if (self.ngdoc != 'overview') {
288279
dom.h('Description', self.description, dom.html);
289280
}
@@ -306,7 +297,7 @@ Doc.prototype = {
306297
//////////////////////////
307298

308299
function notice(name, legend, msg){
309-
if (self[name] === undefined) return;
300+
if (self[name] == undefined) return;
310301
dom.tag('fieldset', {'class':name}, function(dom){
311302
dom.tag('legend', legend);
312303
dom.text(msg);

docs/src/templates/css/docs.css

+1-2
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,8 @@ img.AngularJS-small {
8686
/* Content */
8787
/* =============================== */
8888

89-
.improve-docs, .view-source {
89+
.improve-docs {
9090
float: right;
91-
margin: 0 5px;
9291
}
9392

9493
.hint {

0 commit comments

Comments
 (0)