docs: fixes for parent, link tags

This commit is contained in:
Andy Joslin
2014-03-10 12:24:08 -06:00
parent 0fe18d084e
commit 7e89ce0dcd
3 changed files with 3 additions and 3 deletions

View File

@@ -14,7 +14,7 @@ module.exports = {
var linkInfo = partialNames.getLink(uri, title, doc);
if ( !linkInfo.valid ) {
log.warn(linkInfo.error);
log.warn(linkInfo.error, 'in', doc.relativePath + '#' + doc.name);
}
return '<a href="/docs/angularjs/' + linkInfo.url + '">' + linkInfo.title + '</a>';

View File

@@ -1,7 +1,7 @@
var _ = require('lodash');
module.exports = [{
name: 'parent',
name: 'parent',
transformFn: function(doc, tag) {
return _.template('{@link ionic.directive:${description} ${description}}', tag);
}

View File

@@ -6,7 +6,7 @@
<@ if doc.docType == "directive" @>
<h2><$ doc.name | dashCase $>
<@ if doc.parent @>
<small>(must have a parent <$ doc.parent | dashCase $>)</small>
<small>(must have a parent <$ doc.parent $>)</small>
<@ endif @>
</h2>
<@ else @>