add :contents: directives to config docs

This fixes #2737 and makes these docs easier to navigate.