title: Sphinx: automatically label headings?
body: <p>In Sphinx, is it possible to automatically define labels for headings? I've found that my documents end up looking a lot like this:</p>
  
  <pre>
  .._doing stuff:
  
  Doing Stuff
  -----------
  
  You might also want :ref:`other stuff`.
  
  .._other stuff:
  
  Other Stuff
  -----------
  
  No, you want :ref:`doing stuff`.
  </pre>
  
  <p>And it would be nice to remove that duplication.</p>