There is some guide at https://github.com/sympy/sympy/wiki/Writing-documentation. I would also just use your best judgement (but also make sure that things render nicely in Sphinx).