DOC: update code style for development doc and user guide #36777
Addresses part of #36777
Ran blacken-tools and checked for warnings from flake8-rst for 4 additional doc files.
I believe I've responded to your comments, let me know if there are any additional changes to be made. Thanks @karasinski 