[3.7] bpo-35564: add master_doc='contents' to conf.py (GH-12460)

(cherry picked from commit fc8284e22074af8154e9865c8391b955f13a308b)

Co-authored-by: Jean-François B <jfbu@free.fr>
2 files changed