feat(docs): Add Improve this doc link in each doc page, which links to the edit mode of that file in github

This commit is contained in:
Shyam Seshadri 2013-03-15 22:17:08 +05:30 committed by Misko Hevery
parent 7d4ccea579
commit 70cf0a389f
3 changed files with 7 additions and 2 deletions

View file

@ -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) {

View file

@ -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);
}

View file

@ -86,6 +86,10 @@ img.AngularJS-small {
/* Content */
/* =============================== */
.improve-docs {
float: right;
}
.hint {
font-size: .7em;
color: #c0c0c0;