diff options
author | Justin R. Miller <incanus@users.noreply.github.com> | 2016-09-30 15:55:46 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-09-30 15:55:46 -0700 |
commit | ee4715a821437e6ed374231fad2ca6193eeac499 (patch) | |
tree | a1572535dae544aea91c963d3577a4ecb99c5e2c /platform/darwin/src/MGLStyleLayer.h.ejs | |
parent | 5b28ebbeca8f28e4a8d415911c51eb5070c3362a (diff) | |
download | qtlocation-mapboxgl-ee4715a821437e6ed374231fad2ca6193eeac499.tar.gz |
update style generation code for new style spec enum values docs (#6508)
Documentation for enum values landed in mapbox/mapbox-gl-style-spec#510.
This updates Android, iOS, and macOS documentation code gen scripts to capitalize on them.
Diffstat (limited to 'platform/darwin/src/MGLStyleLayer.h.ejs')
-rw-r--r-- | platform/darwin/src/MGLStyleLayer.h.ejs | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/platform/darwin/src/MGLStyleLayer.h.ejs b/platform/darwin/src/MGLStyleLayer.h.ejs index 054adcb32e..40b750e73c 100644 --- a/platform/darwin/src/MGLStyleLayer.h.ejs +++ b/platform/darwin/src/MGLStyleLayer.h.ejs @@ -15,8 +15,14 @@ NS_ASSUME_NONNULL_BEGIN <% for (const property of layoutProperties) { -%> <% if (property.type == "enum") { -%> +/** + <%- propertyDoc(property.name, property, type) %> + */ typedef NS_ENUM(NSUInteger, MGL<%- camelize(type) %>StyleLayer<%- camelize(property.name) %>) { -<% for (const value of property.values) { -%> +<% for (const value in property.values) { -%> + /** + <%- propertyDoc(property.name, property.values[value], type) %> + */ MGL<%- camelize(type) %>StyleLayer<%- camelize(property.name) %><%- camelize(value) %>, <% } -%> }; @@ -25,8 +31,14 @@ typedef NS_ENUM(NSUInteger, MGL<%- camelize(type) %>StyleLayer<%- camelize(prope <% } -%> <% for (const property of paintProperties) { -%> <% if (property.type == "enum") { -%> +/** + <%- propertyDoc(property.name, property, type) %> + */ typedef NS_ENUM(NSUInteger, MGL<%- camelize(type) %>StyleLayer<%- camelize(property.name) %>) { -<% for (const value of property.values) { -%> +<% for (const value in property.values) { -%> + /** + <%- propertyDoc(property.name, property.values[value], type) %> + */ MGL<%- camelize(type) %>StyleLayer<%- camelize(property.name) %><%- camelize(value) %>, <% } -%> }; @@ -75,7 +87,7 @@ typedef NS_ENUM(NSUInteger, MGL<%- camelize(type) %>StyleLayer<%- camelize(prope <% for (const property of layoutProperties) { -%> /** - <%- propertyDoc(property, type) %> + <%- propertyDoc(property.name, property, type) %> <% if ('default' in property) { -%> The default value of this property is <%- propertyDefault(property, type) %>.<% if (!property.required) { %> Set this property to `nil` to reset it to the default value.<% } %> @@ -93,7 +105,7 @@ typedef NS_ENUM(NSUInteger, MGL<%- camelize(type) %>StyleLayer<%- camelize(prope <% for (const property of paintProperties) { -%> /** - <%- propertyDoc(property, type) %> + <%- propertyDoc(property.name, property, type) %> <% if ('default' in property) { -%> The default value of this property is <%- propertyDefault(property, type) %>.<% if (!property.required) { %> Set this property to `nil` to reset it to the default value.<% } %> |