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:22 -0700
commit70cf0a389f7ed60edc248e302a5201b283c0a213 (patch)
treeffdbeb60b64317a73f4cc7257faaea79dc751612 /docs/src/ngdoc.js
parent7d4ccea579b0cf6fc39462ef6a7acab5aa675175 (diff)
downloadangular.js-70cf0a389f7ed60edc248e302a5201b283c0a213.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);
}