[generate/docs/examples] allow overriding individual example files based on version

This commit is contained in:
spalger
2016-01-26 09:12:07 -07:00
parent 010a8b186f
commit 05263b487c
4 changed files with 22 additions and 14 deletions

View File

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