title: Sphinx automodule: how to reference classes in same module?
body: <p>I am trying to use the sphinx <a href="http://www.sphinx-doc.org/en/master/usage/extensions/autodoc.html" rel="nofollow noreferrer">autodoc</a> extension and specifically the <code>automodule</code> directive to automatically generate documentation for django app I am working on. The problem is that I want to create internal references to different classes within the module, without having to use <code>autoclass</code> and <code>autofunction</code> on every single class/function within the project. For a source file like this:</p>
  
  <pre><code># source_code.py
  class A:
      """docs for A
      """
      pass
  
  class B:
      """docs for B with 
      :ref:`internal reference to A &lt;XXXX-some-reference-to-A-XXXX&gt;`
      """
      pass
  </code></pre>
  
  <p>I would like to be able to have a sphinx documentation file like this:</p>
  
  <pre><code>.. automodule: source_code
  </code></pre>
  
  <p>What reference can I use for XXXX-some-reference-to-A-XXXX? Is there an easy way to accomplish this? Thanks in advance for your help.</p>