diff --git a/tools/api-builder/angular.io-package/templates/const.template.html b/tools/api-builder/angular.io-package/templates/const.template.html new file mode 100644 index 0000000000..a208c7ca4f --- /dev/null +++ b/tools/api-builder/angular.io-package/templates/const.template.html @@ -0,0 +1 @@ +{% extends 'var.template.html' -%} \ No newline at end of file diff --git a/tools/api-builder/angular.io-package/templates/interface.template.html b/tools/api-builder/angular.io-package/templates/interface.template.html new file mode 100644 index 0000000000..9c59159b29 --- /dev/null +++ b/tools/api-builder/angular.io-package/templates/interface.template.html @@ -0,0 +1 @@ +{% extends 'class.template.html' -%} \ No newline at end of file diff --git a/tools/api-builder/docs-package/templates/lib/githubLinks.html b/tools/api-builder/angular.io-package/templates/lib/githubLinks.html similarity index 100% rename from tools/api-builder/docs-package/templates/lib/githubLinks.html rename to tools/api-builder/angular.io-package/templates/lib/githubLinks.html diff --git a/tools/api-builder/docs-package/templates/overview-dump.template.html b/tools/api-builder/angular.io-package/templates/overview-dump.template.html similarity index 100% rename from tools/api-builder/docs-package/templates/overview-dump.template.html rename to tools/api-builder/angular.io-package/templates/overview-dump.template.html diff --git a/tools/api-builder/docs-package/templates/type-alias.template.html b/tools/api-builder/angular.io-package/templates/type-alias.template.html similarity index 100% rename from tools/api-builder/docs-package/templates/type-alias.template.html rename to tools/api-builder/angular.io-package/templates/type-alias.template.html diff --git a/tools/api-builder/docs-package/index.js b/tools/api-builder/docs-package/index.js index f219f15647..63d3272cd8 100644 --- a/tools/api-builder/docs-package/index.js +++ b/tools/api-builder/docs-package/index.js @@ -85,9 +85,6 @@ module.exports = new Package('angular-v2-docs', [jsdocPackage, nunjucksPackage, variableEnd: '$}' }; - templateFinder.templateFolders - .unshift(path.resolve(__dirname, 'templates')); - templateFinder.templatePatterns = [ '${ doc.template }', '${ doc.id }.${ doc.docType }.template.html', diff --git a/tools/api-builder/docs-package/templates/class.template.html b/tools/api-builder/docs-package/templates/class.template.html deleted file mode 100644 index f0fc6b2801..0000000000 --- a/tools/api-builder/docs-package/templates/class.template.html +++ /dev/null @@ -1,44 +0,0 @@ -{% include "lib/paramList.html" -%} -{% include "lib/githubLinks.html" -%} -{% extends 'layout/base.template.html' -%} - -{% block body %} -
exported from {@link {$ doc.moduleDoc.id $} {$doc.moduleDoc.id $} }
-defined in {$ githubViewLink(doc) $}
-
{$ doc.description | marked $}
- -{%- if doc.decorators %} -exported from {@link {$ doc.moduleDoc.id $} {$doc.moduleDoc.id $} }
-defined in {$ githubViewLink(doc) $}
{$ doc.description | marked $}
- -{% endblock %} \ No newline at end of file diff --git a/tools/api-builder/docs-package/templates/guide.template.html b/tools/api-builder/docs-package/templates/guide.template.html deleted file mode 100644 index 3ee289dbc8..0000000000 --- a/tools/api-builder/docs-package/templates/guide.template.html +++ /dev/null @@ -1,5 +0,0 @@ -{% extends 'layout/base.template.html' %} - -{% block body %} -{$ doc.description | marked $} -{% endblock %} \ No newline at end of file diff --git a/tools/api-builder/docs-package/templates/interface.template.html b/tools/api-builder/docs-package/templates/interface.template.html deleted file mode 100644 index 3bde456ceb..0000000000 --- a/tools/api-builder/docs-package/templates/interface.template.html +++ /dev/null @@ -1 +0,0 @@ -{% extends 'class.template.html' -%} diff --git a/tools/api-builder/docs-package/templates/layout/base.template.html b/tools/api-builder/docs-package/templates/layout/base.template.html deleted file mode 100644 index 16a0d9dc96..0000000000 --- a/tools/api-builder/docs-package/templates/layout/base.template.html +++ /dev/null @@ -1 +0,0 @@ -{% block body %}{% endblock %} \ No newline at end of file diff --git a/tools/api-builder/docs-package/templates/lib/paramList.html b/tools/api-builder/docs-package/templates/lib/paramList.html deleted file mode 100644 index 85dccb212b..0000000000 --- a/tools/api-builder/docs-package/templates/lib/paramList.html +++ /dev/null @@ -1,7 +0,0 @@ -{% macro paramList(params) -%} - {%- if params -%}( - {%- for param in params -%} - {$ param | escape $}{% if not loop.last %}, {% endif %} - {%- endfor %}) - {%- endif %} -{%- endmacro -%} diff --git a/tools/api-builder/docs-package/templates/var.template.html b/tools/api-builder/docs-package/templates/var.template.html deleted file mode 100644 index 2d43873595..0000000000 --- a/tools/api-builder/docs-package/templates/var.template.html +++ /dev/null @@ -1,10 +0,0 @@ -{% include "lib/githubLinks.html" -%} -{% extends 'layout/base.template.html' %} - -{% block body %} -exported from {@link {$ doc.moduleDoc.id $} {$doc.moduleDoc.id $} }
-defined in {$ githubViewLink(doc) $}
{$ doc.description | marked $}
- -{% endblock %} \ No newline at end of file