mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ADF-3040] Replaced doc template engine to fix whitespace issues (#3356)
This commit is contained in:
committed by
Eugenio Romano
parent
c63dee50f1
commit
0e64efc4e2
15
tools/doc/templates/service.ejs
vendored
Normal file
15
tools/doc/templates/service.ejs
vendored
Normal 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 %>
|
||||
<% } -%>
|
||||
<% }) -%>
|
||||
<% } %>
|
Reference in New Issue
Block a user