2 spaces is the most common indentation width used in the docs; adjust the rest for consistency. Also change .editorconfig accordingly.
(cherry picked from commit c612dfbabb)
c612dfbabb