From 9c7f9938d2bf11bd2c3f14d7bb15ec2a7c2c377b Mon Sep 17 00:00:00 2001 From: Andy Joslin Date: Mon, 10 Mar 2014 14:27:12 -0600 Subject: [PATCH] docs(parent): make parent-tag look better --- docs/tag-defs/parent.js | 5 ++++- docs/templates/api/api.template.html | 4 +++- docs/templates/api/directive.template.html | 8 ++++++-- docs/templates/pages-data.template.html | 3 +-- 4 files changed, 14 insertions(+), 6 deletions(-) diff --git a/docs/tag-defs/parent.js b/docs/tag-defs/parent.js index 17e55401f9..90725c3128 100644 --- a/docs/tag-defs/parent.js +++ b/docs/tag-defs/parent.js @@ -3,6 +3,9 @@ var _ = require('lodash'); module.exports = [{ name: 'parent', transformFn: function(doc, tag) { - return _.template('{@link ionic.directive:${description} ${description}}', tag); + return { + path: 'docs/angularjs/ionic/api/directive/' + tag.description, + name: tag.description + }; } }]; diff --git a/docs/templates/api/api.template.html b/docs/templates/api/api.template.html index fb3f0a7e15..d739130aec 100644 --- a/docs/templates/api/api.template.html +++ b/docs/templates/api/api.template.html @@ -6,7 +6,9 @@ <@ if doc.docType == "directive" @>

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

<@ else @> diff --git a/docs/templates/api/directive.template.html b/docs/templates/api/directive.template.html index 4c58353594..171add165a 100644 --- a/docs/templates/api/directive.template.html +++ b/docs/templates/api/directive.template.html @@ -4,7 +4,7 @@ <@ block additional @> <@ block usage @> -### Usage +

Usage

<@ if doc.usage @> <$ doc.usage $> <@ else @> @@ -46,9 +46,13 @@ <@- endif @> <@ endblock -@> +

API

+ <@ if doc.params @> -

API

<$ paramTable(doc.params, true) $> + <@ else @> +No options available. <@ endif @> + <@ include "lib/events.template.html" @> <@ endblock @> diff --git a/docs/templates/pages-data.template.html b/docs/templates/pages-data.template.html index 316045b5e5..f8910ab0eb 100644 --- a/docs/templates/pages-data.template.html +++ b/docs/templates/pages-data.template.html @@ -290,11 +290,10 @@ ol-b">