From b26be092f472dd0ecf0c5b23909f0166d18b074b Mon Sep 17 00:00:00 2001 From: Andy Joslin Date: Thu, 13 Mar 2014 07:25:37 -0600 Subject: [PATCH] docs: simplify templates more --- docs/templates/api/api.template.html | 14 +++++ docs/templates/api/input.template.html | 12 ----- docs/templates/api/module.template.html | 70 ------------------------- docs/templates/base.template.html | 16 ------ docs/templates/lib/yaml.template.html | 1 + docs/templates/overview.template.html | 5 -- docs/templates/pages-data.template.html | 9 ++-- docs/templates/tutorial.template.html | 1 - gulpfile.js | 4 +- 9 files changed, 23 insertions(+), 109 deletions(-) delete mode 100644 docs/templates/api/input.template.html delete mode 100644 docs/templates/api/module.template.html delete mode 100644 docs/templates/base.template.html delete mode 100644 docs/templates/overview.template.html delete mode 100644 docs/templates/tutorial.template.html diff --git a/docs/templates/api/api.template.html b/docs/templates/api/api.template.html index 243e824f96..13a3fe685c 100644 --- a/docs/templates/api/api.template.html +++ b/docs/templates/api/api.template.html @@ -1,3 +1,17 @@ +--- +<@ include "lib/yaml.template.html" @> +title: "<@ if doc.docType == "directive" @><$ doc.name | dashCase $><@ else @><$ doc.name $><@ endif @>" +header_sub_title: "<$ doc.docType | capital $> in module <$ doc.module $>" +doc: "<$ doc.name $>" +docType: "<$ doc.docType $>" +--- + +
+ + Improve this doc + +
+ <@ extends "base.template.html" @> <@ block content @> diff --git a/docs/templates/api/input.template.html b/docs/templates/api/input.template.html deleted file mode 100644 index ed98e4ec4b..0000000000 --- a/docs/templates/api/input.template.html +++ /dev/null @@ -1,12 +0,0 @@ -<@ include "lib/macros.html" -@> -<@ extends "api/directive.template.html" @> - -<@ block usage @> -

Usage

- <@ code @> - - <$ directiveParam(param.alias or param.name, param.type, '="', '"') $> - <@- endfor @>> - <@ endcode @> -<@ endblock @> diff --git a/docs/templates/api/module.template.html b/docs/templates/api/module.template.html deleted file mode 100644 index 139e8ac78e..0000000000 --- a/docs/templates/api/module.template.html +++ /dev/null @@ -1,70 +0,0 @@ -<@ extends "base.template.html" @> - -<@ block content @> -

- <@ if doc.title @><$ doc.title | marked $><@ else @><$ doc.name | code $><@ endif @> -

- -<$ doc.description | marked $> - -<@ if doc.name != 'ng' and doc.name != 'auto' @> -

Installation

- -

First include <$ doc.packageFile | code $> in your HTML:

- - <@ code @> -