Fixing sphinx violations and errors

Fixes sphinx violations and errors and resolves issue https://github.com/saltstack/salt/issues/18114