Closes #20258: Sphinx toolchain: move back to Jinja2 2.3.1 with support for Py2.5.