aboutsummaryrefslogtreecommitdiffstats
path: root/docs/src/ngdoc.js
diff options
context:
space:
mode:
authorShyam Seshadri2013-03-15 22:17:08 +0530
committerMisko Hevery2013-03-15 20:56:13 -0700
commitf197e391c1148398825bfd1af8d000d351821c97 (patch)
tree27e245706bc95d47cfd06ac8f8112f9e724f2d0c /docs/src/ngdoc.js
parent1c1cd4fdf6b6d7511c7b8dc61b8042011dc54830 (diff)
downloadangular.js-f197e391c1148398825bfd1af8d000d351821c97.tar.bz2
feat(docs): Add Improve this doc link in each doc page, which links to the edit mode of that file in github
Diffstat (limited to 'docs/src/ngdoc.js')
-rw-r--r--docs/src/ngdoc.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/docs/src/ngdoc.js b/docs/src/ngdoc.js
index 37e90a15..f8f6cdf5 100644
--- a/docs/src/ngdoc.js
+++ b/docs/src/ngdoc.js
@@ -272,8 +272,9 @@ Doc.prototype = {
self = this;
dom.h(title(this.name), function() {
- notice('deprecated', 'Deprecated API', self.deprecated);
+ 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'}, 'Improve this doc');
if (self.ngdoc != 'overview') {
dom.h('Description', self.description, dom.html);
}