diff options
| author | Shyam Seshadri | 2013-03-15 22:17:08 +0530 |
|---|---|---|
| committer | Misko Hevery | 2013-03-15 20:56:22 -0700 |
| commit | 70cf0a389f7ed60edc248e302a5201b283c0a213 (patch) | |
| tree | ffdbeb60b64317a73f4cc7257faaea79dc751612 | |
| parent | 7d4ccea579b0cf6fc39462ef6a7acab5aa675175 (diff) | |
| download | angular.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
| -rwxr-xr-x | docs/src/gen-docs.js | 2 | ||||
| -rw-r--r-- | docs/src/ngdoc.js | 3 | ||||
| -rw-r--r-- | docs/src/templates/css/docs.css | 4 |
3 files changed, 7 insertions, 2 deletions
diff --git a/docs/src/gen-docs.js b/docs/src/gen-docs.js index 992c4527..b05569dd 100755 --- a/docs/src/gen-docs.js +++ b/docs/src/gen-docs.js @@ -32,7 +32,7 @@ writer.makeDir('build/docs/', true).then(function() { }); }).then(function printStats() { console.log('DONE. Generated ' + docs.length + ' pages in ' + (now()-start) + 'ms.' ); -}).done(); +}); function writeTheRest(writesFuture) { 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); } diff --git a/docs/src/templates/css/docs.css b/docs/src/templates/css/docs.css index 53478e33..70d98a3c 100644 --- a/docs/src/templates/css/docs.css +++ b/docs/src/templates/css/docs.css @@ -86,6 +86,10 @@ img.AngularJS-small { /* Content */ /* =============================== */ +.improve-docs { + float: right; +} + .hint { font-size: .7em; color: #c0c0c0; |
