DOC: adapt template to rst formatting to avoid warnings