From 411cdc42fdc2526bd61a0e205e9ff6b2fc0c8693 Mon Sep 17 00:00:00 2001 From: Greg Spencer Date: Thu, 7 Feb 2019 14:07:44 -0800 Subject: [PATCH 1/2] Add class annotation to HTML templates for different kinds of entities so that tools like Dashing can search for them. --- lib/templates/category.html | 2 +- lib/templates/class.html | 2 +- lib/templates/constant.html | 2 +- lib/templates/constructor.html | 2 +- lib/templates/enum.html | 2 +- lib/templates/function.html | 2 +- lib/templates/library.html | 2 +- lib/templates/method.html | 2 +- lib/templates/mixin.html | 2 +- lib/templates/property.html | 2 +- lib/templates/top_level_constant.html | 2 +- lib/templates/top_level_property.html | 2 +- lib/templates/typedef.html | 2 +- 13 files changed, 13 insertions(+), 13 deletions(-) diff --git a/lib/templates/category.html b/lib/templates/category.html index 4fb9d6f33c..a671a2a9d5 100644 --- a/lib/templates/category.html +++ b/lib/templates/category.html @@ -8,7 +8,7 @@
{{parent.name}} {{#self}} -

{{name}} {{kind}}

+

{{name}} {{kind}}

{{>documentation}} {{#hasPublicLibraries}} diff --git a/lib/templates/class.html b/lib/templates/class.html index 5ffe0524d5..a9adc45ae2 100644 --- a/lib/templates/class.html +++ b/lib/templates/class.html @@ -8,7 +8,7 @@
{{parent.name}} {{parent.kind}}
{{#self}} -
{{>source_link}}

{{{nameWithGenerics}}} {{kind}} {{>categorization}}

+
{{>source_link}}

{{{nameWithGenerics}}} {{kind}} {{>categorization}}

{{/self}} {{#clazz}} diff --git a/lib/templates/constant.html b/lib/templates/constant.html index f54d3a89e0..44e278bfe3 100644 --- a/lib/templates/constant.html +++ b/lib/templates/constant.html @@ -8,7 +8,7 @@
{{parent.name}} {{parent.kind}}
{{#self}} -
{{>source_link}}

{{{name}}} {{kind}}

+
{{>source_link}}

{{{name}}} {{kind}}

{{/self}}
diff --git a/lib/templates/constructor.html b/lib/templates/constructor.html index bf7f610805..3fc1a9f116 100644 --- a/lib/templates/constructor.html +++ b/lib/templates/constructor.html @@ -8,7 +8,7 @@
{{parent.name}} {{parent.kind}}
{{#self}} -
{{>source_link}}

{{{nameWithGenerics}}} {{kind}}

+
{{>source_link}}

{{{nameWithGenerics}}} {{kind}}

{{/self}} {{#constructor}} diff --git a/lib/templates/enum.html b/lib/templates/enum.html index 424b8bf81a..497f7962a7 100644 --- a/lib/templates/enum.html +++ b/lib/templates/enum.html @@ -8,7 +8,7 @@
{{parent.name}} {{parent.kind}}
{{#self}} -
{{>source_link}}

{{{name}}} {{kind}} {{>categorization}}

+
{{>source_link}}

{{{name}}} {{kind}} {{>categorization}}

{{/self}} {{#eNum}} diff --git a/lib/templates/function.html b/lib/templates/function.html index f7a42e0f14..a8d9c85c8b 100644 --- a/lib/templates/function.html +++ b/lib/templates/function.html @@ -8,7 +8,7 @@
{{parent.name}} {{parent.kind}}
{{#self}} -
{{>source_link}}

{{{nameWithGenerics}}} {{kind}} {{>categorization}}

+
{{>source_link}}

{{{nameWithGenerics}}} {{kind}} {{>categorization}}

{{/self}} {{#function}} diff --git a/lib/templates/library.html b/lib/templates/library.html index 67ba592dec..1aa24b2737 100644 --- a/lib/templates/library.html +++ b/lib/templates/library.html @@ -8,7 +8,7 @@
{{parent.name}} {{#self}} -
{{>source_link}}

{{{name}}} {{kind}} {{>categorization}}

+
{{>source_link}}

{{{name}}} {{kind}} {{>categorization}}

{{/self}} {{#library}} diff --git a/lib/templates/method.html b/lib/templates/method.html index 1a8aec7500..0d1fb44844 100644 --- a/lib/templates/method.html +++ b/lib/templates/method.html @@ -8,7 +8,7 @@
{{parent.name}} {{parent.kind}}
{{#self}} -
{{>source_link}}

{{{nameWithGenerics}}} {{kind}}

+
{{>source_link}}

{{{nameWithGenerics}}} {{kind}}

{{/self}} {{#method}} diff --git a/lib/templates/mixin.html b/lib/templates/mixin.html index ff9bf0f53a..ddf7435a51 100644 --- a/lib/templates/mixin.html +++ b/lib/templates/mixin.html @@ -8,7 +8,7 @@
{{parent.name}} {{parent.kind}}
{{#self}} -
{{>source_link}}

{{{nameWithGenerics}}} {{kind}} {{>categorization}}

+
{{>source_link}}

{{{nameWithGenerics}}} {{kind}} {{>categorization}}

{{/self}} {{#mixin}} diff --git a/lib/templates/property.html b/lib/templates/property.html index e6d77b95e3..8d9bb5ef74 100644 --- a/lib/templates/property.html +++ b/lib/templates/property.html @@ -8,7 +8,7 @@
{{parent.name}} {{parent.kind}}
{{#self}} -
{{>source_link}}

{{name}} {{kind}}

+
{{>source_link}}

{{name}} {{kind}}

{{/self}} {{#self}} diff --git a/lib/templates/top_level_constant.html b/lib/templates/top_level_constant.html index 41e7854f92..3be89bac1c 100644 --- a/lib/templates/top_level_constant.html +++ b/lib/templates/top_level_constant.html @@ -8,7 +8,7 @@
{{parent.name}} {{parent.kind}}
{{#self}} -
{{>source_link}}

{{{name}}} {{kind}} {{>categorization}}

+
{{>source_link}}

{{{name}}} {{kind}} {{>categorization}}

{{>name_summary}} diff --git a/lib/templates/top_level_property.html b/lib/templates/top_level_property.html index 582d78ea98..25cd5ba5a4 100644 --- a/lib/templates/top_level_property.html +++ b/lib/templates/top_level_property.html @@ -8,7 +8,7 @@
{{parent.name}} {{parent.kind}}
{{#self}} -
{{>source_link}}

{{{name}}} {{kind}} {{>categorization}}

+
{{>source_link}}

{{{name}}} {{kind}} {{>categorization}}

{{#hasNoGetterSetter}}
diff --git a/lib/templates/typedef.html b/lib/templates/typedef.html index 336fcf6c4a..2fcbe008a8 100644 --- a/lib/templates/typedef.html +++ b/lib/templates/typedef.html @@ -8,7 +8,7 @@
{{parent.name}} {{parent.kind}}
{{#self}} -
{{>source_link}}

{{{nameWithGenerics}}} {{kind}} {{>categorization}}

+
{{>source_link}}

{{{nameWithGenerics}}} {{kind}} {{>categorization}}

{{/self}}
From ba3e4a8c81bcc80cc5c5f6bdefe894bab08245fc Mon Sep 17 00:00:00 2001 From: Greg Spencer Date: Fri, 8 Feb 2019 15:54:38 -0800 Subject: [PATCH 2/2] Fix indentation --- lib/templates/top_level_constant.html | 19 ++++++++-------- lib/templates/top_level_property.html | 32 +++++++++++++-------------- 2 files changed, 25 insertions(+), 26 deletions(-) diff --git a/lib/templates/top_level_constant.html b/lib/templates/top_level_constant.html index 3be89bac1c..ccd3f66b2c 100644 --- a/lib/templates/top_level_constant.html +++ b/lib/templates/top_level_constant.html @@ -8,17 +8,16 @@
{{parent.name}} {{parent.kind}}
{{#self}} -
{{>source_link}}

{{{name}}} {{kind}} {{>categorization}}

+
{{>source_link}}

{{{name}}} {{kind}} {{>categorization}}

-
- {{>name_summary}} - = - {{{ constantValue }}} - {{>features}} -
- - {{>documentation}} - {{>source_code}} +
+ {{>name_summary}} + = + {{{ constantValue }}} + {{>features}} +
+ {{>documentation}} + {{>source_code}} {{/self}}
diff --git a/lib/templates/top_level_property.html b/lib/templates/top_level_property.html index 25cd5ba5a4..2f417791c2 100644 --- a/lib/templates/top_level_property.html +++ b/lib/templates/top_level_property.html @@ -8,25 +8,25 @@
{{parent.name}} {{parent.kind}}
{{#self}} -
{{>source_link}}

{{{name}}} {{kind}} {{>categorization}}

+
{{>source_link}}

{{{name}}} {{kind}} {{>categorization}}

- {{#hasNoGetterSetter}} -
- {{{ linkedReturnType }}} - {{>name_summary}} - {{>features}} -
- {{>documentation}} - {{>source_code}} - {{/hasNoGetterSetter}} + {{#hasNoGetterSetter}} +
+ {{{ linkedReturnType }}} + {{>name_summary}} + {{>features}} +
+ {{>documentation}} + {{>source_code}} + {{/hasNoGetterSetter}} - {{#hasExplicitGetter}} - {{>accessor_getter}} - {{/hasExplicitGetter}} + {{#hasExplicitGetter}} + {{>accessor_getter}} + {{/hasExplicitGetter}} - {{#hasExplicitSetter}} - {{>accessor_setter}} - {{/hasExplicitSetter}} + {{#hasExplicitSetter}} + {{>accessor_setter}} + {{/hasExplicitSetter}} {{/self}}