Skip to content

Commit

Permalink
include mapnik-reference status field into documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
nebulon42 committed Dec 22, 2016
1 parent 231e6ab commit 8371b44
Show file tree
Hide file tree
Showing 12 changed files with 3,614 additions and 1,850 deletions.
7 changes: 4 additions & 3 deletions docs-generator/symbolizers._
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
<% _(symbolizers).each(function(symbolizer, name) { %>
<% if (name == '*') { %>## All elements<% } else { %>## <%= name %><% } %>
<% _(symbolizer).filter(function(p) { return p.css; }).each(function(p) { %>
##### <%= p.css.replace(/\s/g, '') %> <% if (_.isArray(p.type)) { %>`keyword`<% } else { %>`<%= p.type %>`<% } %>
<% if (_.isArray(p.type)) { %><% _(p.type).each(function(type) { %>`<%= type %>`<% }); %><% } %>
<% if (p.type === 'functions' && _.isArray(p.functions)) { %><% _(p.functions).each(function(type) { %>`<%= type[0] %>`<% }); %><% } %>
##### <%= p.css.replace(/\s/g, '') %> <% if (_.isArray(p.type)) { %>`keyword`<% } else { %>`<%= p.type %>` <% } %>
<% if (_.has(p, 'status')) { %>Status: *<%= p.status %>*<% } %>
<% if (_.isArray(p.type)) { %><% _(p.type).each(function(type) { %>`<%= type %>` <% }); %><% } %>
<% if (p.type === 'functions' && _.isArray(p.functions)) { %><% _(p.functions).each(function(type) { %>`<%= type[0] %>` <% }); %><% } %>

<% if (typeof p['default-value'] !== '') { %>Default Value: <%= p['default-value'] %><% } %>
<% if (p['default-meaning']) { %>_(<%- p['default-meaning'] %>)_<% } %>
Expand Down
Loading

0 comments on commit 8371b44

Please sign in to comment.