diff options
| author | Shyam Seshadri | 2013-03-15 22:17:08 +0530 |
|---|---|---|
| committer | Misko Hevery | 2013-03-15 20:56:13 -0700 |
| commit | f197e391c1148398825bfd1af8d000d351821c97 (patch) | |
| tree | 27e245706bc95d47cfd06ac8f8112f9e724f2d0c /docs/src/ngdoc.js | |
| parent | 1c1cd4fdf6b6d7511c7b8dc61b8042011dc54830 (diff) | |
| download | angular.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.js | 3 |
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); } |
