mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
docs: fixes for parent, link tags
This commit is contained in:
@@ -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>';
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
2
docs/templates/api/api.template.html
vendored
2
docs/templates/api/api.template.html
vendored
@@ -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 @>
|
||||
|
||||
Reference in New Issue
Block a user