add a 5.0+ exapmle for the scroll api

This commit is contained in:
spalger
2016-11-16 11:54:24 -07:00
parent b0105d048a
commit 7de7928fc7
4 changed files with 34 additions and 12 deletions

View File

@ -26,12 +26,9 @@ module.exports = function (branch, done) {
aliases: {},
mergeConcatParams: {},
paramAsBody: {},
clientActionModifier: false
});
var examples = version.mergeOpts(require('../../docs/_examples/index.js'), {
clientActionModifier: false,
examples: {}
}).examples;
});
var steps = [
readSpecFiles,
@ -113,7 +110,7 @@ module.exports = function (branch, done) {
[].concat(apiSpec.actions, apiSpec.proxies)
.forEach(function (action) {
var examplePath = examples[action.name] || action.name + '.asciidoc';
var examplePath = overrides.examples[action.name] || action.name + '.asciidoc';
try {
action.examples = fs.readFileSync(fromRoot('docs/_examples', examplePath), 'utf8');

View File

@ -248,6 +248,9 @@ function (spec) {
'/_update_by_query/{task_id}/_rethrottle',
'/_delete_by_query/{task_id}/_rethrottle'
]
},
examples: {
scroll: 'scroll_5.0+.asciidoc'
}
}
];