title: Sphinx - what is different between toctree and content?
body: <p>I can create table of contents in two ways:</p>
  
  <pre><code>.. contents::
     :local:
     depth: 1
  </code></pre>
  
  <p>or as </p>
  
  <pre><code>.. toctree::
      :maxdepth: 1
  
      index
  </code></pre>
  
  <p>What is difference? Where I should use the toctree and where the contents?</p>