- Fix minor formatting issues.
- Fix reference the gloassary TLS using ':term:'.
- Make sure nothing is between an anchor and the heading where ':ref:' references
the anchor. This meant moving all the recently added '.. index::' entries.
Update #3232.
Update #3229.