[docs] [issue10461] Use with statement throughout the docs