[ADF-3040] Replaced doc template engine to fix whitespace issues (#3356)

This commit is contained in:
Andy Stark
2018-05-21 15:54:22 +01:00
committed by Eugenio Romano
parent c63dee50f1
commit 0e64efc4e2
17 changed files with 96 additions and 94 deletions

15
tools/doc/templates/service.ejs vendored Normal file
View File

@@ -0,0 +1,15 @@
<% if (hasMethods) { %>
### Methods
<% methods.forEach(function(meth) { -%>
- **<%= meth.name %>**<%= meth.signature %><% if (meth.returnsSomething) { %>: `<%- meth.returnType %>`<% } %><br/>
<%= meth.docText %>
<% meth.params.forEach(function(param) { -%>
- *<%= param.name%>:* `<%- param.type %>` - <% if (param.isOptional) { %>(Optional)<% } %><%= param.docText %>
<% }) -%>
<% if (meth.returnsSomething) { -%>
- **Returns** `<%- meth.returnType %>` - <%= meth.returnDocText %>
<% } -%>
<% }) -%>
<% } %>