(doc): migrate to eta from ejs#11102
Conversation
|
@tamil777selvan thanks for taking a stab at this. I am not sure if mustache is a good choice. It hasn't seen any release for more than 2 years and seems like abandoned to me. Any chance we can use |
|
Hi @christian-bromann, I followed your advice and started using ETA. Could you please take a look at it whenever you get a chance? Thank you! |
christian-bromann
left a comment
There was a problem hiding this comment.
Can we also remove the postinstall:vulnerabilities command and the file connected to it?
The rest looks good to me, great job!
scripts/templates/template.eta
Outdated
| <% /* This protocol command is embedded in the following convenient method<%= it.alternativeCommands.length > 1 ? 's' : '' %>: <% for (const altCommand of it.alternativeCommands) { %>[<%= altCommand.split('/').pop() %>](/docs/api/<%= altCommand %>)<% } %>. It is recommended to use <%= it.alternativeCommands.length > 1 ? 'these commands' : 'this command' %> instead. */ %> | ||
|
|
||
| This protocol command is embedded in the following convenient method<%= it.alternativeCommands.length > 1 ? 's' : '' %>: <%= it.alternativeCommands.map((command) => `[${command.split('/').pop()}}](/docs/api/${command})`).join(', ') %>. It is recommended to use <%= it.alternativeCommands.length > 1 ? 'these commands' : 'this command' %> instead. |
There was a problem hiding this comment.
| <% /* This protocol command is embedded in the following convenient method<%= it.alternativeCommands.length > 1 ? 's' : '' %>: <% for (const altCommand of it.alternativeCommands) { %>[<%= altCommand.split('/').pop() %>](/docs/api/<%= altCommand %>)<% } %>. It is recommended to use <%= it.alternativeCommands.length > 1 ? 'these commands' : 'this command' %> instead. */ %> | |
| This protocol command is embedded in the following convenient method<%= it.alternativeCommands.length > 1 ? 's' : '' %>: <%= it.alternativeCommands.map((command) => `[${command.split('/').pop()}}](/docs/api/${command})`).join(', ') %>. It is recommended to use <%= it.alternativeCommands.length > 1 ? 'these commands' : 'this command' %> instead. | |
| This protocol command is embedded in the following convenient method<%= it.alternativeCommands.length > 1 ? 's' : '' %>: <%= it.alternativeCommands.map((command) => `[\`${command.split('/').pop()}\`](/docs/api/${command})`).join(', ') %>. It is recommended to use <%= it.alternativeCommands.length > 1 ? 'these commands' : 'this command' %> instead. |
I have updated it @christian-bromann, please have a look. Thanks! |
Proposed changes
Fix - #6640
Types of changes
Checklist
Further comments
Reviewers: @webdriverio/project-committers