From 7e89ce0dcd695b181af3c043c6acc418d6e865db Mon Sep 17 00:00:00 2001 From: Andy Joslin Date: Mon, 10 Mar 2014 12:24:08 -0600 Subject: [PATCH] docs: fixes for parent, link tags --- docs/inline-tag-defs/link.js | 2 +- docs/tag-defs/parent.js | 2 +- docs/templates/api/api.template.html | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/inline-tag-defs/link.js b/docs/inline-tag-defs/link.js index d2d87ca809..deff37215e 100644 --- a/docs/inline-tag-defs/link.js +++ b/docs/inline-tag-defs/link.js @@ -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 '' + linkInfo.title + ''; diff --git a/docs/tag-defs/parent.js b/docs/tag-defs/parent.js index 52c0679499..17e55401f9 100644 --- a/docs/tag-defs/parent.js +++ b/docs/tag-defs/parent.js @@ -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); } diff --git a/docs/templates/api/api.template.html b/docs/templates/api/api.template.html index 6c44c8470c..fb3f0a7e15 100644 --- a/docs/templates/api/api.template.html +++ b/docs/templates/api/api.template.html @@ -6,7 +6,7 @@ <@ if doc.docType == "directive" @>

<$ doc.name | dashCase $> <@ if doc.parent @> -(must have a parent <$ doc.parent | dashCase $>) +(must have a parent <$ doc.parent $>) <@ endif @>

<@ else @>