title: Same level in toctree and navigation bar with separated files
body: <p>I want to separate my files hierarchy from my document hierarchy, I want to have four sections of the same level in different files, two in the same file and two in separated files, at the end i want the toctree refer to them in the same level.</p>
  
  <p><strong>main.rst</strong></p>
  
  <pre><code>main
  ====
  
  
  section 1
  ---------
  something
  
  
  section 2
  ---------
  something
  
  
  .. toctree::
  
      section3
      section4
  </code></pre>
  
  <p><strong>section3.rst</strong></p>
  
  <pre><code>section 3
  ---------
  something
  </code></pre>
  
  <p><strong>section4.rst</strong></p>
  
  <pre><code>section 4
  ---------
  something
  </code></pre>
  
  <p>With this code i have this result:</p>
  
  <p><a href="https://i.stack.imgur.com/TKX6d.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/TKX6d.png" alt="enter image description here"></a></p>
  
  <p>And this</p>
  
  <p><a href="https://i.stack.imgur.com/owtcX.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/owtcX.png" alt="enter image description here"></a></p>
  
  <p>But i want it to be in the same level, i want this result:</p>
  
  <p><a href="https://i.stack.imgur.com/b7Ewa.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/b7Ewa.png" alt="enter image description here"></a></p>
  
  <p>And this</p>
  
  <p><a href="https://i.stack.imgur.com/MkcqA.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/MkcqA.png" alt="enter image description here"></a></p>
  
  <p>In my case, the two first sections are small but the other are too long and i want them to be on their own file (and also in their own page when browsing so <code>include</code> is not a solution for me) and conserve the document hierarchy when browsing.</p>
  
  <p>Thanks :D </p>