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

@ -249,9 +249,6 @@ function (spec) {
'/_update_by_query/{task_id}/_rethrottle',
'/_delete_by_query/{task_id}/_rethrottle'
]
},
examples: {
scroll: 'scroll_5.0+.asciidoc'
}
},
{
@ -266,5 +263,31 @@ function (spec) {
body: 'scroll_id'
}
}
},
// description overrides by major version
{
version: '0.90.x',
descriptions: {
search: 'search_1.x.asciidoc'
}
},
{
version: '1.x',
descriptions: {
search: 'search_1.x.asciidoc'
}
},
{
version: '2.x',
descriptions: {
search: 'search_2.x.asciidoc'
}
},
// examples changed at 5.0
{
version: '<5.0.0',
examples: {
scroll: 'scroll_<5.0.asciidoc'
}
}
];