diff --git a/scripts/docs/templates/api/api.template.html b/scripts/docs/templates/api/api.template.html deleted file mode 100644 index b371759d5f..0000000000 --- a/scripts/docs/templates/api/api.template.html +++ /dev/null @@ -1,79 +0,0 @@ ---- -<@ 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 $>" ---- - -
- - View Source - -   - - Improve this doc - -
- -<@ 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 @> - -<@ if doc.deprecated @> -
- Deprecated API - <$ doc.deprecated| marked $> -
-<@ endif @> - -<@ block dependencies @> -<@- if doc.requires @> -

Dependencies

- -<@ endif -@> -<@ endblock @> - -<@ block additional @> -<@ endblock @> - -<@ block examples @> -<@- if doc.examples @> -

Example

-<@- for example in doc.examples -@> - <$ example | marked $> -<@- endfor -@> -<@ endif -@> -<@ endblock @> - -<@ endblock @> diff --git a/scripts/docs/templates/api/componentGroup.template.html b/scripts/docs/templates/api/componentGroup.template.html deleted file mode 100644 index 5da50ab340..0000000000 --- a/scripts/docs/templates/api/componentGroup.template.html +++ /dev/null @@ -1,26 +0,0 @@ ---- -<@ include "lib/yaml.template.html" @> -title: "<@ if doc.title @><$ doc.title $><@ elif doc.module @><$ doc.groupType | title $>s in module ionic<@ else @>Pages<@ endif @>" -header_sub_title: "<$ doc.components.length $> <$ doc.groupType $>s" -doc: "<$ doc.groupType $>" -docType: "<$ doc.groupType $>" ---- - -<@ block content @> - -<$ doc.description $> - - - - - - - <@ for page in doc.components @> - - - - - <@ endfor @> -
NameDescription
<$ page.id | link(page.name, page) $><$ page.description | firstParagraph | marked $>
- -<@ endblock @> diff --git a/scripts/docs/templates/api/controller.template.html b/scripts/docs/templates/api/controller.template.html deleted file mode 100644 index f7c24b9b0b..0000000000 --- a/scripts/docs/templates/api/controller.template.html +++ /dev/null @@ -1,9 +0,0 @@ -<@ extends "api/object.template.html" @> - -<@ block related_components @> - <@ if doc.providerDoc -@> -
  • - - <$ doc.providerDoc.name $> -
  • - <@- endif @> -<@ endblock @> diff --git a/scripts/docs/templates/api/directive.template.html b/scripts/docs/templates/api/directive.template.html deleted file mode 100644 index 475c7d6c42..0000000000 --- a/scripts/docs/templates/api/directive.template.html +++ /dev/null @@ -1,56 +0,0 @@ -<@ include "lib/macros.html" -@> -<@ extends "api/api.template.html" @> - -<@ block additional @> - - <@ block usage @> -

    Usage

    - <@ if doc.usage @> -<$ doc.usage $> - <@ else @> - <@ if doc.restrict.element @> - - ```html - <<$ doc.name | dashCase $> - <@- for param in doc.params @> - <$ directiveParam(param.alias or param.name, param.type, '="', '"') $> - <@- endfor @>> - ... - > - ``` - <@ endif -@> - - <@- if doc.restrict.attribute -@> - - ```html - <<$ doc.element $> - <@- for param in doc.params @> - <$ directiveParam(param.name, param.type, '="', '"') $> - <@- endfor @>> - ... - > - ``` - <@ endif -@> - - <@- if doc.restrict.cssClass -@> - - ```html - <@ set sep = joiner(' ') @> - <<$ doc.element $> class=" - <@- for param in doc.params -@> - <$ sep() $><$ directiveParam(param.name, param.type, ': ', ';') $> - <@- endfor @>"> ... > - ``` - <@ endif -@> - - <@- endif @> - <@ endblock -@> - - - <@ if doc.params @> -

    API

    -<$ paramTable(doc.params, true) $> - <@ endif @> - - <@ include "lib/events.template.html" @> -<@ endblock @> diff --git a/scripts/docs/templates/api/filter.template.html b/scripts/docs/templates/api/filter.template.html deleted file mode 100644 index 4465fb1b06..0000000000 --- a/scripts/docs/templates/api/filter.template.html +++ /dev/null @@ -1,26 +0,0 @@ -<@ include "lib/macros.html" -@> -<@ extends "api/api.template.html" @> - -<@ block additional @> -

    Usage

    -

    In HTML Template Binding

    - <@ if doc.usage @> - <$ doc.usage | code $> - <@ else @> - <@ code -@> - {{ <$ doc.name $>_expression | <$ doc.name $> - <@- for param in doc.params @> : <$ param.name $><@ endfor -@> - }} - <@- endcode @> - <@ endif @> - -

    In JavaScript

    - <@ code -@> - <@- set sep = joiner(', ') -@> - $filter('<$ doc.name $>')(<@ for param in doc.params @><$ sep() $><$ param.name $><@ endfor -@>) - <@- endcode @> - - <$ paramTable(doc.params) $> - <@ include "lib/this.template.html" @> - <@ include "lib/returns.template.html" @> -<@ endblock @> diff --git a/scripts/docs/templates/api/function.template.html b/scripts/docs/templates/api/function.template.html deleted file mode 100644 index 5de46698cc..0000000000 --- a/scripts/docs/templates/api/function.template.html +++ /dev/null @@ -1 +0,0 @@ -<@ extends "api/object.template.html" @> diff --git a/scripts/docs/templates/api/object.template.html b/scripts/docs/templates/api/object.template.html deleted file mode 100644 index c602ca6b7d..0000000000 --- a/scripts/docs/templates/api/object.template.html +++ /dev/null @@ -1,28 +0,0 @@ -<@ include "lib/macros.html" -@> -<@ extends "api/api.template.html" @> - -<@ block additional @> - -<@ if doc.usage @> -## Usage -<$ doc.usage $> -<@ endif @> - - <@ if doc.params or doc.returns or doc.this or doc.kind == 'function' -@> -

    Usage

    - <@ if doc.usage @> - <$ doc.usage $> - <@ else @> - <$ functionSyntax(doc) $> - <@ endif @> - - <$ paramTable(doc.params) $> - <@ include "lib/this.template.html" @> - <@ include "lib/returns.template.html" @> - <@- endif @> - - <@ include "lib/methods.template.html" @> - <@ include "lib/events.template.html" @> - <@ include "lib/properties.template.html" @> - -<@ endblock @> diff --git a/scripts/docs/templates/api/page.template.html b/scripts/docs/templates/api/page.template.html deleted file mode 100644 index 5de46698cc..0000000000 --- a/scripts/docs/templates/api/page.template.html +++ /dev/null @@ -1 +0,0 @@ -<@ extends "api/object.template.html" @> diff --git a/scripts/docs/templates/api/provider.template.html b/scripts/docs/templates/api/provider.template.html deleted file mode 100644 index 8d5946f5b5..0000000000 --- a/scripts/docs/templates/api/provider.template.html +++ /dev/null @@ -1,9 +0,0 @@ -<@ extends "api/object.template.html" @> - -<@ block related_components @> - <@ if doc.serviceDoc -@> -
  • - - <$ doc.serviceDoc.name $> -
  • - <@- endif @> -<@ endblock @> diff --git a/scripts/docs/templates/api/service.template.html b/scripts/docs/templates/api/service.template.html deleted file mode 100644 index f7c24b9b0b..0000000000 --- a/scripts/docs/templates/api/service.template.html +++ /dev/null @@ -1,9 +0,0 @@ -<@ extends "api/object.template.html" @> - -<@ block related_components @> - <@ if doc.providerDoc -@> -
  • - - <$ doc.providerDoc.name $> -
  • - <@- endif @> -<@ endblock @> diff --git a/scripts/docs/templates/api/type.template.html b/scripts/docs/templates/api/type.template.html deleted file mode 100644 index 5de46698cc..0000000000 --- a/scripts/docs/templates/api/type.template.html +++ /dev/null @@ -1 +0,0 @@ -<@ extends "api/object.template.html" @> diff --git a/scripts/docs/templates/api/utility.template.html b/scripts/docs/templates/api/utility.template.html deleted file mode 100644 index f7c24b9b0b..0000000000 --- a/scripts/docs/templates/api/utility.template.html +++ /dev/null @@ -1,9 +0,0 @@ -<@ extends "api/object.template.html" @> - -<@ block related_components @> - <@ if doc.providerDoc -@> -
  • - - <$ doc.providerDoc.name $> -
  • - <@- endif @> -<@ endblock @> diff --git a/scripts/docs/templates/common.template.html b/scripts/docs/templates/common.template.html index 6a97f9fc4d..77d9aaccb8 100644 --- a/scripts/docs/templates/common.template.html +++ b/scripts/docs/templates/common.template.html @@ -1,5 +1,8 @@ --- -<@ include "lib/yaml.template.html" @> +layout: "v2/docs_base" +version: "<$ version.current.name $>" +versionHref: "<$ version.current.href $>" +path: "<$ doc.path $>" id: api title: "<@ if doc.docType == "directive" @><$ doc.name | dashCase $><@ else @><$ doc.name $><@ endif @>" header_sub_title: "<$ doc.docType | capital $> in module <$ doc.module $>" diff --git a/scripts/docs/templates/lib/events.template.html b/scripts/docs/templates/lib/events.template.html deleted file mode 100644 index 00eeb7f568..0000000000 --- a/scripts/docs/templates/lib/events.template.html +++ /dev/null @@ -1,25 +0,0 @@ -<@- if doc.events @> -

    Events

    - -<@ endif -@> diff --git a/scripts/docs/templates/lib/macros.html b/scripts/docs/templates/lib/macros.html deleted file mode 100644 index 38ebb70070..0000000000 --- a/scripts/docs/templates/lib/macros.html +++ /dev/null @@ -1,54 +0,0 @@ -<@ macro typeList(types) -@> - <@ set separator = joiner("|") @> - <@ for type in types @><$ separator() $><$ type | code $><@ endfor @> -<@- endmacro -@> - -<@ macro paramTable(params, isDirective) @> - - - - - - - - - - <@ for param in params @> - - - - - - <@ endfor @> - -
    <@ if isDirective @>Attr<@ else @>Param<@ endif @>TypeDetails
    - <$ param.name $> - <@ if param.alias @>| <$ param.alias $><@ endif @> - <@ if param.type.optional @>
    (optional)
    <@ endif @> -
    - <$ typeList(param.typeList) $> - - <$ param.description | marked $> - <@ if param.default @>

    (default: <$ param.default $>)

    <@ endif @> -
    -<@ endmacro @> - - -<@- macro directiveParam(name, type, join, sep) @> - <@- if type.optional @>[<@ endif -@> - <$ name | dashCase $><$ join $><$ type.description $><$ sep $> - <@- if type.optional @>]<@ endif -@> -<@ endmacro -@> - -<@- macro functionSyntax(fn) @> -<@- set sep = joiner(', ') -@> -<$ fn.name $>(<@- for param in fn.params @><$ sep() $> - <@- if param.type.optional @>[<@ endif -@> - <$ param.name $> - <@- if param.type.optional @>]<@ endif -@> - <@ endfor @>)<@ if fn.alias @>(alias: <$ fn.alias $>)<@ endif @> -<@ endmacro -@> - -<@- macro typeInfo(fn) -@> -<$ typeList(fn.typeList) $> <$ fn.description $> -<@- endmacro -@> diff --git a/scripts/docs/templates/lib/methods.template.html b/scripts/docs/templates/lib/methods.template.html deleted file mode 100644 index 1833f2cd2e..0000000000 --- a/scripts/docs/templates/lib/methods.template.html +++ /dev/null @@ -1,26 +0,0 @@ -<@- if doc.methods @> -## Methods -<@- for method in doc.methods @> - -
    -

    - <$ functionSyntax(method) $> -

    - -<$ method.description $> - -<@ if method.params @> -<$ paramTable(method.params) $> -<@ endif @> - -<@ if method.this @> -#### Method's `this` -<$ method.this $> -<@ endif @> - -<@ if method.returns @> -* Returns: <$ typeInfo(method.returns) $> -<@ endif @> - -<@ endfor -@> -<@- endif -@> diff --git a/scripts/docs/templates/lib/properties.template.html b/scripts/docs/templates/lib/properties.template.html deleted file mode 100644 index 49378dd6ca..0000000000 --- a/scripts/docs/templates/lib/properties.template.html +++ /dev/null @@ -1,14 +0,0 @@ -<@- if doc.properties @> -

    Properties

    -<@- for property in doc.properties @> - -
    -*

    <$ typeList(property.returns.typeList) $> <$ property.name $>

    - - <$ property.returns.description $> - - <$ property.description $> - -<@ endfor -@> - -<@- endif -@> diff --git a/scripts/docs/templates/lib/returns.template.html b/scripts/docs/templates/lib/returns.template.html deleted file mode 100644 index a6d6d90c7e..0000000000 --- a/scripts/docs/templates/lib/returns.template.html +++ /dev/null @@ -1,4 +0,0 @@ -<@ if doc.returns -@> -

    Returns

    -<$ typeInfo(doc.returns) $> -<@- endif @> diff --git a/scripts/docs/templates/lib/this.template.html b/scripts/docs/templates/lib/this.template.html deleted file mode 100644 index 04981c23ad..0000000000 --- a/scripts/docs/templates/lib/this.template.html +++ /dev/null @@ -1,4 +0,0 @@ -<@ if doc.this @> -

    Method's <@ code @>this<@ endcode @>

    -<$ doc.this | marked $> -<@ endif @> diff --git a/scripts/docs/templates/lib/yaml.template.html b/scripts/docs/templates/lib/yaml.template.html deleted file mode 100644 index 72e39e6042..0000000000 --- a/scripts/docs/templates/lib/yaml.template.html +++ /dev/null @@ -1,4 +0,0 @@ -layout: "v2/docs_base" -version: "<$ version.current.name $>" -versionHref: "<$ version.current.href $>" -path: "<$ doc.path $>" diff --git a/scripts/docs/templates/module.template.html b/scripts/docs/templates/module.template.html deleted file mode 100644 index 3d6df9c716..0000000000 --- a/scripts/docs/templates/module.template.html +++ /dev/null @@ -1,5 +0,0 @@ -

    {$ doc.id $}

    - -{%- for export in doc.exports %} - {$ export.name $}
    -{% endfor %}