I managed to solve this problem using the .. raw:: html method, as described above, with a slight change (which avoided the TOC auto-generation gap). as described above, if your file contains only headers .. raw:: html , it will break the automatically generated TOC Sphinx. however, if you use .. raw:: html and add --------------------- under it, it will not display on the left and will not interrupt the TOC. eg.
so I finally accidentally figured out how to get the headers so that they would not appear in the left TOC. if your file contains only headers .. raw:: html h2, it will destroy the auto-generated sphinx TOC (as stated in stackoverflow). however, if you use .. raw:: html and --------------------- under it, it will not appear in the left navigation bar and will not interrupt TOC: star2: e.g.
.. raw:: html <h2>What Can I Do With KSQL?</h2> ---------------------
source share