aboutsummaryrefslogtreecommitdiffstats
path: root/docs/src
diff options
context:
space:
mode:
Diffstat (limited to 'docs/src')
-rwxr-xr-xdocs/src/gen-docs.js2
-rw-r--r--docs/src/ngdoc.js3
-rw-r--r--docs/src/templates/css/docs.css4
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;