define description overrides by version, like examples

This commit is contained in:
spalger
2017-05-01 16:29:24 -07:00
parent d22877e7aa
commit 94ec6e6139
19 changed files with 102 additions and 58 deletions

View File

@ -54,18 +54,6 @@ var templateGlobals = {
return block.split('\n\n').join('\n+\n');
},
description: function (action) {
try {
return fs.readFileSync(path.join(__dirname, '../../../docs/_descriptions/' + action + '.asciidoc'));
} catch (e) {
if (~e.message.indexOf('ENOENT')) {
return '// no description';
} else {
throw e;
}
}
},
paramType: function (type, paramName) {
switch (type && type.toLowerCase ? type.toLowerCase() : 'any') {
case 'time':