From c32eedde76977678587d2cb66d1d85f90d6144d3 Mon Sep 17 00:00:00 2001 From: Tim Lancina Date: Thu, 3 Sep 2015 21:19:15 -0500 Subject: [PATCH] have v2 doc template match v1 doc format --- scripts/docs/templates/common.template.html | 50 +++++++++++++++++++++ 1 file changed, 50 insertions(+) diff --git a/scripts/docs/templates/common.template.html b/scripts/docs/templates/common.template.html index 0c7bc6dfb0..281c46b68d 100644 --- a/scripts/docs/templates/common.template.html +++ b/scripts/docs/templates/common.template.html @@ -1,3 +1,11 @@ +--- +<@ include "lib/yaml.template.html" @> +title: "<@ if doc.docType == "directive" @><$ doc.name | dashCase $><@ else @><$ doc.name $><@ endif @>" +header_sub_title: "<$ doc.docType $> in module <$ doc.module $>" +doc: "<$ doc.name $>" +docType: "<$ doc.docType $>" +--- + <@ macro paramList(paramData) -@> <@- if paramData -@>( <@- for param in paramData -@> @@ -10,6 +18,47 @@ <@- endmacro -@> <@ block body @> + + +<@ block content @> + +<@ block header @> +

+<@ if doc.docType == "directive" @> + <$ doc.name | dashCase $> +<@ else @> + <$ doc.name $> +<@ endif @> +<@ if doc.parent @> +
+ + Child of <$ doc.parent $> + +<@ endif @> +<@ if doc.delegate @> +
+ + Delegate: <$ doc.delegate $> + +<@ endif @> +

+ +<@ if doc.codepen @> +{% include codepen.html id="<$ doc.codepen $>" %} +<@ endif @> +<@ endblock @> + +<@ block description @> +<$ doc.description $> +<@ endblock @>

<$ doc.name $> <$ doc.docType $>

exported from {@link <$ doc.moduleDoc.id $> <$doc.moduleDoc.id $> }
defined in <$ githubViewLink(doc) $> @@ -49,3 +98,4 @@ defined in <$ githubViewLink(doc) $> <@- endif -@> <@ endblock @> +<@ endblock @>