title: How I can define in Sphinx which .rst files and directories should be used?
body: <p><strong>How I can define in Sphinx which .rst files and directories should be used?</strong></p>
  <p>I want to include an automatic documentation generator in my testing/building/documentation script.
  <em>sphinx-quickstart</em> was executed in my workspace and created an index.rst-file. As Sphinx uses restructured text files for documentation I navigated through the workspace and create them manually with <em>sphinx-autogen</em>. It resulted into the tasks.rst file (see below).</p>
  <p>When I use 'make html' I get several warnings:</p>
  <blockquote>
  <p><strong>WARNING</strong>: invalid signature for automodule (u'tasks/add_to_config')</p>
  <p><strong>WARNING</strong>: autodoc can't import/find module 'tasks.add_to_config', it reported error: &quot;No module named wl_build.tasks&quot;, please check your spelling and sys.path</p>
  <p><strong>WARNING</strong>: don't know which module to import for autodocumenting u'tasks/add_to_config' (try placing a &quot;module&quot; or &quot;currentmodule&quot; directive in the document, or giving an explicit module name)</p>
  <p>...</p>
  </blockquote>
  <p><strong>My index.rst</strong></p>
  <pre><code>Welcome to build's documentation!
  ====================================
  
  Contents:
  
  .. toctree::
     :maxdepth: 2
  
  .. automodule:: tasks/add_to_config
     :members:
  
  .. automodule:: tasks/build_egg
     :members:   
  </code></pre>
  <p><strong>tasks.rst</strong></p>
  <pre><code>tasks Package
  =============
  
  :mod:`tasks` Package
  --------------------
  
  .. automodule:: tasks.__init__
      :members:
      :undoc-members:
      :show-inheritance:
  
  :mod:`add_to_config` Module
  ---------------------------
  
  .. automodule:: tasks.add_to_config
      :members:
      :undoc-members:
      :show-inheritance:
  
  :mod:`build_egg` Module
  -----------------------
  
  .. automodule:: tasks.build_egg
      :members:
      :undoc-members:
      :show-inheritance:
  </code></pre>