mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-03-16 23:30:23 +00:00
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:
parent
7d4ccea579
commit
70cf0a389f
3 changed files with 7 additions and 2 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -86,6 +86,10 @@ img.AngularJS-small {
|
|||
/* Content */
|
||||
/* =============================== */
|
||||
|
||||
.improve-docs {
|
||||
float: right;
|
||||
}
|
||||
|
||||
.hint {
|
||||
font-size: .7em;
|
||||
color: #c0c0c0;
|
||||
|
|
|
|||
Loading…
Reference in a new issue